Problem/Motivation
The @addtogroup updates-8.2.x-to-8.3.x
and corresponding @defgroup
statements are really hard to maintain and don't add much. To quote @jhodgdon:
@alexpott: There is a question in my mind whether there even needs to be a group/topic for these. A group should only be defined if people would really want to look at a page that lists all the grouped functions. Is that really the case for update functions at all? You can find them easily by a search, such as:
https://api.drupal.org/api/drupal/8.3.x/search/_update_82And by the way, if you click through to
https://api.drupal.org/api/drupal/core%21modules%21path%21path.install/f...
you will notice that there is no topic listed there. The reason is that path.install used
@addtogroup updates-8.2.0
whereas the defgroup was given the ID updates-8.1.x-to-8.2.xSo. This illustrates the problem. To me, it seems like we should just take out all the @defgroup and @addtogroup for update functions entirely, and let people search by function name, which is more reliable as far as finding the actual functions for a particular version. Plus, easier to maintain. That would be my suggestion.
Proposed resolution
Remove all of the @defgroup and @addtogroup statements for groups of update functions. And don't add new ones.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#10 | 2860096-8.3.patch | 21.55 KB | alexpott |
#5 | remove_api_doc_groups-2860096-5.patch | 24.9 KB | GoZ |
Comments
Comment #2
alexpottComment #3
jhodgdonJust as a note, you'd want to remove both the @defgroup statements, which are sprinkled around various *.install files, and the @addtogroup statements, which are sprinkled in other *.install files. Making this minor update to the summary. Obviously, I'm +1 on the idea.
Is there a new API documentation maintainer to weigh in? :)
Comment #4
GoZ CreditAttribution: GoZ at Centarro commentedI take this
Comment #5
GoZ CreditAttribution: GoZ at Barbe-Rousse commentedComment #6
jhodgdonThanks! The patch looks good -- only removes @defgroup and @addtogroup doc blocks that need to be removed.
Also, I applied it to 4.x and verified that with the patch, all of the things that we want to remove in this issue are removed (there are no more @defgroup, @addtogroup, or @ingroup for update functions groups).
Comment #7
alexpottCommitted bd69cfc and pushed to 8.4.x. Thanks!
Fixed some coding standards on commit.
Comment #9
alexpottDiscussed with @xjm and @catch and they +1'd this too. To quote @catch:
Comment #10
alexpottHere's a patch for 8.3.x
Comment #11
jhodgdonI reviewed this patch the same way I reviewed the 8.4 patch above (see comment #6). Also looks good.
Comment #12
Wim Leers<3
Comment #13
xjm(Saving issue credit.)
Comment #14
xjmAs a documentation cleanup, this patch is eligible for commit during the RC phase. Committed 087d90c and pushed to 8.3.x. Thanks!