Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comments to talk page #223

Merged
merged 4 commits into from Apr 9, 2024

Conversation

gullyn
Copy link
Contributor

@gullyn gullyn commented Mar 12, 2022

As requested in issue #128 -- this adds an option to the accept menu to copy the comments to the talk page. Here's what the accept menu looks like:
Screenshot from 2022-03-12 14-38-36
And here's how it looks on the talk page:
Screenshot from 2022-03-12 14-39-27

@NovemLinguae
Copy link
Member

Might even want to have the comment copying check box checked by default. I know I'll be clicking it for all my accepts.

@primefac
Copy link

primefac commented Mar 12, 2022

Absolutely not. 90% of comments left by reviewers are "how to get this to acceptable". After acceptance, they are no longer necessary.

@gullyn
Copy link
Contributor Author

gullyn commented Mar 12, 2022

Yeah, I agree with Primefac on this one. Almost all of my comments are "add more sources", "change x to y", "remove promotional language", etc. and it isn't necessary. For me I'd just use it occasionally when there are comments worth keeping.

@NovemLinguae
Copy link
Member

NovemLinguae commented Mar 12, 2022

Seems a little counter intuitive. If the comments had occurred on the talk page originally, we wouldn't delete them once they are irrelevant. And increasing transparency is good in general. Hard to think of anywhere on Wikipedia where discussions are outright deleted.

But hey, sounds like this "save comments by default" idea is really unpopular. So never mind!

@enterprisey
Copy link
Contributor

WT:WPAFC has been asking for this one for a while so I wouldn't say the feature is that undesirable. Honestly there's an argument for merging this one. Thoughts?

@gullyn
Copy link
Contributor Author

gullyn commented Mar 15, 2022

Yeah, this feature would be nice to have, I'm just against having the checkbox selected by default.

@enterprisey
Copy link
Contributor

Gotcha, misread.

@NovemLinguae
Copy link
Member

Sorry this has sat for 2 years.

Consensus

The only objections I see in this PR are to having writing comments to the talk page ON by default. I don't see any objections to having writing comments be an option that is OFF by default. So I think this patch can move forward.

Subst-ing the comment template

In the original ticket, I see a request to subst {{AfC comment}} on the talk page instead of using the template. I tried subst-ing it just now and it looks really ugly. There is a bunch of conditional logic in the subst rather than just pure formatting. For this reason, I think it's fine to leave it as the {{AfC comment}} template.

image

Bug

During my testing just now, I did find a bug in this patch. If there are 0 {{AfC comments}} on a draft, and you tell it to write these 0 comments to the talk page, then it fails to write anything to the draft talk page, even the WikiProject AFC banner that it is supposed to.

In the interest of not having this patch sit for another 2 years, I'll try to fix that myself right now. Just a moment.

@NovemLinguae NovemLinguae linked an issue Apr 9, 2024 that may be closed by this pull request
@NovemLinguae
Copy link
Member

Bug involved checking comments.length when comments was null. Fixed.

Merging. Thanks for the patch!

@NovemLinguae NovemLinguae merged commit 8914696 into wikimedia-gadgets:master Apr 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy comments to article's talk page when accepting
4 participants