Commit Graph

1999 Commits

Author SHA1 Message Date
Paul Weidner 59673a5b64 Only change the www-data ID right before it is needed. #457 2021-10-18 09:10:17 -04:00
Michael Stenta 1a7582b8ab Only perform UniqueBirthLogContraint validation on birth logs. 2021-10-14 09:53:22 -04:00
Michael Stenta 44eb865048 Stub crop family reference terms.
If the crop family migration happens after plant type migration
then these references would not be populated. This shouldn't
happen, because plant type depends on crop family, but it may
be possible. Better to know that something happened than to
silently end up with empty references.
2021-10-14 09:42:13 -04:00
Michael Stenta 6d63bfbafb Correction in migration docs (farm_migrate:import). 2021-10-14 09:40:30 -04:00
Michael Stenta c7d2fce98e Remove forum_container field processing from taxonomy term migration group.
We don't need this for anything.
2021-10-11 15:46:08 -04:00
Michael Stenta 7f2e56bd61 Issue #3242468: Validation error migrating taxonomy terms that are parents of other terms 2021-10-11 15:45:56 -04:00
Michael Stenta ccbb206d56 Remove request_time migrate process plugin - no longer used. 2021-10-11 14:44:54 -04:00
Michael Stenta 70e391c864 Do not archive areas without an area type during migration.
This was supposed to be included with the previous commit:
4d59cd69c7
2021-10-11 14:42:43 -04:00
paul121 d86c21cff2 Issue #3241690 by paul121: User 1 cannot use the refresh_token grant type
Load all roles for user 1 so they can be granted all possible scopes.
2021-10-08 19:29:03 -04:00
paul121 703f31d0e1 Issue #3241652 by paul121: Depend on drupal/subrequests 2021-10-08 17:46:51 -04:00
Michael Stenta 463096d42d Update Entity Reference Integrity to 8.x-1.1 and remove patches that were merged upstream.
This reverts commit 4c30aca7c5, reversing
changes made to e6b76a7446.
2021-10-07 10:17:36 -04:00
Michael Stenta 840307e36d Remove unnecessary remember_roles from Views config. 2021-10-04 19:21:00 -04:00
Michael Stenta 4c30aca7c5 Issue #3192238 by paul121: 500 error when using VBO to delete an asset referenced by a log 2021-10-04 19:19:18 -04:00
Michael Stenta 3b5fa75731 Patch entity_reference_integrity to fix Issue #2831365: Make action confirm_form_route_name forms that delete entities disabled when protected 2021-10-04 16:30:29 -04:00
Michael Stenta fb9b7fd1d6 Patch entity_reference_integrity to fix Issue #3195039: 500 error when deleting referenced entities via JSONAPI 2021-10-04 16:30:29 -04:00
paul121 e6b76a7446 Issue #3240330 by paul121: Computed bundle fields break page_type views
Default to the entity type's base table if the table mapping does not find a table for the bundle field.
2021-10-04 16:28:29 -04:00
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