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

1972 commits

Author SHA1 Message Date
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
Michael Stenta c26ac4f5a2 Bump Gin to alpha36. 2021-09-24 09:41:46 -04:00
paul121 585f3eaecb Add missing default_measure key for material quantity. #448 2021-09-24 07:30:32 -04:00
Michael Stenta e0e34d6e01 The farm_geo module depends on geofield for the geofield.geophp service. 2021-09-23 16:54:55 -04:00
Michael Stenta bc7af7bd47 Issue #3220627: Optionally apply configuration changes automatically 2021-09-23 10:05:49 -04:00
Michael Stenta 74bbbd180f Document that it may be necessary to clear caches after farmOS updates. 2021-09-23 10:01:41 -04:00
Michael Stenta db40dc13a6 Exclude system.performance config from automatic updates. 2021-09-23 09:55:41 -04:00
Michael Stenta b08c9ab1b5 Exclude user.role.anonymous and user.role.authenticated config from automatic updates. 2021-09-23 09:55:41 -04:00
Michael Stenta 7eccc896cd Document farmOS Update module's automatic configuration updates and exclusion options. 2021-09-23 09:55:41 -04:00
Michael Stenta d51176aef1 Automated tests of farmOS Update module. 2021-09-23 09:55:41 -04:00
Michael Stenta f575b0039f Exclude farm_update.settings config from automatic updates, just to be safe. 2021-09-23 09:55:41 -04:00
Michael Stenta f881bea2e3 Allow additional config exclusions to be defined in farm_update.settings. 2021-09-23 09:55:41 -04:00