Problem/Motivation
The module is deprecated but
- permission administer actions defined by action module but used by Action entity in system module
- rest and jsonapi tests for the config entity are marked as @legacy but should be in respective modules
It's a blocker for #3432134: Remove Action UI module
Proposed resolution
- move permission definition to system module (as the entity defined there)
- move REST tests to system module
- move JSONAPI tests to jsonapi module
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3437589
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3437589-move-action-permission
changes, plain diff MR !7292
Comments
Comment #2
andypostComment #4
andypostAs without Actions UI module the Action entity has no canonical link cache contexts are broken
Can't figure out why, looking for help
Comment #5
catch@andypost I think you could remove url.site from the expected cache contexts in the assertion?
Comment #6
andypost@catch sadly I can't figure out how to do that in child tests
Comment #7
catchhmm it will probably need changes to the base class so the child tests can then alter the expected cache tags.
Comment #8
andypostFixed by overriding method as
BaseFieldOverrideResourceTestBasedoingRest tests should be moved to System module nearby Menu entity, it was done in #2910883: Move all entity type REST tests to the providing modules
The only question is about
ActionTestwhich still looks slowComment #9
andypostComment #10
smustgrave commentedI elevated this to major since it's needed for action removal and that date is getting close.
Reviewed the change and moving of permission and tests seems fine, didn't break anything. Nothing stood out as a problem to me.
Comment #13
catchInitially wondered about the permissions move, but we need it for jsonapi and rest even if there's no UI, so really no choice there.
Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!