LucasWerkmeister added a comment.
I tested the above fix with the following Python script:
#!/usr/bin/python3
import json
import mwapi
session = mwapi.Session(host='http://localhost', api_path='/wiki1/api.php')
lgtoken = session.get(action='query',
meta='tokens',
type='login')['query']['tokens']['logintoken']
session.post(action='login',
lgname='Lucas Werkmeister@T217144',
lgpassword='[redacted]',
lgtoken=lgtoken)
token = session.get(action='query',
meta='tokens',
type='csrf')['query']['tokens']['csrftoken']
id = session.post(action='wbeditentity',
new='lexeme',
token=token,
data=json.dumps({
'type': 'lexeme',
'lemmas': {'en': {'language': 'en', 'value':
'T217144'}},
'lexicalCategory': 'Q10',
'language': 'Q85',
'claims': [],
'forms': [],
'senses': [],
}))['entity']['id']
print(f'http://localhost/wiki1/index.php/Lexeme:{id}')
With the fix checked out locally, the new lexeme would be on my watchlist;
without the fix, it would be missing.
TASK DETAIL
https://phabricator.wikimedia.org/T217144
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: LucasWerkmeister
Cc: abian, LucasWerkmeister, Aklapper, Lucas_Werkmeister_WMDE, KaMan,
Alter-paule, NavinRizwi, Beast1978, Un1tY, Akuckartz, Hook696, CptViraj,
darthmon_wmde, Kent7301, joker88john, DannyS712, CucyNoiD, Nandana, kostajh,
Gaboe420, Jony, Amorymeltzer, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420,
Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, JJMC89,
Maathavan, _jensen, rosalieper, Taiwania_Justo, Scott_WUaS, Wong128hk,
Wikidata-bugs, aude, Dinoguy1000, Mbch331, Rxy, Ltrlg
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs