[MediaWiki-commits] [Gerrit] operations/dumps[master]: fix up silly handling of table job names

2016-12-19 Thread ArielGlenn (Code Review)
ArielGlenn has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/325947 )

Change subject: fix up silly handling of table job names
..


fix up silly handling of table job names

they should all end in 'table' but this can be done internally,
and now it is.

Bug: T152679
Change-Id: I24f7a41184add8b8aca44a691fd55c3e270af2ed
---
M xmldumps-backup/default_tables.yaml
M xmldumps-backup/doc/README.job_config
M xmldumps-backup/dumps/runner.py
3 files changed, 55 insertions(+), 42 deletions(-)

Approvals:
  ArielGlenn: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/xmldumps-backup/default_tables.yaml 
b/xmldumps-backup/default_tables.yaml
index c19da27..4e3d10a 100644
--- a/xmldumps-backup/default_tables.yaml
+++ b/xmldumps-backup/default_tables.yaml
@@ -1,137 +1,137 @@
 # default list of public and private tables to dump
 tables:
 user:
-  job: usertable
+  job: user
   description: User account data.
   type: private
 watchlist:
-  job: watchlisttable
+  job: watchlist
   description: Users' watchlist settings.
   type: private
 ipblocks:
-  job: ipblockstable
+  job: ipblocks
   description: Data for blocks of IP addresses, ranges, and users.
   type: private
 archive:
-  job: archivetable
+  job: archive
   description: Deleted page and revision data.
   type: private
 logging:
-  job: loggingtable
+  job: logging
   description: Data for various events (deletions, uploads, etc).
   type: private
 oldimage:
-  job: oldimagetable
+  job: oldimage
   description: Metadata on prior versions of uploaded images.
   type: private
 
 site_stats:
-  job: sitestatstable
+  job: sitestats
   description: A few statistics such as the page count.
   type: public
 image:
-  job: imagetable
+  job: image
   description: Metadata on current versions of uploaded media/files.
   type: public
 pagelinks:
-  job: pagelinkstable
+  job: pagelinks
   description: Wiki page-to-page link records.
   type: public
 categorylinks:
-  job: categorylinkstable
+  job: categorylinks
   description: Wiki category membership link records.
   type: public
 imagelinks:
-  job: imagelinkstable
+  job: imagelinks
   description: Wiki media/files usage records.
   type: public
 templatelinks:
-  job: templatelinkstable
+  job: templatelinks
   description: Wiki template inclusion link records.
   type: public
 externallinks:
-  job: externallinkstable
+  job: externallinks
   description: Wiki external URL link records.
   type: public
 langlinks:
-  job: langlinkstable
+  job: langlinks
   description: Wiki interlanguage link records.
   type: public
 user_groups:
-  job: usergroupstable
+  job: usergroups
   description: User group assignments.
   type: public
 category:
-  job: categorytable
+  job: category
   description: Category information.
   type: public
 page:
-  job: pagetable
+  job: page
   description: Base per-page data (id, title, old restrictions, etc).
   type: public
 page_restrictions:
-  job: pagerestrictionstable
+  job: pagerestrictions
   description: Newer per-page restrictions table.
   type: public
 page_props:
-  job: pagepropstable
+  job: pageprops
   description: Name/value pairs for pages.
   type: public
 protected_titles:
-  job: protectedtitlestable
+  job: protectedtitles
   description: Nonexistent pages that have been protected.
   type: public
 redirect:
-  job: redirecttable
+  job: redirect
   description: Redirect list
   type: public
 iwlinks:
-  job: iwlinkstable
+  job: iwlinks
   description: Interwiki link tracking records
   type: public
 geo_tags:
-  job: geotagstable
+  job: geotags
   description: List of pages' geographical coordinates
   type: public
 change_tag:
-  job: changetagstable
+  job: changetags
   description: List of annotations (tags) for revisions and log entries
   type: public
 flaggedpages:
-  job: flaggedpagestable
+  job: flaggedpages
   description: This contains a row for each flagged article containing the 
stable revision ID, if the lastest edit was flagged, and how long edits have 
been pending.
 flaggedrevs:
-  job: flaggedrevstable
+  job: flaggedrevs
   description: This contains a row for each flagged revision containing 
who flagged it, when it was flagged, reviewer comments, the flag values, and 
the quality tier those flags fall under.
 wb_items_per_site:
-  job: wbitemspersitetable
+  job: wbitemspersite
   description: For each Wik

[MediaWiki-commits] [Gerrit] operations/dumps[master]: fix up silly handling of table job names

2016-12-08 Thread ArielGlenn (Code Review)
ArielGlenn has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/325947 )

Change subject: fix up silly handling of table job names
..

fix up silly handling of table job names

they should all end in 'table' but this can be done internally,
and now it is.

Bug: T152679
Change-Id: I24f7a41184add8b8aca44a691fd55c3e270af2ed
---
M xmldumps-backup/default_tables.yaml
M xmldumps-backup/doc/README.job_config
M xmldumps-backup/dumps/runner.py
3 files changed, 55 insertions(+), 42 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/dumps 
refs/changes/47/325947/1

diff --git a/xmldumps-backup/default_tables.yaml 
b/xmldumps-backup/default_tables.yaml
index c19da27..4e3d10a 100644
--- a/xmldumps-backup/default_tables.yaml
+++ b/xmldumps-backup/default_tables.yaml
@@ -1,137 +1,137 @@
 # default list of public and private tables to dump
 tables:
 user:
-  job: usertable
+  job: user
   description: User account data.
   type: private
 watchlist:
-  job: watchlisttable
+  job: watchlist
   description: Users' watchlist settings.
   type: private
 ipblocks:
-  job: ipblockstable
+  job: ipblocks
   description: Data for blocks of IP addresses, ranges, and users.
   type: private
 archive:
-  job: archivetable
+  job: archive
   description: Deleted page and revision data.
   type: private
 logging:
-  job: loggingtable
+  job: logging
   description: Data for various events (deletions, uploads, etc).
   type: private
 oldimage:
-  job: oldimagetable
+  job: oldimage
   description: Metadata on prior versions of uploaded images.
   type: private
 
 site_stats:
-  job: sitestatstable
+  job: sitestats
   description: A few statistics such as the page count.
   type: public
 image:
-  job: imagetable
+  job: image
   description: Metadata on current versions of uploaded media/files.
   type: public
 pagelinks:
-  job: pagelinkstable
+  job: pagelinks
   description: Wiki page-to-page link records.
   type: public
 categorylinks:
-  job: categorylinkstable
+  job: categorylinks
   description: Wiki category membership link records.
   type: public
 imagelinks:
-  job: imagelinkstable
+  job: imagelinks
   description: Wiki media/files usage records.
   type: public
 templatelinks:
-  job: templatelinkstable
+  job: templatelinks
   description: Wiki template inclusion link records.
   type: public
 externallinks:
-  job: externallinkstable
+  job: externallinks
   description: Wiki external URL link records.
   type: public
 langlinks:
-  job: langlinkstable
+  job: langlinks
   description: Wiki interlanguage link records.
   type: public
 user_groups:
-  job: usergroupstable
+  job: usergroups
   description: User group assignments.
   type: public
 category:
-  job: categorytable
+  job: category
   description: Category information.
   type: public
 page:
-  job: pagetable
+  job: page
   description: Base per-page data (id, title, old restrictions, etc).
   type: public
 page_restrictions:
-  job: pagerestrictionstable
+  job: pagerestrictions
   description: Newer per-page restrictions table.
   type: public
 page_props:
-  job: pagepropstable
+  job: pageprops
   description: Name/value pairs for pages.
   type: public
 protected_titles:
-  job: protectedtitlestable
+  job: protectedtitles
   description: Nonexistent pages that have been protected.
   type: public
 redirect:
-  job: redirecttable
+  job: redirect
   description: Redirect list
   type: public
 iwlinks:
-  job: iwlinkstable
+  job: iwlinks
   description: Interwiki link tracking records
   type: public
 geo_tags:
-  job: geotagstable
+  job: geotags
   description: List of pages' geographical coordinates
   type: public
 change_tag:
-  job: changetagstable
+  job: changetags
   description: List of annotations (tags) for revisions and log entries
   type: public
 flaggedpages:
-  job: flaggedpagestable
+  job: flaggedpages
   description: This contains a row for each flagged article containing the 
stable revision ID, if the lastest edit was flagged, and how long edits have 
been pending.
 flaggedrevs:
-  job: flaggedrevstable
+  job: flaggedrevs
   description: This contains a row for each flagged revision containing 
who flagged it, when it was flagged, reviewer comments, the flag values, and 
the quality tier those flags fall under.
 wb_items_per_site:
-  job: wbitemspersitetable
+  job: wbitemspersite
   description: For each W