Commit Graph

7548 Commits

Author SHA1 Message Date
Michael Stenta fcfee8f72d Mark ManagedRolePermissions and ManagedRolePermissionsManager as @internal. 2022-11-16 14:37:55 -05:00
Michael Stenta 9f5ee25f44 Mark LogQueryFactory as @internal. 2022-11-16 14:37:55 -05:00
Michael Stenta 8b0b50315b Make translatable strings consistent between fields and actions #594 2022-11-16 14:26:30 -05:00
Paul Weidner 230c00fbde Add action for bulk assigning asset parent #588 2022-11-16 11:25:17 -05:00
Paul Weidner 9f85bf9e81 Move asset parent base field to new farm_parent module. 2022-11-16 10:57:37 -05:00
Paul Weidner 34ca8d4d90 Add action to bulk categorize logs #590 2022-11-16 10:44:03 -05:00
Paul Weidner 815678f711 Move log category base field to farm_log_category module 2022-11-16 10:44:02 -05:00
Michael Stenta acd5c2bc7c Issue #3282186 by paul121, m.stenta: Update simple_oauth to ^5.2 2022-11-16 09:40:38 -05:00
Paul Weidner d815c9b630 Update simple_oauth dependency to ^5.2.2
This includes the fix for issue #3320581: Mismatched entity and/or field definitions error.
2022-11-16 09:40:27 -05:00
Paul Weidner e4a3f29dae Update simple_oauth to ^5.2.1.
We can depend on 5.2.1 which depends on consumers ^1.14 and loads consumers using client_id instead of UUID.

We can remove the patch for issue #3167287: Always load clients through the ClientRepository service.

We can remove our ClientRepository service override as well as the now duplicated ConsumerClientIdTest functional tests.
2022-11-16 09:40:27 -05:00
Paul Weidner bc9e312ea9 Update simple_oauth patch for Issue #3186301: Make $modules variable protected in tests. 2022-11-16 09:40:27 -05:00
Michael Stenta f7a4c2631d Add CHANGELOG.md line for simple_oauth ^5.2. 2022-11-16 09:40:26 -05:00
Michael Stenta 6168c8e6c7 Pass client_secret to fix failing OAuth tests. 2022-11-16 09:40:26 -05:00
Michael Stenta f9be146bfb Remove simple_oauth patch for Issue #3193609 (merged upstream). 2022-11-16 09:40:26 -05:00
Michael Stenta 64025045b3 Issue #3282186: Update simple_oauth to ^5.2. 2022-11-16 09:40:26 -05:00
Michael Stenta 81845df9cc Update simple_oauth patch for Issue #3193609: invalid_credentials error does not conform to OAuth2 spec 2022-11-16 09:40:26 -05:00
Michael Stenta e050dc34e4 Update simple_oauth patch for Issue #3167287: Always load clients through the Client Repository service 2022-11-16 09:40:26 -05:00
Michael Stenta 371cc085dd Remove simple_oauth patch for Issue #3173947 (merged upstream). 2022-11-16 09:40:26 -05:00
Michael Stenta f705ed0e71 Update simple_oauth to 5.1.0-beta1 for PHP 8 support. 2022-11-16 09:40:26 -05:00
Michael Stenta c046e6dd8c Issue #3311264: Coordinate upgrade of Consumers module to get client_id base field 2022-11-16 09:39:21 -05:00
Paul Weidner 4e7543f594 Add consumers dependency to ^1.15
This changes the update hook added in issue #3310801 so that OAuth tokens are not deleted.
2022-11-15 17:32:30 -05:00
Paul Weidner 8d02ab8687 Modify farm_api_update_9001 to use SQL update instead of entity save.
This prevents existing oauth tokens from becoming invalidated.
2022-11-15 17:32:30 -05:00
Michael Stenta b6969b1371 Add CHANGELOG.md line for Issue #3311264. 2022-11-15 17:30:40 -05:00
Michael Stenta 03eafefc46 Implement hook_update_N() and hook_update_dependencies() to migrate client_id field values. 2022-11-15 17:28:15 -05:00
Michael Stenta e9968828ce Stop pinning consumers module. 2022-11-15 17:28:15 -05:00
Michael Stenta 1c9b01bb45 Stop providing client_id field on consumer entities. This will be handled by the consumers module itself now.
See https://www.drupal.org/project/consumers/issues/3310801
2022-11-15 17:28:15 -05:00
Paul Weidner 91d74f8574 Update farmOS-map to 2.1.0 #589 2022-11-15 14:02:24 -08:00
Paul Weidner cbef969091 Use null coalescing operator in ManagedRolePermissionsManager 2022-11-15 10:53:48 -05:00
Paul Weidner f939c80744 Fix click sort columns expand filters fieldset #586 2022-11-12 15:42:17 -05:00
Michael Stenta 56b200e0ea Check PHP compatibility with codesniffer #593 2022-11-12 15:41:30 -05:00
Michael Stenta 1803776b53 Check PHP compatibility of contrib modules and themes in delivery workflow. 2022-11-12 15:13:02 -05:00
Michael Stenta 4b149a6e14 Rename Numeric.php to NumericCondition.php.
Resolves PHPCompatibility codesniffer warning:

