Page MenuHomePhabricator

Renumber commons TimedText namespace 102 to 710
Open, Stalled, HighPublic

Description

It's probably time we get rid of this Commons exception (see also config), that has TimedText at namespace index 102 instead of 710 (and 103 vs 711). I suspect this will need a custom migration script ?

Tables in commonswiki database needing cleanup:

  • abuse_filter_log: afl_namespace
  • archive: ar_namespace
  • cu_changes: cuc_namespace
  • imagelinks: il_from_namespace
  • logging: log_namespace
  • page: page_namespace
  • pagelinks: pl_namespace, pl_from_namespace
  • protected_titles: pt_namespace
  • querycache: qc_namespace
  • recentchanges: rc_namespace, rc_moved_to_ns(?)
  • redirect: rd_namespace
  • templatelinks: tl_from_namespace, tl_namespace
  • titlekey: tk_namespace
  • watchlist: wl_namespace

Tables that currently have no relevant rows:

  • externallinks: el_from_namespace
  • job: job_namespace
  • mark_as_helpful: mah_namespace
  • moodbar_feedback: mbf_namespace
  • querycachetwo: qcc_namespace, qcc_namespacetwo

Other tables that keep track and 'might' have to be updated ?

  • echo_event: event_page_namespace

There are about 4500'ish pages in TimedText, and fewer than 500 in TimedText_talk.

Event Timeline

TheDJ raised the priority of this task from to High.
TheDJ updated the task description. (Show Details)
TheDJ added subscribers: TheDJ, Anomie, Tgr.
TheDJ set Security to None.
TheDJ added a project: Commons.

We have a script which is supposed to deal with most of those tables called namespaceDupes.

Actually, it deals with page, pagelinks, templatelinks, and imagelinks. Not echo_event, job, logging, protected_titles, recentchanges, redirect (?), watchlist.

mysql> select table_name, column_name from information_schema.columns where column_name like '%namespace%' and table_schema = 'commonswiki';
+--------------------+-----------------------+
| table_name         | column_name           |
+--------------------+-----------------------+
| abuse_filter_log   | afl_namespace         |
| archive            | ar_namespace          |
| archive_save       | ar_namespace          |
| click_tracking     | namespace             |
| cu_changes         | cuc_namespace         |
| cur                | cur_namespace         |
| edit_page_tracking | ept_namespace         |
| externallinks      | el_from_namespace     |
| globalimagelinks   | gil_page_namespace_id |
| globalimagelinks   | gil_page_namespace    |
| hidden             | hidden_namespace      |
| imagelinks         | il_from_namespace     |
| job                | job_namespace         |
| job_explosion_tmp  | job_namespace         |
| logging            | log_namespace         |
| logging_pre_1_10   | log_namespace         |
| mark_as_helpful    | mah_namespace         |
| moodbar_feedback   | mbf_namespace         |
| page               | page_namespace        |
| pagelinks          | pl_namespace          |
| pagelinks          | pl_from_namespace     |
| povwatch_log       | pwl_namespace         |
| protected_titles   | pt_namespace          |
| querycache         | qc_namespace          |
| querycachetwo      | qcc_namespace         |
| querycachetwo      | qcc_namespacetwo      |
| recentchanges      | rc_namespace          |
| redirect           | rd_namespace          |
| templatelinks      | tl_namespace          |
| templatelinks      | tl_from_namespace     |
| titlekey           | tk_namespace          |
| watchlist          | wl_namespace          |
+--------------------+-----------------------+
32 rows in set (0.01 sec)

Also recentchanges.rc_moved_to_ns. Some of those tables are obsolete or unused - click_tracking, hidden, job_explosion_tmp, logging_pre_1_10, titlekey, etc.

Looks like some Phab thing incorrectly auto-closed this task because it happened to be mentioned in the commit summary.

Looks like some Phab thing incorrectly auto-closed this task because it happened to be mentioned in the commit summary.

"Fix/Fixes T..." autocloses issues, yes. See https://secure.phabricator.com/T5132.

Now, with free backport noise :)

Changing the id is likely breaking scripts, bots, editnotices and equivalent?

Depending on how you're storing titles, maybe. You shouldn't generally be storing namespace IDs yourself, it's kind of an internal thing.

@TheDJ You want to work on this or see a plan of action we can follow? For example, do you have a script available for the tables operations?

zhuyifei1999 renamed this task from Renumber commons namespace 102 to 710 to Renumber commons TimedText namespace 102 to 710.Mar 29 2020, 2:07 AM