Ben Kurtovic
79866da842
Strip whitespace.
há 7 anos
Ben Kurtovic
088dfe6197
Again, fix link and cleanup.
há 7 anos
Ben Kurtovic
21aad51375
Fix unnecessary extra work.
há 7 anos
Ben Kurtovic
63f1ae98c4
Show warning when a page has an attribution template.
há 7 anos
Ben Kurtovic
a2df4bba0a
Tweak parameters.
há 8 anos
Ben Kurtovic
1076959f71
Bugfix in highlight_delta() call; clarify docs.
há 8 anos
Ben Kurtovic
2a81217de8
Add support for detailed text comparison in API (T132949)
há 8 anos
Ben Kurtovic
8be5c63bc1
Turnitin bugfix.
há 8 anos
Ben Kurtovic
137c33bfcb
Fix _format_date() for caches older than a day.
há 8 anos
Ben Kurtovic
e6e83ed73c
Revert "ast.literal_eval -> json.loads"
This reverts commit 6d940b5c92
.
há 9 anos
Ben Kurtovic
0692227496
Cleanup/tweaks, mainly to rendering.
há 9 anos
Ben Kurtovic
6d940b5c92
ast.literal_eval -> json.loads
há 9 anos
Ben Kurtovic
83f5588354
Disable turnitin by default for now, until we confirm it works as expected.
há 9 anos
Frances Hocutt
4e994f1302
Refactor turnitin.py, incorporate diff link/timestamp
* Add a wiki timestamp parser to copyvios/misc.py
* Refactor copyvios/turnitin.py for more sensible structure
* Update templates/index.mako to incorporate diff link/timestamp and
make it clearer that Turnitin is revision-based checking
há 9 anos
Frances Hocutt
1ffa87da0b
Improve turnitin.py docstrings, fix bugs
há 9 anos
Frances Hocutt
bf0aa22fa9
[WIP] improve docstrings and naming, mark TODO
há 9 anos
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
há 9 anos
Ben Kurtovic
ad033a6e2b
Pass excluded URL data to the API.
há 9 anos
Ben Kurtovic
321e6e3352
Support new 'excluded' column in database.
há 9 anos
Ben Kurtovic
4092cbc0f6
Keep all workers' backgrounds in sync, and ensure they update at 00:00 UTC.
há 9 anos
Ben Kurtovic
b325ef84cd
Support general/update notices.
há 9 anos
Ben Kurtovic
1327f57404
Fix backgrounds when the image has been moved.
há 9 anos
Ben Kurtovic
f2c1d5b853
Make cache.langs, cache.projects sorted lists.
há 10 anos
Ben Kurtovic
0f4ecfe80a
Auto-bypass cache when cache_possible_miss is True.
há 10 anos
Ben Kurtovic
81552f28d3
Bugfix; missed column.
há 10 anos
Ben Kurtovic
10e75c7b7a
Cache 'possible_miss' result value.
há 10 anos
Ben Kurtovic
331b05baae
Truncate URLs above 1024 chars.
há 10 anos
Ben Kurtovic
a07d12699a
Finally fix #3 ; speed up highlighter with a deque.
há 10 anos
Ben Kurtovic
f4ff4099be
Fix old reference to query.all_projects.
há 10 anos
Ben Kurtovic
a1d8b79265
Fix recursion bug.
há 10 anos
Ben Kurtovic
6eed95c761
Use a global cache instead of the request-specific one.
há 10 anos
Ben Kurtovic
ddcf2a8963
Store what was previously in SQL tables in flask.g.
há 10 anos
Ben Kurtovic
9b07a5e9dc
OrderedDict requires extra parens.
há 10 anos
Ben Kurtovic
340ba07c9d
Generate API results as ordered dicts.
há 10 anos
Ben Kurtovic
6d87ad41ed
Rearrange functions in api.py.
há 10 anos
Ben Kurtovic
2fad6b0b60
Description of API response data.
há 10 anos
Ben Kurtovic
89feddba98
Some minor tweaks, plus documentation for API parameters.
há 10 anos
Ben Kurtovic
6639338fa8
First version of new API (for #7 )
há 10 anos
Ben Kurtovic
6f574e37a2
Pluralize cache times correctly.
há 10 anos
Ben Kurtovic
db7a4f2ec4
Clean up query data handling.
há 10 anos
Ben Kurtovic
b3e1862726
Catch and display search errors more usefully.
há 10 anos
Ben Kurtovic
b7bafb29cf
Implement noskip.
há 10 anos
Ben Kurtovic
73315e3370
FML.
há 10 anos
Ben Kurtovic
5242d31a93
Whoops.
há 10 anos
Ben Kurtovic
0731eb089d
Cleanup; fix confidence value comparison; fix.
há 10 anos
Ben Kurtovic
7cd9a53209
Fix oursql coercing binary data to unicode.
há 10 anos
Ben Kurtovic
b2fba1fa56
Implement new caching system and result structure.
há 10 anos
Ben Kurtovic
c6b9c9ebe6
Really fix checkbox blank value treatment.
há 10 anos
Ben Kurtovic
6cd194f971
Catch empty method error; fix blank values in query.
há 10 anos
Ben Kurtovic
b90e5e7279
Fix logic.
há 10 anos