Page MenuHomePhabricator

Replace all current "X" usage with nuanced usage information (label/description/sitelink) via Lua table
Closed, DuplicatePublic

Description

We're already working on tracking statement usage within Lua tables (T151717). Let's extend that to all the other fun things you can find in a Wikidata entity. E.g. labels, descriptions, and sitelinks. We'll probably never really phase out the "X", but this task is about getting the obvious usage types covered.

This task is done when: We stop recording an "X" in wbc_entity_usage for lua table access of labels, descriptions, and sitelinks.

Event Timeline

Halfak created this task.Aug 10 2017, 6:01 PM

Now that T172905 is deployed I did few minor changes in hewiki Lua modules (1, 2) and was able to reduce the X usage by more than 50% (still counting - not all pages refreshed).

Before:

select eu_aspect, count(*) from wbc_entity_usage group by eu_aspect ;
+-----------+----------+
| eu_aspect | count(*) |
+-----------+----------+
| L         |        1 |
| L.en      |    16330 |
| L.he      |   204341 |
| O         |   182784 |
| S         |   285360 |
| T         |   220551 |
| X         |   213307 |
+-----------+----------+

After (~9 hours after):

+-----------+----------+
| eu_aspect | count(*) |
+-----------+----------+
| L         |        1 |
| L.en      |    45705 |
| L.he      |   299934 |
| O         |   253234 |
| S         |   285378 |
| T         |   277941 |
| X         |   100303 |
+-----------+----------+

(note the increase in O in favor of X).

Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptOct 20 2017, 4:08 PM