SuLab / GeneWikiCentral

GeneWiki Organization
MIT License
5 stars 2 forks source link

Bot Log Parser enhancements #66

Closed stuppie closed 6 years ago

stuppie commented 6 years ago

To the Bot Status page:

To the reports:

stuppie commented 6 years ago

Would be nice to format the WDapi error responses too. e.g: making the QIDs clickable

{"servedby": "mw1276",
     "error": {"code": "modification-failed",
               "info": "Item [[Q27826279|Q27826279]] already has label \"The importance of an innervated and intact antrum and pylorus in preventing postoperative duodenogastric reflux and gastritis.\" associated with language code en, using the same description text.",
               "*": "See https://www.wikidata.org/w/api.php for API usage",
               "messages": [{"name": "wikibase-validator-label-with-description-conflict",
                             "html": {
                                 "*": "Item <a href=\"/wiki/Q27826279\" title=\"Q27826279\">Q27826279</a> already has label \"The importance of an innervated and intact antrum and pylorus in preventing postoperative duodenogastric reflux and gastritis.\" associated with language code en, using the same description text."},
                             "parameters": [
                                 "The importance of an innervated and intact antrum and pylorus in preventing postoperative duodenogastric reflux and gastritis.",
                                 "en",
                                 "[[Q27826279|Q27826279]]"]}
                            ]
               }
     }
stuppie commented 6 years ago

https://github.com/SuLab/scheduled-bots/commit/2580e1dfe37550af291ddfd8b260d0b1d43c8471 https://github.com/SuLab/scheduled-bots/commit/3ee44d41540e4902c64ece5cce52c9a9528afebf