Commit Graph

1983 Commits

Author SHA1 Message Date
Michael Stenta 83d1a66b8c Issue #3240350: Farm report module 2021-10-04 12:24:16 -04:00
Michael Stenta 6207d09d9d Style the reports toolbar icon with a Gin SVG. 2021-10-04 12:24:08 -04:00
Michael Stenta 0defc4d966 Move the farm.report menu link to the farm.base parent via farm_ui_menu. 2021-10-04 12:24:08 -04:00
Michael Stenta f2da5c96c8 Grant report index access to managed roles with config-level access. 2021-10-04 12:24:08 -04:00
Michael Stenta b5360d91be Add an index of reports at /report. 2021-10-04 12:24:08 -04:00
Michael Stenta dccaa1f43a Initial farm_report module. 2021-10-04 12:24:08 -04:00
Michael Stenta 0777434466 Issue #3185188 by paul121, m.stenta: Views exposed filters for Entity References 2021-10-04 12:23:24 -04:00
Michael Stenta cafd8bd760 Limit Views Entity Reference exposed filters by View or target_bundles. 2021-10-04 12:02:37 -04:00
paul121 254c303e33 Remove log.asset and log.location filters from the page_asset display. 2021-10-04 10:30:41 -04:00
paul121 99b1ca5637 Add default exposed filters for log.asset and log.location. 2021-10-04 10:30:41 -04:00
paul121 46553e7b5f Patch Drupal core issue #2429699: Add Views EntityReference filter to be available for all entity reference fields. 2021-10-04 10:30:41 -04:00
paul121 f4dc0d72eb Create release with softprops/action-gh-release v0.1.13. #452 2021-10-04 10:27:49 -04:00
Michael Stenta 986c7a8331 Issue #3239940: UniqueBirthLogConstraint allows creating two birth logs for the same child 2021-10-01 13:55:07 -04:00
paul121 7ef59222e5 Allow birth logs to be modified after being created. 2021-10-01 13:19:38 -04:00
paul121 02fa75c4ee Use an aggregate query to count birth logs. 2021-10-01 13:14:00 -04:00
paul121 3604cf9483 Use EntityReferenceFieldItemList to iterate over entities. 2021-10-01 13:14:00 -04:00
paul121 10fec240cc Include the delta in the violation path. 2021-10-01 13:14:00 -04:00
paul121 a328446b72 Fail validation if more than 0 birth logs reference the asset. 2021-10-01 13:14:00 -04:00
Michael Stenta a4fe7d5139 Issue #3239929 by paul121, m.stenta: Specify access checking in content entity queries 2021-10-01 13:13:35 -04:00
paul121 8127e751a8 Specify accessCheck(FALSE) in LoqQueryTest. 2021-10-01 10:01:35 -07:00
Michael Stenta 2ebeef595e Require explicit use of accessCheck() on the result of farm.log_query service. 2021-10-01 12:44:07 -04:00
Michael Stenta 3fa2cb6777 Fix documented log query service name. 2021-10-01 10:46:16 -04:00
Michael Stenta e22bf3e576 Document that access checking is not performed in farmOS services. 2021-10-01 10:46:16 -04:00
Michael Stenta f462573b4e Do not check access in log entity queries in asset.location and group.membership services. 2021-10-01 10:46:16 -04:00
Michael Stenta 5d0dc727f2 Do not check log access when searching for birth logs in UniqueBirthLogConstraintValidator. 2021-10-01 10:46:16 -04:00
Michael Stenta 26f7be7b73 Document the farm.log_query service access_check option. 2021-10-01 10:46:16 -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
Michael Stenta e6f183512c Do not allow ID Tag field to be created through the UI. #451 2021-10-01 07:07:57 -04:00
Michael Stenta 32f6457a06 Fix ID Tag type textfield fallback. 2021-10-01 06:20:32 -04:00
Michael Stenta b0a45f357b Include symfony/finder in require-dev to fix version pinning issue when using composer-merge-plugin.
Resolves:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/core-dev[9.2.0-alpha1, ..., 9.2.x-dev] require symfony/finder ^4.4 -> found symfony/finder[v4.4.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.3.7 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires drupal/core-dev ~9.2.0 -> satisfiable by drupal/core-dev[9.2.0-alpha1, ..., 9.2.x-dev].
2021-09-28 13:54:43 -04:00
Michael Stenta bd33d0f139 Issue #3239420: Use composer-merge-plugin to manage project composer.json dependencies
This enables more of the dependencies and configuration that need to be
present in the root project composer.json to be managed in the farmOS
repository itself, including drupal/core-composer-scaffold and
drupal/core-dev, which should match the drupal/core version defined in
the farmOS composer.json.

Previously these were declared in the project composer.json template
in https://github.com/farmOS/composer-project. This configuraton is
used as a template when a new farmOS project is created via
`composer create-project farmos/project`, but after initial setup it
is maintained by the end user. This means that updates to the project
composer.json generally requires the end-user to make changes
manually. This would be required every time farmOS requires a minor
version update of Drupal core.

So instead, we can manage those update in this new composer.project.json,
and use wikimedia/composer-merge-plugin to merge that into the project
composer.json. This allows the project composer.json to be much simpler,
and therefore will require less frequent manual updates.
2021-09-28 13:54:43 -04:00
Michael Stenta 092b6936d4 Clarify that farm_update only reverts configuration entities - not simple config. 2021-09-27 09:50:22 -04:00
paul121 3a46ccb60b Issue #3239191 by paul121: Change farm_update to ignore simple config 2021-09-27 09:50:10 -04:00
Michael Stenta fa3ead44a1 Remove redundant properties from composer.libraries.json. 2021-09-26 16:34:49 -04:00
Michael Stenta 1d0dd9c053 Update to Drupal 9.2 #449 2021-09-24 14:29:51 -04:00
Michael Stenta da6888f75d Use default test result printer now that updated version of HtmlOutputPrinter is available. 2021-09-24 14:29:29 -04:00
Michael Stenta 405749bed0 Update patch for Issue #2339235. 2021-09-24 14:29:29 -04:00
Michael Stenta fdfa953e71 Update drupal/core to ~9.2.0. 2021-09-24 14:29:29 -04:00
Symbioquine efb8535150 Improve plan 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 a plan 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
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 20ceb84193 Move ID Tag base field to farm_id_tag. 2021-09-24 12:23:01 -04:00
Michael Stenta e9e523c095 Move flag base field, action, config, and logic to farm_flag. 2021-09-24 12:22:25 -04:00
Michael Stenta 0029cfbf01 Move Views stuff from farm_entity to new farm_entity_views sub-module. 2021-09-24 12:21:15 -04:00
Michael Stenta 9e26868112 Move base field definitions from farm_entity to new farm_entity_fields sub-module. 2021-09-24 12:21:15 -04:00
Michael Stenta 10f486e606 Merge branch '2.x-owner' into 2.x 2021-09-24 12:20:53 -04:00
Michael Stenta 792c24edce When a log is saved without owner(s), set the current user as the owner. 2021-09-24 11:50:32 -04:00
Michael Stenta 1502115bc7 Move log assignment action to farm_owner module. 2021-09-24 11:50:32 -04:00
Michael Stenta 0f84ff1575 Move Log Owner base field to dedicated farm_owner module. 2021-09-24 11:50:32 -04:00
Michael Stenta 1f0c254e79 Remove explicit dependency on farm_flag from farm_maintenance. 2021-09-24 11:50:02 -04:00
paul121 6646a31d37 Log the result after reverting config. #447 2021-09-24 10:03:19 -04:00