Problem/Motivation
Follow-up to #2083649-42: Rename action module to action_ui
Original intent was rename the module, but it considered very disruptive for D8
So idea is to use Actions UI to prevent fix of action plugins (which used by views mostly) and the configurable actions UI
Proposed resolution
Change user facing strings and code comments
Remaining tasks
- get usability review, given in #71
- get product manager sign-off, given in #71
- commit
User interface changes
Instead of Actions the module name becomes Actions UI


API changes
no
Data model changes
no
Release notes snippet
Action module now using Actions UI in user interface
Comments
Comment #2
naveenvalechaComment #3
naveenvalechaHere's the start
Comment #5
naveenvalechaComment #6
lomasr commentedHi Naveen , I have little confusion . The title says "Rename action module to action_ui in the UI and in comments" . Does that means on "admin/module" also, apart from comments.
Comment #7
naveenvalechayou mean module name ? yes module name would also be the part of the string change.
Comment #8
lomasr commentedThanks Naveen for the clarification . As per the suggestion in '2083649' #41 . I have changed the description & comment in action.module file.
Comment #10
dawehnerChanges like this should be AFAIK first communicated/discussed with the UX team.
Comment #11
chi commentedFor the time being, the Actions module includes some action plugins which are not related to actions UI. Shall we first move them to System module or somewhere else?
Comment #14
chi commentedBesides this there are migrate templates in it.
Comment #17
andypostActions moved to core in #2815379: Move message, goto, and email action plugins to Drupal\Core\Action
Now rename can continue
Comment #19
naveenvalechaHere's the fresh start of the patch for 8.8.x
Comment #21
naveenvalechaFixing the tests
Comment #22
andypostComment #23
daffie commentedThe patch looks good to me. All that is changed are a couple of things.
Comment #24
chi commentedWhat about #14?
Comment #25
daffie commented@Chi: I the META issue #2083649: Rename action module to action_ui are sub-issues linked, including the stuff that you are asking about.
Comment #26
andypostReroll #21
Probably it could close related issue
@Chi - only migrations and tests left so filed separate issue #3067299: Move actions migrations and tests to system module
Comment #27
andypostOne more mention fixed
Comment #30
daffie commentedThere is a problem with the following test: Drupal\Tests\system\Functional\Module\InstallUninstallTest.
Comment #31
andypostMy bad, fixed
Comment #32
daffie commentedThe patch looks good to me. All that is changed are a couple of things.
Comment #34
daffie commentedBack to RTBC.
Comment #35
larowlanComment #37
vacho commentedComment #38
andypostComment #39
MixologicI think that module renames should have some sort of BC layer. I feel like there needs to be a core policy for how we plan to handle these types of changes.
Comment #41
thallesWorks for me!
@see:

But, here too should not be Actions UI?

