Problem/Motivation
The help text of the Worksflow module does not follow the Help text standards as described in https://www.drupal.org/help-text-standards. It misses the Uses section.
Proposed resolution
Editing the help text according to the standard.
Remaining tasks
Add the Uses sectionReplace Drupal::url()
User interface changes
This is a UI text change
| Comment | File | Size | Author |
|---|---|---|---|
| #86 | diff-patch-MR.txt | 3.67 KB | smustgrave |
| #81 | 2861849-81.patch | 4.01 KB | _utsavsharma |
| #81 | interdiff_80-81.txt | 1.04 KB | _utsavsharma |
| #80 | interdiff_62-80.txt | 3.77 KB | kunalgautam |
| #80 | 2861849-80.patch | 3.98 KB | kunalgautam |
Issue fork drupal-2861849
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:
- 2861849-edit-hookhelp-text
changes, plain diff MR !8854
Comments
Comment #2
prash_98 commentedHave added the uses section along with the link to the documentation.
Comment #4
gaurav.kapoor commentedComment #5
gaurav.kapoor commentedRe-roll
Comment #6
ifrikprash_98, gauruv.kapoor,
both of your patches do not follow the Help text standard mentioned in the issue summary above. It still doesn't describe the Uses. Also the module description has not been changed. Meanwhile the About section was fine, but you changed that unnecessary.
So if anybody else want to work on this issue, please just start again from scratch, and check the help text standards first.
Comment #7
pepegarciag commentedI will work on this.
Comment #8
pepegarciag commentedI started again from scratch as #6 suggested so I just added the Uses section and make the description fit one sentence. I moved part of the description to the Uses section because it seems to fit there.
Comment #9
pepegarciag commentedComment #10
lomasr commented#8 looks good to me. Applied the patch it worked cleanly. Please see before and after screen. small grammar correction needed, I have created a patch for it. "a UI" to "an UI".
Comment #11
pepegarciag commentedComment #12
ifrikHi,
please check the issue summary before RTBCing something. The remaining tasks listed there are not done, and the Uses section does not follow the defaults that are linked from the issue summary.
Once that is done, the text needs to be checked by somebody who is working on this module because it is still an experimental module and it's functionality is still changing or might have been not really clear.
And as a general note: The person working on a patch shouldn't really RTBC it anyway, because the step of "reviewing by the community" ensures us that somebody else has a fresher look on it.
Comment #13
ifrikThe use of
Drupal::url()has been deprecated and needs to be replaced as well.See #2868989: Replace calls of the deprecated Drupal::url() from update.module for details.
Comment #14
lomasr commentedAs suggested in remaiing task 1 and 2 are done in the patch. 3rd, I think is not neccesary to be changed as suggested in #13 because it's an external URL. Please review and suggest.
Comment #15
lomasr commentedComment #16
ifrikThe proposed text does not follow the Help text standards as linked in the issue description, and it does not cover all the uses of this module.
Comment #17
sam152 commentedThis isn't actually true, workflows has no relationship to content. The workflows plugin in content_moderation is what introduces those semantics.
Same here.
Comment #18
prash_98 commentedHave made the changes as required. Please review.
Comment #19
ifrikPlease provide an interdiff.
Comment #20
prash_98 commentedUploading the interdiff..
Comment #22
prash_98 commentedAny updates with the issue?
Comment #24
ifrikprash_98: Did you even look at the Help text standards?
I'll work on this during the sprint weekend.
Comment #25
prash_98 commentedI have gone through it @ifrik and do let me know where I am making any error ...
Comment #26
shubhangi1995Hi all
The patch contains following changes
1) change in short description from above patch
2) change in use in help page
3) change in url
I am also attaching the interdiff
@ifrik sorry i missed your last comment , if still inaccurate please provide correct patch.
Thanks
Comment #27
shubhangi1995Comment #29
yogeshmpawarComment #30
yogeshmpawarRerolled the patch.
Comment #31
lomasr commented#30 worked fine for me.
Comment #32
amietpatial commented@Yogesh Your patch applied successfully and working fine
Comment #33
joachim commented> Add the Uses section
I don't see this in the patch.
(BTW @amietpatial there is no need to take screenshots of a patch applying correctly to the code.)
Comment #34
ifrik@lomars, @prash_98, @shubhangi1995, @yogeshmpawar,
It looks likes none of you looked at the Help Text Standards linked in the issue description or the list of remaining tasks.
I fail to understand why you think that the issue is done, or why you think that the patch works.
Instead of somebody actually fixing this issue, this is just creating work for others who repeatedly can only point to the same issue description. I would like to be able to give some constructive feedback, but this is really too frustrating.
Comment #36
manish.upadhyay commentedHi,
I have created a new patch with Uses and one liner short description on extend page.
Thanks,
Comment #37
manish.upadhyay commentedComment #38
ifrikSorry, but you did not add any Uses. You simply reworded the existing text a bit.
Comment #39
mradcliffeI added the DrupalEurope and Novice tag. The patch needs work to address the helpful reviews by @ifrik and @joachim in #33, #34 and #38.
Comment #40
ifrikComment #41
ifrikThe module description is now in a separate issue #2999423: Update the Workflows module description.
Comment #42
wengerkAs suggested by #41, remove the module description & only keep the
hook_helpin this issue.Comment #43
ifrikWengrek,
Are you around at the DrupalEurope sprint? Then I could talk to you about what needs to be done with this description. I'm in the sprintroom with the big windows on the Admin UI table.
Comment #44
volkswagenchickTagging for upcoming contribution days.
Comment #45
vermauv commentedComment #46
volkswagenchickComment #48
alfredofonseca commentedAlfredo and Jason, user jayzee we are trying to work on this at DrupalCon 2019 Seattle
(Our mentor mentioned this may not be the best issue to start working with, as Novice, so I will do no further work on this one)
Comment #49
volkswagenchickTagging for DrupalNorth 2019
Comment #50
ifrikVermauv, I asigned you so that somebody else can take this up.
Comment #51
ifrikWorking on it during DevDaysTransylvania
Comment #52
ifrikRemoved the tags for the camps during which there was no work done on this.
Comment #53
ifrikI've written a documentation for the Worksflow module, based on my understanding of it because there's no additional documentation to refer to.
This help text therefore needs to be reviewed by somebody who knows what the Worksflow module can or can't do. Checking whether the patch applies or whether the text reads nicely is not sufficient in this case.
Comment #55
ifrikReviewed by alexpott, and needs more work to emphasize that the module on its own doesn't do anything. But when there is a plugin to leverage its API then it provides a consistent UI.
Comment #56
yogeshmpawarSetting back to Needs Review & above test fails are not related.
Comment #57
ifrik@yogeshmpawar
Please see comment #55.
Comment #58
ifrikI've tightened up the text, and made it clearer that the user can't do anything with this module unless there is another module installed.
The slight duplication at the end of "Adding states" and "Adding transitions" is inline with other help texts, linking directly to the relevant admin pages for each use.
There's no interdiff because all the text is changed.
Empty lines that caused a Coding Standard Message are removed.
Comment #59
alexpottI think we can remove
For a content workflow, this could for example be an additional <em>Draft</em> state in addition to the default publication states.entirely. It's wordy and feels like it is in the weeds.I think we should remove
a config or content itemthat's an assumption the Workflows module doesn't make.A transitionsshould beA transition.Later on there's a
TransitionssThis is totally dependent on the module that implements the workflow type. I think all we can say is that particular workflow types might have additional options on here. But I feel it is the responsibility of the module that provides the workflow type to document this.
Comment #60
pguillard commentedThere is also a typo in the ":moderiation" link, which is broken,
and here "A transitions defines which in which state"
Comment #61
ifrikThanks, I'm now still trying to find why the Workflows link "Adding workflows" is broken...
Comment #62
pguillard commentedThis one took into account suggestions #59 2,3,4
Comment #63
ifrikThanks again pguillard for pointing out the broken link, and for coming and talking to me.
This patch takes the text changes into account, and fixes the broken links in "Add workflows". The interdiff is based on #58 because there was some confusion on pguillard's side on whether to review it or just patch it straight away, which overlapped with me working on it as well.
Comment #64
pguillard commentedAs #59 2,3,4 and #60 suggesstions were taken into account, and the broken link has been removed, I guess I can push it to RTBC !
Comment #65
ifrikpguillard: Do you also want to review #2999423: Update the Workflows module description ? That's the shorted description of the module on the Extend page.
Comment #66
ifrikSorry, I don't know why my comment reset the status.
Comment #67
alexpottOne thing I've been pondering is if we should have any of this. Looking at
content_moderation_help()that's the useful documentation. And maybe should be expanded to its specific case.Comment #68
ifrikHow about keeping this since it describes the functionality of the Worksflow interface - because this still should be of some use if a contrib module doesn't bother with documentation.
And then I have a look to see whether I can improve on the Conttent Moderation help?
Comment #69
ifrikComment #71
yogeshmpawarSetting back to RTBC because above test fails are unrelated.
Comment #80
kunalgautam commentedComment #81
_utsavsharma commentedTried to fix CCF for #80.
Comment #85
quietone commentedConverted to an MR and made some tweaks.
Comment #86
smustgrave commentedHad to apply locally to fully read it but addition adding a check for content_moderation seems like a great idea.
Attaching a diff of the last patch with the MR.
Comment #89
nod_Committed and pushed ae308e40f0 to 11.x and 564afc4ea5 to 10.4.x. Thanks!
Comment #91
amietpatial commented