Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Run edits through ORES | labs/tools/suggestor | master | +253 -19 |
Details
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T258303 Integrate anti-abuse measures into Suggestor | |||
Open | Legoktm | T149960 Run edits through ORES |
Event Timeline
Comment Actions
HTTP 500. But in any case, I thought ORES was for edits already on-wiki, is it possible to run proposed edits through it?
Comment Actions
But in any case, I thought ORES was for edits already on-wiki, is it possible to run proposed edits through it?
Comment Actions
I finished the suggestor side of this...except it doesn't seem to work in ORES anymore?
>>> import requests >>> x={'*': 'I have a fucking shitty lively ass bunch of coconuts', ... 'comment': '', ... 'contentformat': 'text/x-wiki', ... 'contentmodel': 'wikitext', ... 'page': {'ns': 0, 'pageid': 45657000, 'title': 'User:Arlolra/sandbox'}, ... 'parentid': 642345234, ... 'revid': 0, ... 'size': 52, ... 'timestamp': '2017-01-11T21:53:35Z', ... 'user': '127.0.0.1', ... 'userid': 0} >>> import json >>> pre_save_rev_doc=x >>> >>> response = requests.get( ... "https://ores-staging.wmflabs.org/v2/scores/enwiki/damaging/0", ... params={'datasource.revision.doc': json.dumps(pre_save_rev_doc),}) >>> response.json() {'scores': {'enwiki': {'damaging': {'scores': {'0': {'error': {'message': 'TextDeleted: Text deleted (datasource.revision.text)', 'type': 'TextDeleted'}}}, 'version': '0.5.0'}}}}
Comment Actions
Figured it out by searching the revscoring code, it now needs to be in a MCR-like format https://github.com/wikimedia/revscoring/commit/087dd52ba6a6ab481fcb133e10369d1b00dfe549
Comment Actions
Change 699318 had a related patch set uploaded (by Legoktm; author: Legoktm):
[labs/tools/suggestor@master] Run edits through ORES