Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
help.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Apr 2019 at 17:10 UTC
Updated:
1 Apr 2021 at 15:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jhodgdonParent issue was committed, so we can un-postpone this now!
Comment #3
jhodgdonAdding some related modules to this issue. Also there is no patch so the status is Active (my fault).
Comment #4
jhodgdonUpdated issue summary with better instructions/guidelines
Comment #5
jhodgdonAnother iteration on guidelines.
Comment #6
alonaoneill commentedI would like to work on this one.
Comment #7
jhodgdonWe've migrated the help topic standards to https://www.drupal.org/docs/develop/documenting-your-project/help-topic-... so updating issue summary again.
Comment #8
gaurav.kapoor commentedSince there was no activity on this so picked this issue. I have added overviews for required modules in this issues. Please Review. Thanks!!.
Comment #9
gaurav.kapoor commentedComment #10
jhodgdonThank you for the patch!
I have reviewed the text in the patch file. I did not test applying the patch and viewing the help topics, so that will need to be done eventually.
But for now... It looks like you just took the documentation in the hook_help and copied it into the new Twig format. That is not actually what we want in topics. Please read the issue summary here and follow the instructions and guidelines there to make good help topics. Thanks!
In particular, we probably want to have 1 overview topic for this issue that explains all the background information, such as:
- What is a workflow state?
- What is a workflow transition?
- What is a workflow?
- Overview of content moderation using workflows
And then we would need to have several task-oriented topics that would explain how to accomplish various tasks, like setting up workflow states, defining the workflow transitions, setting permissions for content moderation, and moving a piece of content through a workflow transition. Or something like that?
So... Please start over...
Comment #11
volkswagenchickTagging for badcamp2019, thanks! (October 2-5)
Comment #13
jhodgdonWe just found out that all topic Twig files currently need to go into core/modules/help_topics/help_topics (with their finalized module-based file names), for the time being until the Help Topics module is stable. Updating issue summary. Patch will need to be updated too.
Comment #14
jhodgdonComment #15
_m commentedMoving the files as per #13 to core/modules/help_topics @ Amsterdam2019
Comment #16
_m commentedAfter applying the patch, an error was thrown regarding the missing `front matter`, I checked other issues to get the correct syntax. I replaced the tags with the yml front matter.
i.e.
to
Then I moved the files into the help_topics path.
The still needs wording update as per #10.
Comment #17
jhodgdonJust realized the workspaces module is experiemental, so we probably don't want to document it yet.
Comment #19
shobhit_juyal commentedThe patch (3047722-16.patch) has been applied on 9.1.x branch cleanly.
Comment #20
mohrerao commentedI'm trying to reword this for topics and will add a patch soon.
Comment #21
mohrerao commentedAdding a patch as per suggested changes in #10. I still feel this needs a lot more to be added. Adding a draft now :)
Comment #22
mohrerao commentedComment #23
mohrerao commentedComment #24
jhodgdonThanks for the patch!
According to our Standards for Help Topics, a Task topic should have a one-sentence Goal section, and then a Steps section telling the steps to follow to achieve the goal. This topic has a Goal section that is a bullet list... it is really a "Section" topic providing background information, but it isn't following the standards for the headings of that type of topic either.
What we really need here is:
- 1 Section topic that gives an overview of content moderation and workflows, and follows the Standards.
- Several Task topics that follow the Standards to provide the steps for related tasks, such as setting up workflow states, defining the workflow transitions, setting permissions for content moderation, and moving a piece of content through a workflow transition.
Comment #25
mohrerao commentedComment #26
mohrerao commented@jhodgdon, Thanks for your inputs. This was an initial draft. Will update soon.
Comment #27
jhodgdon@mohrerao: Please let me know if you are still planning to make a new patch for this. If not, I will have some time this week and can work on it.
Comment #28
mohrerao commented@jhodgdon, working on it today
Comment #29
mohrerao commentedComment #30
mohrerao commented@jhodgdon, Have made changes as requested. Please review.
Comment #32
mohrerao commentedPlease ignore previous patch. Updating patch for failed test .
Comment #33
sivaji_ganesh_jojodae commentedComment #34
jhodgdonPlease read #24 again. This is still not what we need, and it still doesn't follow the standards.
Comment #35
jhodgdonHere is a new patch, which adds 3 topics: 1 overview and 2 task topics, as requested in #24.
One note: there seems to be a bug in the content moderation overview page. We'll need to look into that. I couldn't get admin/content/moderated to ever show me any content that needed moderation. Maybe this is a problem with just my site, I'm not sure...
Comment #36
jhodgdonIt turns out that the content moderation overview page is hard-wired to work only with nodes, and only if the content types are set up to be moderated using the default states provided by the default workflow provided by the Standard install profile.
So if you edit the default workflow or create your own, or if you are moderating something like Custom Blocks, or if you did not install using the Standard profile, that view page is useless.
Therefore, the topic about "Moving content between workflow states" in this patch needs some work. I think the best option is not to mention this fairly problematic view page at all, and just to direct people to find their content item using admin/content, or their custom block in the block library, or whatever.
Comment #37
jhodgdonOther thoughts on this patch:
a) The topic about configuring a workflow should start with a step about planning the workflow: decide on names for the states, how to transition between them, which one(s) are "published", and who should have permission to make the transitions. Then the rest of the steps will make more sense I think.
b) The topic about configuring definitely needs to have a final step about optionally making a view to show unmoderated content, with a few hints on how to make that view. And say if you don't do that, you'll need to set up some kind of email notification process or spreadsheet or something so people who need to review content know that there is content to be reviewed and how to find it.
c) The topic about moderating content should start by saying to go to the view page if you made one, or else find the content to be moderated using the process you set up.
So I think we should postpone this until the views topic help is done.
Comment #38
andypostViews topics commited
Comment #39
nitesh624Comment #40
nitesh624@jhodgdon can we have multiple Goals in one topic
Comment #41
jhodgdonNo. Please read the help topic guidelines, where it explains what a Task topic is: one goal, one set of steps.
Comment #42
nitesh624should we have to add more topics in this issue or update the patch as per comment in #37
Comment #43
jhodgdonI don't think we need more topics. The existing topics need to be edited as per #36 and #37. We could also have a new topic that explains how to make a content moderation view page.
Comment #44
nitesh624Changes done as per #36
directed people to find their content item using admin/content in the topic about "Moving content between workflow states".
I have few observation in #37(a)
Since we need to set 'states' after workflow is created so i think steps about creating states in at correct place
also added new topic that explains how to make a content moderation view page.
Comment #45
nitesh624Comment #46
sanjayk commentedComment #47
sanjayk commentedI have checked patch #44 working fine. I think good to go +1 RTBC.
Comment #48
jhodgdonThanks for the new patch!
What I meant in #37 a is that we need a step that is about thinking and planning, before we start in on the doing. I still think we need that. Without that step, the whole thing is pretty mysterious.
The views topic is a good start! But we already have a topic that covers how to make a view. This topic should link to that topic rather than repeating the basic information that is there. Right now it says to edit the view "edit it following the steps in the related topics below" but there are no related topics about editing views.
There are also some grammatical issues in this patch, but I think I'll wait until the content is closer before critiquing grammar.
Comment #49
volkswagenchickTagging this for DrupalCon Global happening July 14-17
Comment #50
jhodgdonThese writing tasks are not really Novice level.
Comment #51
batigolixI'll give this a try
Comment #52
batigolixThis patch can be reviewed.
The following changes were made:
- remarks from #36 & #37 & #48 incorporated
- views topic removed. after removing the general views instructions there was very little workflows specific information left, so I decided to remove the topic
- topic titles and topic filenames changed
I did not provide an interdiff because of the large amount of changes.
Apologies to earlier authors for throwing out some parts of their work.
Comment #53
batigolixComment #54
jhodgdonThanks! This is looking much better. A few small suggestions (see https://www.drupal.org/docs/develop/documenting-your-project/help-topic-...):
a) workflows.overview topic:
1. Title should start with a verb, like all the other topic titles
2. Generally we try to avoid using the word "Drupal" in help, so that the branding is not there, just in case someone is trying to build an application with different branding.
3. Overview topics should have a section called "Overview of ____" that lists the tasks you might do and what each core module does in the process (we need to talk about both the Workflows module and the Content Moderation module here). See item 4 on the "Parts of a section topic" on the standards page, or most of the other top-level topics for examples.
b) content_moderation.configuring_workflows topic:
1. Step 2 "A list with workflows is being shown." ==> "is shown" (instead of is being shown)
2. Step 16 -- link with text "Modifying the permissions for a role" does not work.
3. Step 17 -- there are two links with different text that both go to the topic on creating views... this doesn't seem right?
4. Step 17 -- "When creating the view ensure to select " ==> "be sure to select" (instead of ensure to select)
5. Step 17 -- It says to be sure to select a data type that has revisions, but shouldn't it say to choose one of the data types you configured in step 11/12 to work with this workflow? And maybe in steps 11/12 we should say that it has to be an entity type that supports revisions?
6. I think the Creating a view topic should be marked as Related?
7. It would probably also be useful in the Goal section to have a link back to the overview of workflows topic, something like "See [name of topic] for more information on workflows".
c) content_moderation.changing_states
1. Step 1 says to open the content moderation list page. ... maybe it should say "view page" instead, since the other topic talked about creating a view, not a list page?
1. Step 1 -- "The list of all the site's content is being shown." ==> "is shown"
1. Step 1 assumes that the view you created has operations. We should mention that in the other topic -- it seems like we may need a bullet list of things to do in your view in the last step of that other topic?
Looks pretty good overall though!!
Comment #55
shetpooja04 commentedI have tried to implement changes as per the suggestions in #54 except the below points
b) content_moderation.configuring_workflows topic:
3. Step 17 -- there are two links with different text that both go to the topic on creating views... this doesn't seem right?
5. Step 17 -- It says to be sure to select a data type that has revisions, but shouldn't it say to choose one of the data types you configured in step 11/12 to work with this workflow? And maybe in steps 11/12 we should say that it has to be an entity type that supports revisions?
c) content_moderation.changing_states
1. Step 1 assumes that the view you created has operations. We should mention that in the other topic -- it seems like we may need a bullet list of things to do in your view in the last step of that other topic?
Please review.
Thank you
Comment #56
jhodgdonThanks! Most of the changes in the interdiff look good. Setting back to needs work because the changes were not complete (see previous comment), and also to fix these minor things from the new work:
a) core/modules/help_topics/help_topics/content_moderation.configuring_workflows.html.twig
Missing . at end of sentence.
b) Same topic:
with ==> of
Comment #57
shetpooja04 commentedThank you for reviewing.
I have made the changes mentioned in #56
Keeping the status as needs work since the below points are remaining
b) content_moderation.configuring_workflows topic:
3. Step 17 -- there are two links with different text that both go to the topic on creating views... this doesn't seem right?
5. Step 17 -- It says to be sure to select a data type that has revisions, but shouldn't it say to choose one of the data types you configured in step 11/12 to work with this workflow? And maybe in steps 11/12 we should say that it has to be an entity type that supports revisions?
c) content_moderation.changing_states
1. Step 1 assumes that the view you created has operations. We should mention that in the other topic -- it seems like we may need a bullet list of things to do in your view in the last step of that other topic?
Comment #58
jhodgdonThanks, interdiff looks good. Do you have questions on how to fix the remaining points?
Comment #59
shetpooja04 commentedThanks to review !
I have tried to address the below points in the patch mentioned in #57
b) content_moderation.configuring_workflows topic:
3. Step 17 -- there are two links with different text that both go to the topic on creating views... this doesn't seem right?
5. Step 17 -- It says to be sure to select a data type that has revisions, but shouldn't it say to choose one of the data types you configured in step 11/12 to work with this workflow? And maybe in steps 11/12 we should say that it has to be an entity type that supports revisions?
Please review
The below point is still left, it would be great if you could help bit more on this
c) content_moderation.changing_states
1. Step 1 assumes that the view you created has operations. We should mention that in the other topic -- it seems like we may need a bullet list of things to do in your view in the last step of that other topic?
Thank you
Comment #60
jhodgdonLooks pretty good on the fixes for (b) 3 & 5. Thanks! One sentence needs two very small fixes:
Two things to fix here:
1. We use the "Oxford comma" in the Drupal project. So there should be a comma in "... Custom block revisions, or Taxonomy...".
2. "Taxonomy term revisions and you want" => "that you want".
What I meant on (c) is taht in the configuring_workflows topic, in step 17 where it says to create a view, we should add a note that your view should have a bulk operations thing... you'll need to try this out and see what it's really called in the Views user interface.
Thanks!
Comment #61
anmolgoyal74 commentedFixed the two small fixes.
Forthe last point, if I'm not wring, are we mentioning about creating a view similar to what Drupal provides for the moderated content listing => /admin/content/moderated ?
Comment #62
anmolgoyal74 commentedAttaching files again.
Comment #63
jhodgdonTwo small fixes look good, thanks!
And yes... The admin/content/moderated view only works with the default workflow that is provided by the core modules. So if you create your own workflow, you need to start over and connect it to your workflow, but it should look similar to the view that the core modules provide at admin/content/moderated.
Comment #65
jhodgdonI read through these topics again, and I think it is very close! There are several small things that need to be fixed:
Read <em><a href="{{ content }}">Managing Content</a></em>is going to the admin/content page. Based on the sentence and the link text, it should be linking to a topic about managing content.a. In US English, we never write out "et cetera". Change this to "etc.".
b. In the planning step, the verb is "List" but I think it should mostly be "Decide".
c. This sentence seems awkward: "Also plan in which state the content will be published and which state will be the default revision.". Maybe change it to:
Also decide which state means that the content is published, and which state should be the default revision.
d. This seems a bit off: "List which state transitions the users will be able to choose from" -- it's not so much that they choose from transitions, it's that they create content in one state, and then move content between states. So maybe change this to:
Decide on the list of allowed transitions. For example, users might create content in state "Concept" and be able to make a transition from "Concept' to "Review".
e. "Custom Block revisions, or Taxonomy term revisions" -- inconsistent capitalization here. Probably should be "Custom block revisions", but check the UI to see what it says there.
f. Since the Views UI module is not a dependency of the Content Moderation module, we cannot make a direct link to a Views UI module using the Twig url() function in this topic -- it will crash if the Views UI module is not currently enabled. So this line needs to go away:
{% set creating_view = render_var(url('help.help_topic', {'id': 'views_ui.create'})) %}And the line that refers to this topic also needs to change:
Find out how to add a view by following the instructions in the <em><a href="{{ creating_view }}">help topic on creating views</a></em>.Actually I would suggest a rewrite of that whole step. My suggested text would be:
I'm not entirely sure about the last few words of this -- not sure what the field is called when you add it in views -- so someone needs to check the UI and see if it is called "Workflow State" or something else, and make sure the UI matches the help text.
Comment #66
jhodgdonHere's a new patch. A few notes beyond the previous review, related to content_moderation.changing_states:
- We cannot make links in topics using the Twig "set" function that go to admin pages or topics that are defined in modules that are not dependencies of the module in question. This is a topic in the content_moderation module; the only dependency is the Workflows module (which has no dependencies). So in particular, we can't link to the (as yet undefined anyway) topic on managing content.
- Also, this topic was written specifically assuming you wanted to moderate Node module content items, which is not necessarily the case (it could be comments, custom blocks, etc.).
Also I cleaned up some wording in a few more places.
What needs to be done in the review is to verify that the text in the steps, especially in content_modreation.configuring_workflows, matches what is shown in the UI (and that the steps work). I was going to try simplytest.me to test this today, but it failed to launch.
#3181350: [InvalidArgumentException] Package szeidler/composer-patches-cli at version ~1.0 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version
Comment #67
daffie commentedAll changes look good to me. Just one nitpick.
Nitpick: Needs a space between "{}," and "{'fragment"
Comment #68
jhodgdonThanks for the review! Here's an interdiff and a new patch.
As a note, before setting this issue to RTBC, someone needs to go through the review steps in the issue summary. Thanks!!
Comment #69
daffie commentedI followed the whole howto review this patch and it all looks good to me. Just 2 remarks:
These links are not used.
Could we make "Content administration page" into a link to that page.
Comment #70
jhodgdonThanks for the review! Great points.
For the first one, I decided also to add one of the topics as Related, although there is not a specific link to it within this topic.
For the second one, I did make it a link. Links from other modules can be problematic, but in this case admin/content is actually in the system module routing, so we're OK.
Comment #71
daffie commentedI followed the review process as described in the IS.
All 3 twig files look good to me.
For me it is RTBC.
Comment #72
catchDoes this need to mention 'Node' module - can it just say 'the Content administration page where you can manage content items'? The main reason that we're mentioning node module here seems to be that we're using 'content' to mean 'entities', then using 'content' to mean 'nodes' - could we use 'entities' to mean entities then content for nodes?
I find this very hard to follow. I don't think it's the fault of the text as such, but this is a very dense admin section so it is a lot of text and terms all at once. I guess you could have it open in a tab, but I'm not sure if it will actually help people otherwise. Seems like a possible candidate to convert to a tour (which could be linked to from the help topic).
Comment #73
ankithashettyUpdated patch in #70 addressing #72.1. Thanks!
Comment #74
jhodgdonThanks for attempting a fix for item #72.1. However, I don't think this fixes the problem of using the word "content" to mean several things. We need to use the word "entity". Here's a new patch; I started over with the previous patch so the interdiff is to that.
Regarding the complexity of the other topic, I agree it is complex... I reorganized it to hopefully make it easier to follow, by moving the information about the specifics of fields on states/transitions to the Planning item.
I do think it's important to have help topics (not just tours) about all the tasks (and that has been our mandate). Not everyone will (a) have the Tours module installed or (b) really be able to use Tours (there are usability/accessibility issues).
Comment #75
daffie commentedThe points of @catch have been addressed.
I like to extension of how to plan a workflow. It makes the rest of the steps more clear.
Back to RTBC.
Comment #78
catchThings still get a bit confusing between content/node and entity reading the whole thing, but that seems to be more down to us having called entity_moderation module content_moderation so don't think it's the fault of this patch.
Committed/pushed to 9.2.x and cherry-picked to 9.1.x, thanks!