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

xfd: Don't show reason for AfD errors that don't matter #1093

Merged

Conversation

Amorymeltzer
Copy link
Collaborator

Both delsort and pagetriage can lead to errors; the former mainly for nonexistent categories (rare), the latter for pages not in the triage queue (common, see #930). None of these matter for the sake of losing the nomination reason, so neither needs to get evaluated before Twinkle.xfd.currentRationale is nulled. Likely to be fairly common for the triage action.

If we handled triage the way initially proposed in #930, we wouldn't see these errors, so this is kind of kludgy. Probably still worth it.


The same issue likely exists for RfD's target talkpage notification; tagging issues can/would be dealt with by #1091/#176.

Both delsort and pagetriage can lead to errors; the former mainly for nonexistent categories (rare), the latter for pages not in the triage queue (common, see wikimedia-gadgets#930).  None of these matter for the sake of losing the nomination reason, so neither needs to get evaluated before `Twinkle.xfd.currentRationale` is `null`ed.  Likely to be fairly common for the `triage` action.

If we handled `triage` the way initially proposed in wikimedia-gadgets#930, we wouldn't see these errors, so this is kind of kludgy.  Probably still worth it.
@Amorymeltzer Amorymeltzer added this to the September 2020 update milestone Aug 12, 2020
@Amorymeltzer Amorymeltzer merged commit e62c613 into wikimedia-gadgets:master Sep 2, 2020
@Amorymeltzer Amorymeltzer deleted the xfd-noreasonsillyerrors branch September 2, 2020 11:08
Amorymeltzer added a commit to Amorymeltzer/twinkle that referenced this pull request Oct 9, 2020
Since wikimedia-gadgets#1093 (7a450cb), in an attempt to avoid pointless errors leading to *actual* errors, I moved the `pageobj.triage()` call to after the `Twinkle.xfd.currentRationale = null` limits such errors.  This, however, meant that since then, AfD nominations were always trying to triage the *nomination* page, not the *nominated* page.  This fixes that, although like wikimedia-gadgets#1093, in a somewhat kludgy way; anywhere else and we risk the page nomination resolving first (wikimedia-gadgets#1036).  Increasingly thinking the original version of wikimedia-gadgets#930 would be the cleaner way to handle this.
Amorymeltzer added a commit to Amorymeltzer/twinkle that referenced this pull request Oct 11, 2020
…s in queue

Original structure from wikimedia-gadgets#930, where we can properly asses and handle cases, rather than just swallowing all errors and avoiding stuff like wikimedia-gadgets#1093/wikimedia-gadgets#1145 and wikimedia-gadgets#1150.  Restore AfD's `triage` to where it (sensibly) was before wikimedia-gadgets#1093.
@siddharthvp siddharthvp mentioned this pull request Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant