[Wikidata-bugs] [Maniphest] [Commented On] T200432: Labels/aliases/descriptions in Toki Pona need to be removed

2019-05-13 Thread Stashbot
Stashbot added a comment.


  Mentioned in SAL (#wikimedia-operations) [2019-05-13T16:14:17Z]  
removing tokipona language terms from items using maintenance script (T200432 
)

TASK DETAIL
  https://phabricator.wikimedia.org/T200432

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup, Stashbot
Cc: Addshore, Pasleim, matej_suchanek, Mbch331, Harmonia_Amanda, Aklapper, 
Lydia_Pintscher, darthmon_wmde, alaa_wmde, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Jonas, 
Wikidata-bugs, aude
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T200432: Labels/aliases/descriptions in Toki Pona need to be removed

2019-03-09 Thread matej_suchanek
matej_suchanek added a comment.


  I managed to drop this to around 40 instances. I did it using 
`action=wbeditentity=1={entity_without_tokipona}`. But in some 
cases, it isn't possible because of inconsistent data (missing `precision` 
value attributes, links to deleted pages, label-description conflicts etc.).
  
  For curiosity, this is the Pywikibot script:
  
  name=tokipona.py
# -*- coding: utf-8 -*-
import pywikibot

from pywikibot import pagegenerators

pywikibot.handle_args()

repo = pywikibot.Site('wikidata', 'wikidata')

query = ''
query += 'SELECT 0 AS ns, term_full_entity_id FROM wb_terms'
query += ' WHERE term_language = \'tokipona\' AND term_entity_type = 
\'item\''

summary = 'remove tokipona terms (see [[phab:T200432]])'

gen = pagegenerators.MySQLPageGenerator(query, site=repo)

def handle_entity(entity):
if 'tokipona' in entity._content['labels']:
entity._content['labels'].pop('tokipona')
if 'tokipona' in entity._content['descriptions']:
entity._content['descriptions'].pop('tokipona')
if 'tokipona' in entity._content['aliases']:
entity._content['aliases'].pop('tokipona')
entity.editEntity(entity._content, clear=True, summary=summary)

for item in pagegenerators.PreloadingEntityGenerator(gen):
handle_entity(item)

query = query.replace("'item'", "'property'")

for page in pagegenerators.MySQLPageGenerator(query, site=repo):
p = pywikibot.PropertyPage(repo, page.title(with_ns=False))
p.get()
handle_entity(p)

TASK DETAIL
  https://phabricator.wikimedia.org/T200432

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: Pasleim, matej_suchanek, Mbch331, Harmonia_Amanda, Aklapper, 
Lydia_Pintscher, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T200432: Labels/aliases/descriptions in Toki Pona need to be removed

2018-07-28 Thread Lydia_Pintscher
Lydia_Pintscher added a comment.
Yeah but this is not possible if there is a sitelink conflict for example that has been introduced since. This is the case for the item mentioned in the description. Not sure for how many others.TASK DETAILhttps://phabricator.wikimedia.org/T200432EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lydia_PintscherCc: Pasleim, matej_suchanek, Mbch331, Harmonia_Amanda, Aklapper, Lydia_Pintscher, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T200432: Labels/aliases/descriptions in Toki Pona need to be removed

2018-07-27 Thread Pasleim
Pasleim added a comment.
It is possible to remove the tokipana terms by undoing the edits in which they were added https://www.wikidata.org/wiki/Special:Diff/716262791 .TASK DETAILhttps://phabricator.wikimedia.org/T200432EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: PasleimCc: Pasleim, matej_suchanek, Mbch331, Harmonia_Amanda, Aklapper, Lydia_Pintscher, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T200432: Labels/aliases/descriptions in Toki Pona need to be removed

2018-07-27 Thread matej_suchanek
matej_suchanek added a comment.
Query: https://quarry.wmflabs.org/query/25249TASK DETAILhttps://phabricator.wikimedia.org/T200432EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: matej_suchanekCc: matej_suchanek, Mbch331, Harmonia_Amanda, Aklapper, Lydia_Pintscher, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T200432: Labels/aliases/descriptions in Toki Pona need to be removed

2018-07-26 Thread Harmonia_Amanda
Harmonia_Amanda added a comment.
You can edit other languages, but you can't edit tokipona at all (and the alias is wrong). You can't use any gadgets dealing with all languages, like LabelLister or NameGuzzler, or Empty, or namescript (etc.)TASK DETAILhttps://phabricator.wikimedia.org/T200432EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Harmonia_AmandaCc: Mbch331, Harmonia_Amanda, Aklapper, Lydia_Pintscher, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T200432: Labels/aliases/descriptions in Toki Pona need to be removed

2018-07-26 Thread Mbch331
Mbch331 added a comment.
I just tried editing https://www.wikidata.org/wiki/Q11466925 and had no problems doing so. Could add/remove a statement and could remove/add an alias.TASK DETAILhttps://phabricator.wikimedia.org/T200432EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Mbch331Cc: Mbch331, Harmonia_Amanda, Aklapper, Lydia_Pintscher, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs