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: Fix AfD bug attempting to triage wrong page #1145

Merged

Conversation

Amorymeltzer
Copy link
Collaborator

Since #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 #1093, in a somewhat kludgy way; anywhere else and we risk the page nomination resolving first (#1036). Increasingly thinking the original version of #930 would be the cleaner way to handle this.

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 Amorymeltzer added this to the October 2020 update milestone Oct 9, 2020
@Amorymeltzer Amorymeltzer merged commit 9aea6a1 into wikimedia-gadgets:master Oct 9, 2020
@Amorymeltzer Amorymeltzer deleted the xfd-afdtriagepage branch October 9, 2020 20:10
@Amorymeltzer
Copy link
Collaborator Author

Pushing now

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.
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.

1 participant