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: Avoid client clock for soft redirects #863

Conversation

Amorymeltzer
Copy link
Collaborator

@Amorymeltzer Amorymeltzer commented Feb 21, 2020

In doing #862, I undid the intent of #714 to avoid the client clock as much as possible for the specific case of soft redirects being nominated at RfD. It never worked - thus #861 - but the idea is sound. This has softredirects go through the same curtimestamp query and "typical" redirects, but simply skips processing of target or section. It's not a free check anymore, but it should be incredibly infrequent and fairly quick.

Also added a note for softredirect failures from the history tab. If run from history, the Morebits.wiki.isPageRedirect check for soft redirects won't work. The module fails fine, but a note suggesting users retry from the content tab is helpful.

@Amorymeltzer
Copy link
Collaborator Author

Not included in #862 since I wanted to do some extra testing/thought I'd be going to bed.

@Amorymeltzer Amorymeltzer added this to the March 2020 update milestone Feb 23, 2020
In doing wikimedia-gadgets#862, I undid the intent of wikimedia-gadgets#714 to avoid the client clock as much as possible for the specific case of soft redirects being nominated at RfD.  It never worked - thus wikimedia-gadgets#861 - but the idea is sound.  This has softredirects go through the same `curtimestamp` query and "typical" redirects, but simply skips processing of target or section.  It's not an entirely free check anymore, but it should be incredibly infrequent and fairly quick.
If run from the history tab, the `Morebits.wiki.isPageRedirect` check for soft redirects won't work.  The module fails fine, but this adds a note suggesting users retry from the content tab.
@Amorymeltzer Amorymeltzer force-pushed the xfd-softredir-alwaysquery-noclientclock branch from 7a38e5a to 22cb752 Compare March 2, 2020 17:06
@Amorymeltzer Amorymeltzer merged commit 626f11b into wikimedia-gadgets:master Mar 2, 2020
@Amorymeltzer Amorymeltzer deleted the xfd-softredir-alwaysquery-noclientclock branch March 2, 2020 17:15
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