ClassicPress / site-docs

Files for the site at docs.classicpress.net
Other
1 stars 1 forks source link

Set up User Contributed Notes for code reference #13

Open viktorix opened 2 years ago

viktorix commented 2 years ago

Set up "User Contributed Notes" for code reference using comments.

joyously commented 2 years ago

Yesterday's WP docs meeting had a thread about moderating the comments.

Jb Audras 9:31 AM Quick open floor question: is there anyone else than the people listed here that is also currently curating Devhub User contributed notes?That’s not a problem (at all!), but I have a few recommendation on how I’m handling them since one year or two :slightly_smiling_face: I see plenty of comments approved that would not have been approved that quickly as per the previous (but not documented, sigh) workflow. Some of them are not very relevant (like classic “thank you messages”). Most importantly, some of them need to be addressed on Trac (docblock errors). In this case, I never publish the comment but I rather open a Trac ticket and mention the commenter for proper Core Props attribution.

He said he would draft up some bullet points on moderating the comments.

viktorix commented 2 years ago

Thanks for sharing. Let's keep an eye on that. If you see the draft of bullet points, then do post it here. I think the common sense in this situation should suffice:

I think we should also create a "ClassicPress Bot" account which we can use to copy explanations/code snippets from WP's code reference and include proper attribution to the original user.

joyously commented 2 years ago

I think we should also create a "ClassicPress Bot" account

The ones that were copied from the codex have "Codex" as the account. The attribution is a bit muddy there, but copying code from WP Code Ref is covered by the GPL part of the licensing, so it could say "Codex" also.

The WP docs team has a guy that is starting to go through all the code examples with the coding standard. I think that's a bit much and would rather see them tested to be sure they do what is intended. (But most are pretty simple.)

viktorix commented 2 years ago

It looks like UCN are already built-in, just not implemented in the frontend: image

This makes implementation easier.

viktorix commented 2 years ago

Adding one more note about the process user would have to go through to leave a note:

  1. This would not be public. The user would have to be registered with a subscriber role.
  2. We have integration between Discourse and docs site where members of specific groups in the forum are created (and used for SSO) in the docs site. Right now, those groups are admins and authors. Groups are private. I'm thinking of creating a group for subscribers and making it public, so any forum user could join the group and become a registered subscriber on the docs site.
  3. Once they log in to docs site using Discourse SSO, they will have a comment form to leave a note.
  4. Notes will be moderated and reviewed before publishing.

This process will ensure there's no spam. We will provide instructions/guidelines for the users.