Problem/Motivation
#3041924: [META] Convert hook_help() module overview text to topics for the config module(s).
Proposed resolution
Take the information that is currently in the hook_help module overview section for the module(s), and make sure the information is in one or more Twig help topic files. Steps:
- Find the hook_help() implementation function in the core/modules/MODULENAME/MODULENAME.module file(s). For example, for the core Contact module, the module files is core/modules/contact/contact.module, and the function is called contact_help().
- Locate the module overview portion of this function. This is located just after some lines that look something like this:
switch ($route_name) { case 'help.page.contact':
And ends either at the end of the function, or where you find another
case 'something':
line. - We want to end up with one or more topics about the tasks that you can do with this module, and possibly a section header topic. So, read the help and figure out a good way to logically divide it up into tasks and sections. See Standards for Help Topics for information on how to do this.
- See if some of these tasks are already documented in existing topics. Currently, all topics are in
core/modules/help_topics/help_topics
. Note that to see existing topics, you will need to enable the experimental Help Topics module (available in the latest dev versions of Drupal 8.x). - For each task or section topic that needs to be written, make a new Twig topic file (see Standards for Help Topics) in
core/modules/help_topics/help_topics
. You will need to choose the appropriate module prefix for the file name -- the module that is required for the functionality. Alternatively, if the information spans several modules or if the information should be visible before the module is installed, you can use the "core" file name prefix. For instance, it might be useful to know that to get a certain functionality, you need to turn on a certain module (so that would be in the core prefix), but then the details of how to use it should only be visible once that module is turned on (so that would be in the module prefix). - File names must be MODULENAME.TOPICNAME.html.twig -- for example, in the Action module, you could create a topic about managing actions with filename action.managing.html.twig (and "MODULENAME" can be "core" as discussed above).
- Make a patch file that adds/updates the Twig templates. The patch should not remove the text from the hook_help() implementation (that will be done separately).
Remaining tasks
a) Make a patch (see Proposed Resolution section).
b) Review the patch:
- Apply the patch.
- Turn on the experimental Help Topics module in your site, as well as the module(s) listed in this issue.
- Visit the page for each topic that is created or modified in this patch. The topics are files in the patch ending in .html.twig. If you find a file, such as core/modules/help_topics/help_topics/action.configuring.html.twig, you can view the topic at the URL
admin/help/topic/action.configuring
within your site. - Review the topic text that you can see on the page, making sure of the following aspects:
- The text is written in clear, simple, straightforward language
- No grammar/punctuation errors
- Valid HTML -- you can use http://validator.w3.org/ to check
- Links within the text work
- Instructions for tasks work
- Adheres to Standards for Help Topics [for some aspects, you will need to look at the Twig file rather than the topic page].
- Read the old "module overview" topic(s) for the module(s), at
admin/help/MODULENAME
. Verify that all the tasks described in these overview pages are covered in the topics you reviewed.
User interface changes
Help topics will be added to cover tasks currently covered in modules' hook_help() implementations.
API changes
None.
Data model changes
None.
Release notes snippet
None.
Comment | File | Size | Author |
---|---|---|---|
#100 | interdiff-95-100.txt | 7.93 KB | Amber Himes Matz |
#100 | 3095734-100.patch | 13.31 KB | Amber Himes Matz |
#89 | interdiff_83-89.patch | 5.09 KB | sarvjeetsingh |
#89 | 3095734-89.patch | 12.49 KB | sarvjeetsingh |
#83 | 3095734-83.patch | 12.46 KB | jhodgdon |
Comments
Comment #2
jhodgdonComment #3
abhisekmazumdarI will be working on this.
Comment #4
abhisekmazumdarComment #5
pratik_kambleComment #6
pratik_kamble@abhisek thanks for the patch. The topics mostly look good to me. Here are some of my notes/observations for your patch.
1. Managing your site configuration
-- No need to write the goal in the overview sections.
-- Add information about the UUID
2. Exporting a single configuration item
-- Goal: Try to be more imperative like "Export the single configuration item".
-- Step 5: Try to use construct a more imperative sentence like "Corresponding *.yml file name will be displayed on the page for you to copy."
3. Exporting the full configurations
-- Goal: Try to be more imperative like "Export full site configuration."
4. Importing a single configuration item
-- Goal: Try to be more imperative like "Import single configuration item."
5. Importing full site configurations
-- Goal: Try to be more imperative like "Import Full site configurations."
6. Synchronizing configuration
-- Goal: Try to construct a more imperative sentence.
-- Step 2: Try to construct a more imperative sentence.
Comment #7
abhisekmazumdarThanks @pratik_kamble for the suggestions. I have updated the patch.
Comment #8
pratik_kamble@abhisekmazumdar patch LGTM. Marking it as RTBC.
Comment #9
jhodgdonThanks for the patch and review! However, this patch is not quite ready to go yet. Some things to fix:
a) Navigation: You need to use HTML entities
&
instead of>
in the navigation lines in steps.b) YAML is mentioned in several topics but is not explained. I think it should be.
c) I don't think "configuration" can be plural (it is not countable). So the heading "What are configurations?" in the overview topic should probably be "What is configuration?". Also the UUID section is confusing to me.
d) config.import_full.html.twig -- I think it should have a link to the export full topic, because that is where it tells you how to export this tar.gz file that you are uploading. I also don't think it is useful to make the synchronize page a link, because without following the steps, you wouldn't see anything useful on that page.
e) Avoid words like "just" and "simply" in help. People are reading help because they need help. These types of words make them think they are stupid for not already knowing how to do things.
f) config.import_single.html.twig -- needs to link to the single export topic. Also needs to explain why you would need to put in a custom entity ID (it currently just says "if required" but doesn't explain why).
g) config.sync.html.twig -- I don't think this makes sense as a separate topic from the full import topic?
h) config_environment.overview.html.twig -- this topic should be merged into the overview topic I think? It has a goal but no steps, so it is not a task topic.
i) Could use a little proofreading.
Comment #10
abhisekmazumdarHi @jhodgdon,
Thanks for the suggested changes, I'm updating the patch.
Comment #11
abhisekmazumdarComment #12
jhodgdonThanks for the new patch -- this is definitely an improvement! But please check the Standards for Help Topics.
A few things to fix still:
a) Grammar: missing a lot of a/an/the especially, some extra a/an/the, sometimes singular/plural forms of verbs are mixed up, etc. You might try viewing the topic, and pasting the output HTML into a word processor that has grammar checking for English (this is available as an add-on for Open/Libre Office, and most commercial word processors have that feature too).
b)
<h2>{% trans %}Managing UUID{% endtrans %}</h2>
This is not an acceptable heading. Should start with "What is" or "What are".
c) config.import_full.html.twig -- navigation still has one > that needs to be an HTML entity.
d)
Click on the <em>Upload</em> button.
should just beClick <em>Upload</em>
(and similarly for other "Click" instructions).e) Single import topic:
<li>{% trans %}Paste the YAML structured configuration, which can be created from <a href="{{ single_export }}">Single Export Page</a>.{% endtrans %}</li>
Can we do something like "See (link to the topic name here) for instructions" (with a link to the single export topic name) instead of linking to the admin UI page?
f) This also applies to the full import topic.
Comment #13
abhisekmazumdarHi, @jhodgdon thanks for the continued support.
I have made few changes on Grammar(used: Grammarly) part. Also made the other suggested chnages.
Thank You
Comment #14
jhodgdonI probably cannot review your new patch for a couple of weeks, sorry! Possibly someone else will review. Thanks for making the patch!
Comment #15
kuralarasanm CreditAttribution: kuralarasanm as a volunteer and at Cognizant Technology Solutions for Drupal India Association commentedI am reviewing the patch and let you know.
Comment #16
kuralarasanm CreditAttribution: kuralarasanm as a volunteer and at Cognizant Technology Solutions for Drupal India Association commentedHi, I have reviewed the topics and it's looks good. Hence changing the status to RTBC.
Comment #17
jhodgdonThere are grammar problems in these topics. Also some standards problems, such as that all UI text needs to be put in EM tags (italics) (such as navigation). I don't have time to itemize all the problems... sorry! I will probably make a new patch in the next few days unless someone else does so first, but I wanted to make sure in the meantime that the patch didn't get committed.
Comment #18
VladimirAusThanks @jhodgdon.
Updated patch 13.
Comment #19
VladimirAusComment #20
VladimirAusPlease ignore #18. I uploaded incorrect files.
Comment #21
jhodgdonActually, I just realized the config_environment module is experimental status, so we should not document it yet.
Also, the latest patch here has a bunch of block-related topics in it... seems wrong? Please fix.
Comment #22
saurabh-2k17 CreditAttribution: saurabh-2k17 at Srijan | A Material+ Company for Drupal India Association commentedHi @jhodgdon Please look into my patch thanks.
Comment #23
saurabh-2k17 CreditAttribution: saurabh-2k17 at Srijan | A Material+ Company for Drupal India Association commentedComment #24
VladimirAus@Saurabh_sgh some of your changes in
/core/modules/help_topics/help_topics/help.help_topic_search.html.twig
are just extra spaces. We don't really need double spaces, e.g.Comment #25
abhisekmazumdarRe-rolled the patch with the suggested changes. Kindly review.
Comment #26
saurabh-2k17 CreditAttribution: saurabh-2k17 at Srijan | A Material+ Company for Drupal India Association commentedHi @VladimirAus,
as per comment no #21.
1. I have removed config_environment
2. removed block-related topics
3. Also removed changes to other file config like help.help_topic_search.html.twig
"help.help_topic_search.html.twig" I have reset this file to default check "here"
Comment #27
jhodgdonThe patch in #25 is entirely composed of changes to files that are not related to this issue. Where is the patch with new topics?
Comment #28
abhisekmazumdarKindly ignore my patch I totally missed the comments by @jhodgdon about the wrong files added on the patch.
Sorry my bad Ignore the patch on the comment #25
The patch on #22 looks good to me.
Comment #29
jhodgdonOK, thanks! I went back to the patch in #22 and reviewed it. It was pretty good, but needed some grammar cleanup and a few things for standards (see https://www.drupal.org/docs/develop/documenting-your-project/help-topic-... ), so I made a new patch. Since nearly every line in the original patch changed, I did not make an interdiff file (not useful).
Also adding tag, as I worked on this at the MidCamp 2020 virtual contribution day.
Comment #31
msutharsComment #32
msuthars@jhodgdon Review the patch and it looks good to me. Tested the patch with Drupal core 9.1.x and it's working fine. Marking it as RTBC.
Comment #33
msutharsComment #34
naresh_bavaskarI have reviewed the patch and found some issue IMO,
Comment #35
naresh_bavaskarComment #36
pradeepjha CreditAttribution: pradeepjha at Srijan | A Material+ Company for Drupal India Association commentedComment #37
pradeepjha CreditAttribution: pradeepjha at Srijan | A Material+ Company for Drupal India Association commentedHi @Naresh B
I've made correction. Made text as `devices`.
Comment #39
jhodgdonThe patch in #37 is wrong. The word should be device, not devices. Going back to the patch in #29, which I will re-upload.
Setting back to Needs Review, because I see no indication based on #32 that a full review was done, just that someone verified "it works" which is not what was asked for in the issue summary for a careful review.
Comment #40
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedComment #41
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedHi, the patch works fine for me on the drupal 9.1.x branch. Attaching the screenshots for the same.
It looks to be merged.
Comment #42
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedComment #43
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedComment #44
jhodgdonDid you follow the instructions for reviewing that are in the issue summary of this issue? I see no indication that you did that, only that you applied the patch and verified the topics could be viewed, which we already knew from the automated test. Please do not set these help topic issues to Reviewed and Tested unless you have done all of the review steps.
Comment #45
pratik_kambleComment #46
pratik_kambleThanks @jhodgdon for the patch.
I have reviewed patch in #39.
Verified the grammar. The text is written in clear, simple, and in straightforward language. Validated HTML, no issues found.
Links within the text redirects to appropriate pages.
Adheres to Standards for Help Topics.
Comment #47
pratik_kambleComment #48
pratik_kambleComment #49
jhodgdonThanks again for the careful review!! You are doing an excellent job and it is much appreciated.
Comment #50
alexpottThe system.site config file has a UUID that has to match for config import to work. Config entities have UUIDs that are use to determine whether a config object is updated or deleted and re-created.
relatively permanent? I think the second bit of the sentence is better. I.e.
Configuration is information that is used to define how your site behaves or is displayed.
This bit
Drupal stores site configuration data in the database in YAML format.
is not true. It stores it as serialised PHP. I think the removing thein YAML format
should be remove. The serialisation format in the DB is neither here nor there for the end-user. TheWhat is YAML?
bit should be below -Overview of managing configuration
bit as that correctly talks about YAML being the language of config import / exportComment #51
jhodgdonGood points. Here's a new patch that tightens up and corrects those sections of the help topics.
Comment #52
alexpottEach configuration item contains a UUID that helps determine how and whether it has been modified.
This is still not quire right. Simple config general does not have a UUID - for example system.file does not have one. It's because they are a singleton.
I'd move this section to below Overview of managing... otherwise the reader could be thinking why are you telling me about YAML? I think this is less important than the next section.
Comment #53
jhodgdonOur help topic standards say that the "Overview" section comes last in this type of topic, and our other topics are following this standard, so I think I'll leave item 2 alone.
Thanks again for clarifying on item 1. How's this? I just took out the sentence you identified as being wrong. I think the section still makes sense, and the important thing is getting across that you can't mix the site UUIDs.
Comment #54
volkswagenchickTagging this for DrupalCon Global happening July 14-17
Comment #55
pratik_kambleComment #56
Amber Himes MatzThank you to everyone who has been working on this issue so far.
I've rewritten and added more info to the config overview topic (config.overview.html.twig) keeping an audience of site admin/builders in mind who are completely new to configuration management. With this in mind, I broadened the overview and defined common terms. My goal is that someone who is totally new to the concept of managing configuration will have a better understanding of the system's purpose and terminology. And can confidently use the additional resources and related topics to perform configuration management tasks.
Comment #57
jhodgdonSomething interesting came up on #3095737-30: Convert internationalization modules: config_translation, content_translation, locale, language module hook_help() to topic(s) and the following comment: When you translate configuration, you need to understand the difference between "simple" configuration and what we call in code "configuration entities".
I think we should:
a) Decide on the terminology for "configuration entities". On that other issue I called it "list configuration", because the UI for config translation uses the verb "list" for these -- you have to select the type and then list them out, and then you can pick one to translate, as opposed to simple configuration that you can choose directly. penyaskito suggested in Slack to call them "configuration objects". I'm not sure we want to call them "entities", as I think we are trying to avoid that.
b) Add a bit to the config.overview.html.twig topic about this subject.
c) Change the file name to core.config_overview so that it will be visible even if the config manager module is not enabled.
Comment #58
jhodgdonThis looks mostly great, thanks! A few suggestions (see also the help topic standards page https://www.drupal.org/docs/develop/documenting-your-project/help-topic-...):
1. Generally, we've been trying to avoid using the word "Drupal" in the UI and help. Some people may use distributions or other means to obscure the fact they are running Drupal, and this is fine. Better wording can be "You can ___" or "Your site ___" or "The core software".
2. Overview topic:
- According to our standards, the headings in overview topics should be questions, except one called "____ Overview"
- The terminology section... some of the explanations seem pretty technical? For example, the YAML entry talks about "serialization", which I'm sure I wouldn't have understood a few years ago.
3. config.import_full:
- The "What is" sections seem to be repeats of information that is on the overview topic? I think the information should only be in one place; I don't feel strongly about which place.
4. I think I saw a few typos but overall it looks great! Will wait to nitpick until the content issues are addressed.
5. See previous comment for an additional piece of information we need to add and a possible name change for the overview topic.
Comment #59
sarvjeetsingh CreditAttribution: sarvjeetsingh as a volunteer and at QED42 for Drupal India Association commentedComment #60
sarvjeetsingh CreditAttribution: sarvjeetsingh as a volunteer and at QED42 for Drupal India Association commentedComment #61
MeenakshiG CreditAttribution: MeenakshiG at OpenSense Labs for Drupal India Association commentedComment #62
MeenakshiG CreditAttribution: MeenakshiG at OpenSense Labs for Drupal India Association commentedComment #63
Amber Himes MatzThanks for the review @jhodgdon! I'll update with your suggestions. (Assigning to myself.)
Comment #64
Amber Himes MatzRegarding "configuration entities" as a term that needs defining, I suggest we discuss that in #3095737: Convert internationalization modules: config_translation, content_translation, locale, language module hook_help() to topic(s) (which is where I left a comment on that subject).
[Edit] Apparently this is a better issue to discuss it in.
Comment #65
Amber Himes MatzHere's what I am working on as definitions for simple config, configuration entities, and configuration schema in the config.overview help topic. No patch yet, still working on it, but thought I'd provide it as a basis for discussion regarding the definition of these terms.
Comment #66
jhodgdonThat's a great start! I was going to write something up, but this is much better than what I was thinking. :)
A few thoughts:
a) I don't think we should talk about schema. That is something only a developer cares about.
b) I don't think we should use terms like "boolean" (which if we do use it, needs to be Boolean, capitalized by the way, sorry for the nitpick), or key/value pairs or multi-dimensional arrays. Let's focus on things the end user in the UI would see, which are forms for settings, not the contents of the YAML files.
c) I don't agree that config entities are not seen in the UI. On the contrary, most config entities have a UI for CRUD operations on them, like creating/updating/deleting views.
So maybe we can do something even simpler... for simple config, something more like:
A simple configuration item is a group of settings, such as the settings for a module or theme. Each simple configuration item has its own unique structure.
And for entities:
Configuration entities are user-defined configuration items grouped by type, such as views, image styles, and content types. Each configuration entity within a type has a similar structure.
Comment #68
Amber Himes MatzThis patch addresses items in comments 57, 58, and 66.
- Renames the config overview topic to core.config_overview so that it shows up regardless if Configuration Manager module is enabled.
- Updating wording and formatting of the overview topic to enhance clarity and readability (hopefully!). Removed "Drupal" in favor of other terms according to the help topics standards. Added headings. Changed headings to use the form of a question.
- Removed a terminology section in the config.import_full topic that was contained in the overview topic.
Needs a copy edit, standards review, and any other necessarily clarifications. Ready for review and thanks for your patience!
Comment #70
jhodgdonThe test error looks like it is from several places that have:
But the topic is actually named core.config_overview.
Comment #71
jhodgdonI went ahead and edited the patch file directly -- just did a search-and-replace for config.overview -> core.config_overview. Let's see if this one passes the tests.
Comment #73
jhodgdonSearch test still fails. It seems that the search indexing is failing with the new topics, possibly related to this error:
I have no idea what that is about. ?!? Weird. I did take a look and verified that in Drupal Core without this patch, that message does not appear in the console log, so it seems to be related to this patch.
Comment #74
jhodgdonI tried to debug this a bit. It seems that during the test, it is for some reason stalling/crashing while trying to index the core.config_overview topic.
Ohhhhh... I was going to say I don't know why, but I think I actually do. At the top of this topic is:
This URL is only valid if the config module is installed. That needs to go away. This topic is in the core namespace now, and it can't depend on anything in a non-required module like Config Manager.
This is an overview topic, and there shouldn't be any reason to link to that admin URL or describe specific tasks (those should be left to Task topics). I don't think we should have a heading in that topic saying "Where do I manage configuration?" either -- again, that should be left to task topics.
Comment #75
Amber Himes MatzThanks for debugging! I have time to work on this today and will work on a new patch.
Comment #76
Amber Himes MatzI removed the render_var call and links to the other task topics from the core config overview page.
Wondering if the wording about seeing related topics will be confusing if the Configuration Manager module is not enabled? Probably? Should I add something about enabling the Configuration Manager in the overview? Probably makes sense.
Comment #77
jhodgdonOh, should have clarified:
The render_var is a problem. The links at the top under "related" will not cause any problems. Unknown "related" topics are simply skipped during rendering, but the render_var will crash and burn.
And yes, in other overview topics we've had a section at the end called something like "Overview of managing xyz". This section would list the Core modules that provide the relevant functionality, and then have the "see related topics" wording:
https://www.drupal.org/docs/develop/documenting-your-project/help-topic-...
I guess the standards don't currently say anything about listing the core modules, but our existing topics are doing that, at least the recent ones.
So something like "Configuration management functionality is provided by the core Configuration Manager module [or whatever it is called]. See the related topics..."
Comment #79
Amber Himes MatzI've reworked the intro paragraph of the core.config_overview topic to be more in-line with our help topics standards. And I removed the other various references to "see the related topics" in the body of the topic, since that statement (about seeing related topics) is now contained in the introductory paragraph.
I think the tests will still fail. I don't know what this
is about.
Comment #80
jhodgdonComment #81
jhodgdonI don't know what the XML problem is. I thought it was due to the links having invalid href attributes due to the broken render_var, but you got rid of that... Maybe something to do with a faulty German translation of something ... ??? I don't get it. The previous patch (which failed the search test) worked fine on my test site as far as being renderable and searchable.
But in the search test, the cron jobs fail to index the new topics (I debugged it that far). ... ... not sure. Maybe I'll try installing German like the test does, and see if I can still index for search. ??!? weird.
Comment #82
jhodgdonFound it!
Weird error message, but this dd does not have an endtrans tag!
Comment #83
jhodgdonLet's see what this does. Same patch as #78 but with the endtrans added in that one line as per #83.
I have a feeling that XML error is not from us, but is something that is getting spit out whenever a test fails due to something wrong in the PHPUnit config, because there was a random test fail on that last one that also had that XML error... not sure. Anyway.
Comment #84
Amber Himes MatzThanks for catching that missing endtrans tag! Wish the test failure output was more helpful in this case. (Should that wish go into a new issue, I wonder?)
Any other feedback on the patch content?
Comment #85
jhodgdonThat was indeed a weird error. No idea what it was from really. I guess we could add an issue but maybe we should just let it go -- the topic did have a syntax error and the test caught that there was an error, even if it didn't give us useful information about the error.
Anyway, yes I need to make time to review the patch today. Will try to do that!!
Comment #86
jhodgdonSorry, ran out of time yesterday... Quick content review of the Overview topic -- see also
https://www.drupal.org/docs/develop/documenting-your-project/help-topic-...
a) The headings for the sections in this topic should be "What is..." or "What are..." questions, except the last one. To maintain consistency with other topics, we need to rewrite the "How" headings as "What" instead. Example: How is configuration synchronized between site instances? could be "What is configuration synchronization?" . [The idea of this type of topic is giving background ("what"), not explaining tasks ("how").]
b) The last one should be something like "Managing configuration overview". By convention based on our other topics [this is not in the Standards doc but should be], we've been making a list in this section of which Core modules provide which functionality, and then including the standard "See the related topics listed below for specific tasks." sentence at the end.
c) Avoid the word "Drupal". Use "The core software" instead or mention particular core modules.
d) Themes and installation profiles (not just modules) can also define default configuration.
e) YAML is explained under "How is configuration synchronized between site instances?", but the term is used above that section, so it should probably be explained earlier?
f) I don't think we should mention Drush. We haven't in other Core topics. But I think it's fine to have an Additional Resource link that mentions Drush.
Comment #87
jhodgdonForgot to say, this is looking very good! I just got into the nitpicking...
Comment #88
jhodgdonapparently I forgot to change the status.
Comment #89
sarvjeetsingh CreditAttribution: sarvjeetsingh as a volunteer and at QED42 for Drupal India Association commentedUpdated patch as suggested above.
#86.b) Not sure where else YAML should be explained.
please review.
Comment #90
jhodgdonThanks for the new patch and interdiff! (To prevent automated testing on interdiff files, use a .txt extension next time instead of .patch for the interdiff file.)
The interdiff looks mostly good! I took a look at that and at the patch as a whole, and I found a few minor things to fix (in spite of the number of comments here, really the topics are all in very good shape). These comments are all about the core.config_overview.html.twig topic, except the last suggestion:
It seems like this section's paragraph should start with a sentence explaining what configuration synchronization is, before launching into an explanation of the UUID and how it is used? Maybe something like this:
Configuration synchronization is the process of exporting and importing configuration to keep configuration synchronized between different versions of a site; for example, between a development site and the live site.
This "overview" section should do the following:
a) List which core modules handle configuration management tasks, and list the tasks in brief. So we definitely need to mention the core Configuration Manager module (make sure to verify the name!) and its import/export/synchronize tasks. I think we should also have a sentence something like "Most modules and themes also provide administrative user interfaces for managing their own configuration."
b) End with the standard sentence "See the related topics listed below for specific tasks."
I don't think we need the sentence that is currently in the patch at all.
Default configuration can be defined by a module in their config/install or config/optional directories as YAML files, as either simple configuration or a configuration entity.
a) Should say "by a module, theme, or installation profile in its"
b) "as YAML files, as either simple configuration or a configuration entity" ==> I think this part would be less awkward as a new sentence saying "Configuration consists of YAML files containing simple configuration and configuration entities."
See Managing and deploying configuration for more information about configuration.
(where "Managing and deploying configuration" would link to the core.config_overview topic). It is helpful to have this in addition to the Related topic link, because it gives people more specific guidance on where to find the overview information.
Comment #91
Ramya Balasubramanian CreditAttribution: Ramya Balasubramanian at Srijan | A Material+ Company for Drupal India Association commentedHi @jhodgdon,
I have not addressed 11th point, because in #89 this 'Managing and deploying configuration' is already linked to core.config_overview. I didn't get that point clearly. Please let me know what needs to be done on that part. Please see the below patch and screenshot for reference and let me know if there are any issues.
Comment #92
Amber Himes MatzThank you @Ramya Balasubramanian and @sarvjeetsingh for the recent work on this issue!
1. On the config overview topic's "Managing configuration overview" section, I removed the part added in #91 with the verbose list of tasks, replacing it with 2 new sentences in the first paragraph of that section. (Users can refer to the link list of related topics.)
2. I added links back to the config overview page in the goal section of each of the individual topics on exporting/importing config.
3. Other minor edits.
I think we're close!
Comment #93
jhodgdonThis is definitely looking close!! Thanks to both of you for the patches.
I took a look at the latest patch, and I have a few comments/suggestions:
a) in the overview topic:
This seems a bit weird. The section is called "What is configuration data". The first paragraph does not mention YAML (which is fine). And then suddenly there is (with no introduction) a DL list with a definition of YAML. ????
The first actual mention of YAML is actually in the next section, entitled "What kinds of configuration are there?", in the last item in the list "Default configuration". So maybe what we should do is rewrite that DD to say something like:
I made several other suggested changes to that paragraph, which I think make it read clearer?
b) in Overview topic in section "Managing configuration overview" -- we should mention that the adminstrative UI for configuration import/export/sync is provided by the core Configuration Manager module. So:
"can be done either through the administrative UI" ==> "can be done either through the administrative UI provided by the core Configuration Manager module".
c) In the export_single topic: I think in the Goal section we should say "Export a single configuration item to a file.". I guess that is understood, but we don't have "to a file" in there? Best to be explicit?
The rest all looks great!!!
Comment #94
Amber Himes MatzComment #95
Amber Himes MatzThanks for the review and suggestions @jhodgdon! I agree with your ideas and have attached another patch and interdiff.
Comment #96
jhodgdonThis looks great to me! I haven't actually tested the patch on a live site to make sure all the links go to the right places and the UI text mentioned in the topics matches what you see in the UI. So I haven't yet marked it RTBC. But I will make time to do that in the next day or two.
Comment #97
jhodgdonI hate to do this... but although these topics seem very good, I think we need to change a few more things -- all very minor except the first item:
a) As I read through the help topics in this patch on an actual site... I started at core.config_overview (which is the only top-level topic). The first section is "What is the configuration system?", and it talks about moving and synchronizing changes as being the main functions of the core configuration system.
However, really the main function of the configuration *system* is to manage the site's configuration. The main function of the core Configuration Manager module is to move/synchronize changes.
So, I think we should change that first sentence. Maybe something like:
The configuration system provides the ability for administrators to customize the site, and to move and synchronize configuration changes between development sites and the live site.
b) in the overview topic, first section: "... between instances of the same site, for example, from" ==> should be a semicolon before "for example", not a comma
c) overview topic, under "Active configuration": I think we could say "of a site" rather than the more convoluted "of an instance of a site"?
d) overview topic under "What is configuration synchronization", second paragraph: "... as clones, (in short," -- should not be a comma before the parenthesis.
e) Also at that same spot... I think the parenthetical remark "in short, the codebase and database..." would be better as "cloning is when the codebase and database...".
f) in that section under "Configuration sync directory": "is set in the site's settings.php" I think should say "settings.php file".
g) same area, next sentence: "will only export active configuration that are different than its counterpart" ... this has some singular/plural confusion between the verb "are" and the pronoun "its" and noun "counterpart". How about "will only export active configuration items that are different than their counterparts"? We use the term "configuration item" elsewhere in these topics.
h) First paragraph under "Managing configuration overview" I think should end with the word "file" (settings.php file) and it also needs a . at the end.
i) For future proof-ness, I don't think the topic number (1.5, 11.7, etc.) should be included in the link text when making links to the User Guide. Those numbers sometimes change as we add topics.
The rest looks great! I didn't find even anything minor in the task topics. Great work everyone!
Comment #98
Amber Himes MatzComment #99
jhodgdonThis should not really be a Novice issue unless we want to recruit a group of novice contributors to follow the review instructions.
Comment #100
Amber Himes MatzThanks for the careful review, @jhodgdon! Agree on all points; great suggestions. I've attached a new patch and interdiff.
Comment #101
jhodgdonLooks great!
I will note that on #2144861: [meta] Replace Drupal in UI text with the name of the distribution we are trying to get rid of the word "drupal" from UI text, so we'll eventually probably want to say "User Guide" rather than "Drupal User Guide" (although Drupal User Guide is the name of the guide, so ... not sure about that). But we have two items related to this on #3121340: Fix up minor copy problems in help topics (not using the word Drupal and also making links to the User Guide consistent across topics), so for now let's leave this as it is. Thanks for all the patches!
Comment #102
alexpottI think we need a follow-up issue to add information about installing from configuration as the part on cloning could encompass this and if people knew about and used installing from configuration more often then people wouldn't think some much about the site UUID. But everything detailed here looks correct to me and a step in the right direction so I'm going to commit the patch.
Committed and pushed 1d58176c36 to 9.2.x and 5413c57a3b to 9.1.x. Thanks!
Backported to 9.1.x as help_topics is still experimental.
Comment #103
jhodgdona) Are you backporting all the topics commits? Because we don't want to end up with an inconsistent set of topics/tests in 9.1/9.2. Might be better to just commit to the latest branch. I hadn't noticed other Help Topics patches being committed to two places (but maybe just didn't notice).
b) I added the follow-up note to #3121340: Fix up minor copy problems in help topics
Comment #106
alexpott@jhodgdon help_topics is still experimental - it should be committed to both 9.2.x and 9.1.x.
Comment #108
quietone CreditAttribution: quietone commentedRemoving tag per #103.