3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

39 commits

Author SHA1 Message Date
Michael Stenta fe0bc23f85 Re-export Views config per https://www.drupal.org/node/3230199 (no changes). 2022-01-14 11:05:51 -05:00
Paul Weidner 2c660bcf3e Perform entity validation in state change actions. 2021-12-08 12:59:27 -05:00
paul121 268cac91dc Asset state change actions support any workflow with the target state. 2021-10-18 16:16:09 -04:00
Michael Stenta 840307e36d Remove unnecessary remember_roles from Views config. 2021-10-04 19:21:00 -04:00
paul121 b9f41d7d69 Explicitly enable access checking on content entity queries.
Not calling ::accessCheck() is deprecated in Drupal 9.2. See
https://www.drupal.org/node/3201242
2021-10-01 10:46:16 -04:00
Symbioquine 27142866d3 Improve asset archive timestamp behavior #446
**Why?** Fix some weird behavior and make sure
inconsistent states cannot occur;

* Allow setting the archived timestamp at the same
  time as moving an asset to the archived state.
* Ensure that the archived timestamp cannot be set
  without also transitioning into the archived state.
* Ensure that the arhived timestamp cannot be set to
  NULL without transitioning back to the active state.
2021-09-24 12:36:14 -04:00
Michael Stenta b49441efe4 Set $defaultTheme to stark for all descendants of FarmBrowserTestBase. 2021-09-06 10:46:20 -04:00
Paul Weidner c1bbba0f81 Check view and create access instead of update access for the Asset Clone action. 2021-08-30 13:45:32 -04:00
paul121 f7ce438a40 DeleteMultipleRouteProvider is deprecated. 2021-08-30 12:28:51 -04:00
paul121 cd10d8c00f Add asset clone action. 2021-08-30 12:28:51 -04:00
Michael Stenta b2f5349892 Add actions for archiving/activating assets and plans. 2021-08-30 12:28:51 -04:00
Michael Stenta 9e9734c3f5 Include link to new assets and plans in confirmation message. 2021-08-03 09:11:51 -04:00
Michael Stenta 9ae8dbed32 Issue #3224684: Allow managed roles access to entity revisions tab 2021-07-22 10:01:44 -04:00
paul121 808d73b62c Remove unused asset and plan page include files. #433 2021-06-23 07:47:56 -04:00
Michael Stenta 380796b4c8 Move FarmBrowserTestBase to a farm_test module. 2021-06-17 09:42:43 -04:00
Michael Stenta cd7b615be0 Implement hook_theme(), hook_theme_suggestions_HOOK(), and template_preprocess_ENTITY_TYPE() in asset and plan modules. 2021-02-05 12:22:31 -05:00
Michael Stenta e5360a8011 Always redirect to the Asset entity in AssetForm::save(). 2020-12-31 09:20:12 -05:00
Michael Stenta e6909b926a Remove "done" from AssetCRUDTest and AssetPlanTest. 2020-12-10 10:48:16 -05:00
Michael Stenta 8ff0353dd3 Make asset label_singular and label_plural all lowercase. 2020-12-05 16:19:22 -05:00
Michael Stenta 09083d4e65 AssertLegacyTrait::assertResponse() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->statusCodeEquals() instead. See https://www.drupal.org/node/3129738 2020-12-03 10:33:54 -05:00
Michael Stenta ae0bd6e432 $modules property must be declared protected. 2020-12-03 10:30:07 -05:00
Michael Stenta 8419dc530e Provide a FarmBrowserTestBase class that all farmOS functional test classes can inherit from. 2020-11-20 11:35:13 -05:00
Michael Stenta 56620eaf61 Return type declaration must be compatible with TestCase->setUp() : void 2020-11-20 11:35:13 -05:00
Michael Stenta 9821807649 Make asset created base field form display configurable. 2020-11-20 07:18:06 -05:00
Michael Stenta cd34bb5b16 Make asset name field required. Remove reference to auto-generated names. 2020-10-15 15:33:10 -04:00
Michael Stenta 90c8fb9e25 Implement prepareRow() in Asset migration source plugin to support Field API fields. 2020-10-07 13:28:25 -04:00
Michael Stenta e766ccf991 Add an archived timestamp field to assets, set when the asset status changes to archived. 2020-10-01 23:41:40 -04:00
Michael Stenta d724cae915 Provide a migrate source plugin for assets. 2020-10-01 23:41:40 -04:00
Michael Stenta 3f932bef84 Misc codesniffer fixes. 2020-10-01 15:51:51 -04:00
Michael Stenta d6d79475de Use StringTranslationTrait in AssetCRUDTest. 2020-10-01 15:51:51 -04:00
Michael Stenta 55bed83a5e Put asset module tests in the farm group. 2020-10-01 15:48:04 -04:00
Michael Stenta d781730402 Enable the farm installation profile in asset tests. 2020-10-01 15:48:04 -04:00
Michael Stenta 1f7c0b3243 Remove unused getTypeNamePattern() method. 2020-10-01 15:48:04 -04:00
Michael Stenta 6f142769f6 Generalize farm_asset module to asset module. 2020-10-01 15:48:04 -04:00
Michael Stenta 622edfd1d9 Add "administer farm_assets" permission and replace uses of "administer farm_asset". 2020-10-01 15:48:04 -04:00
Michael Stenta 7d4288485c Change "pending" state to "active". 2020-10-01 15:48:04 -04:00
Michael Stenta 7992bd61ca Make *.info.yml files consistent with other farmOS modules. 2020-10-01 15:48:04 -04:00
Pedro Cambra 504466089b Added data table 2020-10-01 15:48:04 -04:00
Pedro Cambra 92868d5ef9 first commit of farm_asset module 2020-10-01 15:48:04 -04:00