Problem/Motivation
When a log is "rescheduled" via the bulk action provided by this module, it would be nice if a revision message could be recorded alongside it. This would provide some visibility into WHY a log is rescheduled, for future reference.
Proposed resolution
Add a "Revision message" field to the bulk action forms. I think all of them could benefit from this.
We may even want to prepend something like "Rescheduled: [message]" to give it even more specificity.
Remaining tasks
TBD
User interface changes
New "Revision message" field in bulk actions.
API changes
None.
Data model changes
None.
Issue fork log-3258268
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:
Comments
Comment #4
paul121 CreditAttribution: paul121 commentedAdding this to the "Mark as done" and "Mark as pending" actions would introduce a new config form + step. I think this *could* be quite useful, but not all the time... perhaps we could make this step configurable via the action config entity?
I added "Rescheduled:" and "Cloned:" as placeholder text. I like this idea but am hesitant to *always* prepend something to the message. I did not make this the default value because then it makes it harder to support an "optional" revision message since the value would already be filled in. And want to avoid including a "Include revision" toggle - just use the empty textarea to detect if no revision message is to be included.
It would be interesting if we could make the default text configurable through the action config entity as well.
Comment #5
paul121 CreditAttribution: paul121 commentedComment #6
m.stentaThis is great! Thanks @paul121!
All makes sense! I'm a little on the fence about the placeholder itself too. It works nicely as a "suggestion", and indication of what you could use it for - but I'm not sure if it adds value, because if you want to use the suggestion you still need to type it yourself. What do you think about removing the placeholders and just leaving a blank field?
Also, what do you think about changing the help text from "Briefly describe the changes you have made." to "Optionally add a message to describe this change. This will appear in the log's revisions." - Not much different, but emphasizes that it's optional, keeps the tense a bit more ambiguous, and notes where it will be saved.
I can make these two changes and merge this if you're OK with them!
Comment #7
m.stentaJust thought: it also just adds more strings that need translation... I've been getting more cognizant of this consideration since working on #3159886: [META] farmOS 2.x Localization
Comment #8
paul121 CreditAttribution: paul121 commentedAll sounds good!
I actually used this to minimize on translated strings - this is what Drupal core uses for the revision message description!
But I like what you proposed, I think we could capture both the placeholder and the "optional" nature of this in an updated description. +1
Comment #9
m.stentaOh good call! Didn't check that!
Haha OK - I'll commit. Six of one half dozen of the other! :-P
Thanks again!
Comment #11
m.stenta