Wikidata:Requests for permissions/Bot/Shyde 2
The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 07:23, 11 May 2016 (UTC)[reply]
Shyde edit
Shyde (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Gallaecio (talk • contribs • logs)
Task/s: Update of the latest stable version of free software applications.
Code:
- Main repository: https://gitlab.com/adriyetichaves/wikidata
- Base repository: https://gitlab.com/adriyetichaves/shyde (the main repository basically calls code defined at shyde/wikidata)
Function details:
- For each piece of software that the script supports (current list):
- Add the latest stable version to the version property of a software entity if such version is not present.
- Mark the latest stable version as the ‘preferred’ version, and mark any other version as ‘normal’.
- Add a release date qualifier to the latest stable version property value of a software entity, or fix the existing release date if it is not accurate.
- Add an URL reference to the latest stable version property value of a software entity.
- If the URL reference to add already exists, nothing is done. (URL comparison ignores URL schema, port and query parameter order)
- If the URL reference to add is a subURL of an existing URL, or the other way around, nothing is done.
- Note: In the future, when PyWikiBot allows changing existing references, if the new URL reference is a subURL of an existing URL, the existing URL is replaced by it, as a subURL should be more specific.
It is also important that I make it clear that I manually verify each step of the way before any change to Wikidata. So it is an assistant, not an autonomous bot. This is how it looks like to use it:
[gallaecio@afonso wikidata]$ python2 maintenance.py :: Updating software version data… Do you want to add version ‘2.0.36’ to ‘Anki’ (Q557318)? ([y]es, [N]o, [a]lways, [q]uit): y Do you want to change the rank of version 2.0.34 of ‘Anki’ (Q557318) from ‘preferred’ to ‘normal’? ([y]es, [N]o, [a]lways, [q]uit): y Sleeping for 6.2 seconds, 2016-05-08 13:54:52 Do you want to change the rank of version 2.0.36 of ‘Anki’ (Q557318) from ‘normal’ to ‘preferred’? ([y]es, [N]o, [a]lways, [q]uit): y Sleeping for 8.6 seconds, 2016-05-08 13:55:00 Do you want to add release date ‘2016-04-10’ to version ‘2.0.36’ of ‘Anki’ (Q557318)? ([y]es, [N]o, [a]lways, [q]uit): y Do you want to add reference URL ‘http://ankisrs.net/download/mirror/’ to version ‘2.0.36’ of ‘Anki’ (Q557318)? ([y]es, [N]o, [a]lways, [q]uit): y Sleeping for 3.8 seconds, 2016-05-08 13:55:14 [gallaecio@afonso wikidata]$
Additional information: I actually requested this bot last year; that is why I put a “1” in the title of this request, otherwise I would be overwriting my previous request. The original request was not granted because I stopped being active in Wikidata some time afterwards. The only real change since the request was closed is that the source code is now hosted at gitlab.com because gitorious.org closed its doors.
--Gallaecio (talk) 19:28, 7 May 2016 (UTC)[reply]
- Support looks good to me, thanks for coming back and getting this going again ArthurPSmith (talk) 20:23, 9 May 2016 (UTC)[reply]