Jcrespo has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/351194 )

Change subject: Add the possibility of filter root and dump user requests
......................................................................

Add the possibility of filter root and dump user requests

Change-Id: Iba59d97d2d26cd9fd1db47fd5c90dd75a8018b76
---
M pkg/activity.php
M tpl/activity/list.php
2 files changed, 15 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/software/tendril 
refs/changes/94/351194/1

diff --git a/pkg/activity.php b/pkg/activity.php
index 788453a..d50d798 100644
--- a/pkg/activity.php
+++ b/pkg/activity.php
@@ -26,7 +26,7 @@
             ->where_eq('p.command', 'Query')
             ->order('p.time', 'desc');
 
-        foreach (array('wikiadmin', 'wikiuser') as $user)
+        foreach (array('wikiadmin', 'wikiuser', 'root', 'dump') as $user)
         {
             if ($this->request($user, 'uint', 1) === 0)
             {
@@ -55,4 +55,4 @@
 
         return array( $processlist, $dns );
     }
-}
\ No newline at end of file
+}
diff --git a/tpl/activity/list.php b/tpl/activity/list.php
index e8acf26..bf9a4be 100644
--- a/tpl/activity/list.php
+++ b/tpl/activity/list.php
@@ -28,6 +28,18 @@
         </td>
         <td>
             <label>
+                <input type="checkbox" name="root" value="0" <?= 
pkg()->request('root', 'uint', 1) === 0 ? 'checked':'' ?> />
+                <span>root</span>
+            </label>
+        </td>
+        <td>
+            <label>
+                <input type="checkbox" name="dump" value="0" <?= 
pkg()->request('dump', 'uint', 1) === 0 ? 'checked':'' ?> />
+                <span>dump</span>
+            </label>
+        </td>
+        <td>
+            <label>
                 <input type="checkbox" name="wikiadmin" value="0" <?= 
pkg()->request('wikiadmin', 'uint', 1) === 0 ? 'checked':'' ?> />
                 <span>wikiadmin</span>
             </label>
@@ -140,4 +152,4 @@
 
 ?>
 
-</table>
\ No newline at end of file
+</table>

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba59d97d2d26cd9fd1db47fd5c90dd75a8018b76
Gerrit-PatchSet: 1
Gerrit-Project: operations/software/tendril
Gerrit-Branch: master
Gerrit-Owner: Jcrespo <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to