-
Notifications
You must be signed in to change notification settings - Fork 27
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
Move creating appeal table to a Laravel job #289
Conversation
Best reviewed: commit by commit
Optimal code review plan
|
app/Console/Kernel.php
Outdated
// ->hourly(); | ||
|
||
// Wiki integration | ||
$schedule->command('utrs-jobs:update-appeal-tables --wiki=enwiki')->everyThirtyMinutes(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this is ok or should it be more often
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I don't think I ever implemented cookie storage on the python task, we do need to be logging in as little as possible. The examples given for addwiki/mediawiki-api do not indicate that this is something that already exists.
https://github.com/addwiki/mediawiki-api#example-usage
See also:
https://phabricator.wikimedia.org/T256533
https://www.mediawiki.org/wiki/API:Login#Additional_notes
https://en.wikipedia.org/wiki/User_talk:AmandaNP#High_DeltaQuadBot_login_rate
Likely irrelevant python theory: mwclient/mwclient#256
I just reread #250 I'm assuming that solves the concern and has been merged? |
@dqwiki If you're speaking about re-using sessions, nope, but I'm currently working on that. #250 does improve the situation so that UTRS will only log in when it needs to actually write something, otherwise it just uses the API anonymously |
see #347 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from a code perspective.
closes #141