Ben Kurtovic
270ad50cf5
Set Cache-Control on static files with a version tag
5 달 전
Ben Kurtovic
770fb794c0
Fix instance-relative config setup
5 달 전
Ben Kurtovic
80d1b3355a
Fix swallowing HTTP errors
5 달 전
Ben Kurtovic
769fc7f7bb
Mostly finish Jinja refactoring
1 년 전
Ben Kurtovic
7826e87534
More Python 3 conversion and heavy refactoring
2 년 전
Ben Kurtovic
367a14d3ac
Initial Python 3 conversion
2 년 전
Ben Kurtovic
865c4b5f7e
Try to make sessions more persistent
8 달 전
Chlod Alejandro
35dee57a41
Add OAuth flow
Adds the initial backend requirements for the
OAuth flow, which will be made required for all
search engine checks. This adds three new routes:
- `/login` (GET, POST) - for logging in
- `/logout` (GET, POST) - for logging out
- `/oauth-callback` - OAuth 1.0a callback route
Login/logout state can be checked through the
header. By default, a separate page navigation is
not required when the link is clicked by the user.
When following a link to `/log(in|out)`, however,
an extra button will be shown to prevent inadvertent
logins/logouts.
2 년 전
Ben Kurtovic
eacb294735
Update URLs
6 년 전
Ben Kurtovic
f4812b20e5
Reduce worker counter to 8
7 년 전
Ben Kurtovic
abd736ce4e
Fix flask_mako import
7 년 전
Ben Kurtovic
a2df4bba0a
Tweak parameters.
9 년 전
Frances Hocutt
efe2300250
[WIP] Basic working integration of turnitin
Add a checkbox to allow searching the EranBot/plagiabot database for
Turnitin results, and display them in a similar form to the on-wiki
EranBot reports if they exist.
Add a new module (copyvios/turnitin.py) to handle fetching and parsing
the EranBot results.
Bug: https://phabricator.wikimedia.org/T110144
TODO: tweak display HTML/CSS; refactor/clean up turnitin.py;
improve dev set-up so it doesn't always default to testwiki
and can test without hardcoding page title
11 년 전
Ben Kurtovic
0e2292eba0
Bugfixes -- Flask's documentation is broken regarding this.
11 년 전
Ben Kurtovic
016742402f
Force client-side purging of CSS/JS when updated.
11 년 전
Ben Kurtovic
b325ef84cd
Support general/update notices.
11 년 전
Ben Kurtovic
5839f74850
Update for new uWSGI stuff.
11 년 전
Ben Kurtovic
5d1960db81
Try Access-Control-Allow-Origin: * for API responses.
12 년 전
Ben Kurtovic
f2c1d5b853
Make cache.langs, cache.projects sorted lists.
12 년 전
Ben Kurtovic
b116c7e473
Try to fix log dump to ~/error.log location.
12 년 전
Ben Kurtovic
8321a22f05
Log user-facing exceptions in app log.
12 년 전
Ben Kurtovic
190356b444
Update sites before doing check.
12 년 전
Ben Kurtovic
aef27a53a1
Cleanup; call update_sites() before API requests.
12 년 전
Ben Kurtovic
6eed95c761
Use a global cache instead of the request-specific one.
12 년 전
Ben Kurtovic
ddcf2a8963
Store what was previously in SQL tables in flask.g.
12 년 전
Ben Kurtovic
69819ed3f8
@catch_errors for api routes.
12 년 전
Ben Kurtovic
89feddba98
Some minor tweaks, plus documentation for API parameters.
12 년 전
Ben Kurtovic
6639338fa8
First version of new API (for #7 )
12 년 전
Ben Kurtovic
55e5a108c6
Make sure the CV workers don't spit out tons of logs.
12 년 전
Ben Kurtovic
8b0c0aa38f
Call copyvios.globalize() before requests.
12 년 전
Ben Kurtovic
9e13ac1c04
Increase log message verbosity; fix import.
12 년 전
Ben Kurtovic
27917a956e
Revert last commit; I have no idea what I'm doing.
12 년 전
Ben Kurtovic
047ddcf75c
Allow EarwigBot to save its internal logs for debugging.
12 년 전
Ben Kurtovic
1e3a61ac52
Fix log file rotate time.
12 년 전
Ben Kurtovic
9a25f97831
Connection pooling; cleanup.
12 년 전
Ben Kurtovic
cb79aa24b4
Update/fix index.mako.
12 년 전
Ben Kurtovic
5552fb8c78
Remove /debug.
12 년 전
Ben Kurtovic
d6bdd3843c
Fix cookie setting.
12 년 전
Ben Kurtovic
e682dbbdda
Move application logic around; improve exceptions.
12 년 전
Ben Kurtovic
246c987f72
Fix wrapping.
12 년 전
Ben Kurtovic
19ad246a12
Very basic attempt at exception printing.
12 년 전
Ben Kurtovic
56a79cc8d1
More cleanup; cookie fixes, Flask integration.
12 년 전
Ben Kurtovic
262ad492f6
Can POST to /settings.
12 년 전
Ben Kurtovic
1344594c33
Internal cleanup for Flask.
12 년 전
Ben Kurtovic
39f3f900e2
Attempt to pass arguments correctly.
12 년 전
Ben Kurtovic
f25f963d22
Fix flask-mako registering.
12 년 전
Ben Kurtovic
c20b7ffeb8
Fix import.
12 년 전
Ben Kurtovic
0ddba712db
Fix logs, chmod, paths.
12 년 전
Ben Kurtovic
f48a566841
Begin conversion to Flask; updates.
12 년 전