FILE: /opt/drupal/web/profiles/farm/modules/core/data_stream/modules/notification/src/Plugin/DataStream/NotificationCondition/Numeric.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
 18 | WARNING | 'numeric' is a soft reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or trait or as part of a
    |         | namespace (T_CLASS)
------------------------------------------------------------------------------------------------------------------------------------------------------
2022-11-12 15:13:02 -05:00
Michael Stenta 80c6516c76 Check PHP 7.4+ compatibility with PHPCompatibility codesniffer extension. 2022-11-12 12:30:30 -05:00
Paul Weidner 10e5d9afc2 Adapt csv export logic to support a type filter allowing single or multiple values. #584
The current logic is expecting the exposed type filter to always be an array. This causes
csv exports to break when exporting from the all quantities page because the quantity
type filter does not allow multiple values. When no quantity type is provided the type
filter is set to 'All'.
2022-11-12 11:55:00 -05:00
Michael Stenta 9a207bdc54 Minor improvements to views task links #573 2022-11-12 11:14:48 -05:00
Paul Weidner bd1fe4a657 Set default route parameter and remove route parameter from primary view tabs.
This allows the primary view tab to be marked as active when viewing its secondary tabs.
Both the route and route parameters are checked when determining active tabs,
the conflicting route parameters prevents the primary tab from being active.
2022-11-12 11:00:54 -05:00
Paul Weidner c923da3f0b Consolidate asset log views tab generation to deriver class. 2022-11-12 11:00:54 -05:00
Paul Weidner 8510e71be1 Standardize minor code style issues in FarmTaxonomyTermEntityViewsAccessCheck constructor. 2022-11-12 11:00:54 -05:00
Paul Weidner d08c3e2b09 Simplify derivative task link ids. 2022-11-12 11:00:54 -05:00
Paul Weidner 63a63935a3 Consolidate asset and log tab generation to deriver class. 2022-11-12 11:00:54 -05:00
Paul Weidner 7c55dfe8c1 Translate "All" text in default sub-tab. 2022-11-12 11:00:54 -05:00
Paul Weidner 5410d33acd Add comments to each code block. 2022-11-12 11:00:54 -05:00
Paul Weidner a9d1ae32a9 Remove unnecessary id from taxonomy term views task links. 2022-11-12 11:00:54 -05:00
Michael Stenta 4518cf4557 Update XDebug documentation to recommend discover_client_host=yes. 2022-11-12 10:29:57 -05:00
Michael Stenta 169df4f51c Remove unnecessary call to phpcs --config-set installed_paths.
The dealerdirect/phpcodesniffer-composer-installer plugin handles
this for us automatically now.
2022-11-12 10:25:58 -05:00
Michael Stenta df650caee5 Add extra.drush.services section to minimal composer.json files in modules that provide Drush commands.
This resolves the following complaints from Drush:

 [info] farm_migrate should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file.
 [info] farm_update should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file.

See https://github.com/drush-ops/drush/issues/5297
2022-11-12 10:25:35 -05:00
Michael Stenta eabd7c2429 Update farm_role example in docs to match code. 2022-11-12 09:42:13 -05:00
Michael Stenta 268be488e0 Issue #3317437: Use hook_install_tasks() instead of hook_install() in farm profile 2022-10-25 13:41:59 -04:00
Michael Stenta 8c67afa431 Update to GitHub actions/checkout@v3.
Fixes the following warning in GitHub Actions runs:

Node.js 12 actions are deprecated. For more information see:
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Please update the following actions to use Node.js 16:
actions/checkout, actions/checkout
2022-10-12 07:24:36 -04:00
Michael Stenta 616261498d Fix PHPStan error: Variable $target_state in empty() always exists and is always falsy. 2022-10-10 16:13:29 -04:00