ArielGlenn has submitted this change and it was merged.

Change subject: add job that dumps history of flow pages
......................................................................


add job that dumps history of flow pages

Bug: T89398
Change-Id: Ib5cb869812c19e2d971f82f796df769709b8dde9
---
M xmldumps-backup/dumps/flowjob.py
M xmldumps-backup/dumps/runner.py
2 files changed, 10 insertions(+), 2 deletions(-)

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



diff --git a/xmldumps-backup/dumps/flowjob.py b/xmldumps-backup/dumps/flowjob.py
index 80d0100..739cd68 100644
--- a/xmldumps-backup/dumps/flowjob.py
+++ b/xmldumps-backup/dumps/flowjob.py
@@ -11,7 +11,8 @@
 class FlowDump(Dump):
     """Dump the flow pages."""
 
-    def __init__(self, name, desc):
+    def __init__(self, name, desc, history=False):
+        self.history = history
         Dump.__init__(self, name, desc)
 
     def detail(self):
@@ -24,7 +25,10 @@
         return "bz2"
 
     def get_dumpname(self):
-        return 'flow'
+        if self.history:
+            return 'flowhistory'
+        else:
+            return 'flow'
 
     def run(self, runner):
         self.cleanup_old_files(runner.dump_dir, runner)
@@ -44,6 +48,8 @@
         command.extend(["--wiki=%s" % runner.db_name,
                         "--current", "--report=1000",
                         "--output=bzip2:%s" % flow_output_file])
+        if self.history:
+            command.append("--full")
 
         pipeline = [command]
         series = [pipeline]
diff --git a/xmldumps-backup/dumps/runner.py b/xmldumps-backup/dumps/runner.py
index e3c250d..e56c86f 100644
--- a/xmldumps-backup/dumps/runner.py
+++ b/xmldumps-backup/dumps/runner.py
@@ -266,6 +266,8 @@
 
         self.append_job_if_needed(
             FlowDump("xmlflowdump", "content of flow pages in xml format"))
+        self.append_job_if_needed(
+            FlowDump("xmlflowhistorydump", "history content of flow pages in 
xml format"), True)
 
         self.dump_items.append(
             BigXmlDump(

-- 
To view, visit https://gerrit.wikimedia.org/r/295587
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5cb869812c19e2d971f82f796df769709b8dde9
Gerrit-PatchSet: 3
Gerrit-Project: operations/dumps
Gerrit-Branch: master
Gerrit-Owner: ArielGlenn <ar...@wikimedia.org>
Gerrit-Reviewer: ArielGlenn <ar...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to