Comment #42
chi commentedThat's a label for a list of actions not for the module. So "Actions" is Ok I think.
Comment #43
jhodgdonBut the help page calls it the "Actions UI page". The help should match the page title. So either the help needs to be updated, or the page title needs to be updated. I would vote for leaving the page title as it is.
Comment #44
ravi.shankar commentedI have made changes as suggested in #43 and recreated patch.
Comment #45
gnanagowthaman sankar commentedHi All,
I made all the changes here is the patch.
Thanks & Regards,
Gnanagowthaman sankar
Comment #46
gnanagowthaman sankar commentedHere is the patch.
Comment #47
jhodgdonPLEASE make an interdiff file when you add a new patch to an issue that has already had several patches. This lets us see what is different.
PLEASE also go back and actually read #43, which suggests NOT changing the routing and links. Naming the page "Action UI" does not make sense to me. We don't name the admin/structure/views page "Views UI". The module is called "Views UI" but the page is called "Views". The same thing should be done here.
Comment #48
gnanagowthaman sankar commentedApologies @jhodgdon
am newbie for creating patch. Here after i will make interdiff.txt if many patches exist. Hereby I attached the interdiff and the patch.
Comment #49
jhodgdonI'm sorry for getting frustrated. It is really much better if one person makes a patch, sees the comments, makes another patch, etc. rather than having 10 people contributing patches and not really building on each others' work. This issue has seen many many patches that basically ignored what had gone before, and people coming into the issue and not apparently reading the issue comments.
Anyway. This patch still has many problems. I will be specific this time, looking at the latest patch in #48.
a) actions.module:
This is wrong. The *module* is now called "Actions UI".
b) actions.module inside the hook_help:
Modules can also provide additional actions ui.This is wrong. Modules can provide *actions*.
c) actions.module inside the hook_help:
This is wrong. They are simple actions.
d) also in hook_help
This is wrong. They are advanced actions.
e) also in hook help twice:
This is wrong. The page should be called Actions not Actions UI.
f) also in hook_help:
two types of actions
g)
This is wrong. This is the link to the page, and should be called Actions not Actions UI.
Comment #50
gnanagowthaman sankar commented@jhodgdon Am extremely sorry for making you frustrated. Here i had attached the changes as you mentioned and attached diff file. Please let me know for any changes.
Comment #51
jhodgdonThe changes here look correct, except:
in the hook_help. It should just be "actions" not "actions ui".
I am unsure about whether there are other places in core that need changes. I only reviewed the changes that were made in this patch, and verified that they are (mostly) OK.
Comment #52
gnanagowthaman sankar commentedHi @jhodgdon,
I made the changes in the patch as you mentioned in the comment #51, And let me know whether any changes have to be made. Here by i am attaching the interdiff file and the patch file.
Thanks & Regards,
Gnanagowthaman Sankar
Comment #53
gnanagowthaman sankar commentedThanks
Comment #54
jhodgdonWhen you post a patch, rather than manually adding tests, you should set the issue status to Needs Review (which will automatically launch the tests, and it also signals human reviewers that you have a patch that is ready to be reviewed). Thanks!
Anyway, this patch doesn't have any problems that I can see.
I'm removing the accessibility review tag -- I can't see why changing the name of a module is an accessibility issue.
Comment #55
gnanagowthaman sankar commentedHi @jhodgdon, Am newbie to this patch work. As per your guidelines i will do that in future. And wont let the mistakes happen in future. sorry and thanks.
Thanks & Regards,
Gnanagowthaman sankar
Comment #56
jhodgdonNo worries! I was just posting instructions so you would know for other patches in the future. Anyway I think I should mark this RTBC actually, although it still needs to be reviewed by the product managers to see if it is a change we actually want to make.
Comment #57
gnanagowthaman sankar commentedThank you so much @jhodgdon for your help. Ok sure.
Comment #59
jhodgdonUnrelated test fail #3103492: Random fail in WidgetUploadTest
Comment #60
andypostAs #3022401: Remove useless config action.settings.recursion_limit landed this issue and #3067299: Move actions migrations and tests to system module are 2 remaining blockers for final rename
Comment #61
xjmHas this had a UX review? I remember @webchick having concern with this pattern of naming and having separate modules UI modules when we did the last batch of these.
Here's what we have in core right now for modules with this name pattern:
In all those cases the UI name reflects the machine name. Changing the machine name for the module is not in scope for Drupal 9; however, is the goal here just to point out that Actions is a user interface only and that the actual actions APIs are core subsystems? That might be OK, but we should have UX review at least (or product feedback).
Comment #62
andypostUpdated summary a bit
Comment #63
catchWould need to happen in 9.1 now, still needs product manager sign-off.
Comment #64
neslee canil pintoPatch for 9.1.x
Comment #65
xjmLooks like it's "Actions UI" (plural actions).
Comment #66
xjmLet's try this.
Comment #71
webchickWe reviewed this on today's usability meeting: #3137865: Drupal Usability Meeting 2020-06-09
The list of existing X UI modules in #61 is helpful. Most of my pushback on issues like this has been around the seeming arbitrariness of why we sometimes do and sometimes don't split the modules from their UI, and carefully balancing when we choose to increase the "mental load" of site builders by forcing them to turn on two things for the one feature they're trying to get.
However, for the most part (Menu UI feels like kind of a weird outlier...), the existing "de-facto" standard in core seems to be that we do a "X vs. X UI" split when:
It seems like Actions falls under both of those criteria. It's a generic architectural concept, exposed by other modules. And the Actions UI is very simple; Rules is the go-to example of a "beefed up" UI in contrib for the same concept (though sadly not the same actual architectural piece, AFAIK).
We discussed this as a team, and folks were +1 for the patch, and did not see a particular need to hold it up on #3067299: Move actions migrations and tests to system module, though it would be cleaner that way. We also found a fun bug in user module's actions naming which someone will post here. ;)
Comment #72
jhodgdonCreated this child issue for the bug we saw:
#3150316: Configured actions created by User module cannot be edited
Comment #73
xjmI grepped all instances of "Actions" in core (capitalized and not), and skimmed them for any other things that appear to be the UI label of the module. This is extra fun because we also have a kind of menu link called "actions", form actions (submit/cancel buttons), etc. among all the other various meanings. ;)
In
action.routing.yml, there is:...but that is a page for administering actions, so it wouldn't make sense to have "UI" on the link.
Similarly in
action.links.menu.yml:That seems fine too.
There are also a few comments like:
// Create a user with permission to view the actions administration pages....but arguably that's correct as well, since they are both the Actions UI administration pages, and the pages on which actions are administered.
Everything else that I saw appeared to be clearly referring to "actions" as in the entities themselves, or was unrelated to this module.
I took care of updating https://www.drupal.org/docs/8/core/modules/action/overview, so crediting myself for that.
However, as I was about to commit this, I re-read the following in light of my grep:
I'm not convinced these changes are actually correct. The linked pages are the action administrations pages. (See what I said above about the link and route labels.) Either we should also change the official names of those pages, or (my preference, we should back out these two changes to the help documentation. If we want to disambiguate it, we could call it the "Action administration" page or something. Or just remove these changes from the patch. Thanks!
Comment #79
danielvezaThis issue is very close but has now stalled for a few years. Lets get this moving forward :).
I've checked the patch, it still applies to 10.1.x, I've done a grep of actions, like @xjm said it's very hard with how common the word is. It did uncover that changes need to be made in the help topics module, so I've made the changes there as well.
Re: #73, I like "Actions administration page" so I've made that change as well.
Comment #81
danielvezaFixing that failing test
Comment #82
gaurav-mathur commentedComment #84
danielvezaFirst test fail was a random fail. Tests passing on second run. Ready to review
Comment #85
gaurav-mathur commentedPatch #81 is applied successfully on drupal 10.1.x and working fine, Rename the Action module to Action UI.
Refer to screenshot
Thank you
Comment #86
sahil.goyal commentedMoving too RTBC as changes shows correctly
Comment #87
xjmThanks for getting this issue started again.
I found some missed strings in Help Topics with the patch applied:
Comment #88
xjmFixing attribution.
Comment #89
sergiogsanchez commentedCreating a patch based on Daniel's one, adding the Help Topics strings according to the XJM suggestions
Comment #90
danielvezaHey @sergiogsanchez, could you please post an interdiff between the previous patch and your new one? It would be helpful for reviewers to be able to ensure only the relevant changes have been made.
There is a guide to interdiffs here if needed https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...
Comment #91
sergiogsanchez commentedHi @DanielVeza, thanks for the heads up; attaching the interdiff from 81 to 89.
Comment #92
sergiogsanchez commentedComment #93
danielvezaThanks for that. Setting back to RTBC
Comment #94
xjmIt looked like there was no change record for this issue, so I created one:
https://www.drupal.org/node/3331881
I verified that the online help is updated with the correct name:
https://www.drupal.org/docs/8/core/modules/action
I considered whether the URL aliases should be renamed to
actions_ui. However, I checked and confirmed other core modules have URL aliases based on their machine names, not the user-facing labels. I did add redirects from the user-facing label variant in case anyone tries to type it in.I reviewed with
git diff --color-wordsand confirmed that this is:I also carefully grepped the codebase for other uses of "Actions" or "Action" as a capitalized word, with
From that grep, we still need to fix the following places:
I believe the labels in the following file are correct as-is, since they refer to the collection of actions and not the module itself:
Then with:
There's this one:
Sorry for not catching these three the first time!
Comment #95
danielvezaGood catch! Updated those references. There were 2x in ActionUninstallTest.php, updated them both.
Comment #96
danielvezaComment #97
sergiogsanchez commentedHi, I checked the code standards on 2811663-95.patch; all the suggested strings were updated correctly according to previous comments. I tested the patch, and it works as expected on the Drupal extend page and help pages; I checked the maintainers file, test files; and comments updated.
Comment #98
quietone commentedNoting in the IS that that has product manager and a usability review.
Comment #100
andypostunrelated failure
Comment #101
larowlanWhilst we aim to remove this module from core by D11, I think its useful to have the rename now.
Committed to 10.1.x, published change record
Comment #103
andypostThank you! Linked meta