Sbisson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/312274
Change subject: Adding fields needed by the ERI project
......................................................................
Adding fields needed by the ERI project
user_edit_count
user_registration
rev_bytes_changes
page_edit_protection
page_is_disambiguation
Bug: T145164
Change-Id: I05172ae9587a3c6ab6ff0f47a4ed7c5cb367379d
---
M jsonschema/mediawiki/page/delete/1.yaml
M jsonschema/mediawiki/page/move/1.yaml
M jsonschema/mediawiki/page/undelete/1.yaml
M jsonschema/mediawiki/revision/create/1.yaml
M jsonschema/mediawiki/revision/visibility-change/1.yaml
M jsonschema/mediawiki/user/blocks-change/1.yaml
M test/jsonschema/mediawiki/page/mediawiki_common_schema.yaml
M test/jsonschema/mediawiki/revision/mediawiki_common_schema.yaml
M test/jsonschema/mediawiki/revision/revision_common_schema.yaml
M test/jsonschema/mediawiki/user/mediawiki_common_schema.yaml
10 files changed, 117 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/event-schemas
refs/changes/74/312274/1
diff --git a/jsonschema/mediawiki/page/delete/1.yaml
b/jsonschema/mediawiki/page/delete/1.yaml
index b85d334..37810df 100644
--- a/jsonschema/mediawiki/page/delete/1.yaml
+++ b/jsonschema/mediawiki/page/delete/1.yaml
@@ -72,6 +72,17 @@
via the $user->isBot() method, which considers both user_groups
and user permissions.
type: boolean
+ user_edit_count:
+ description: >
+ Number of edits by this user. This is optional, and will not be
+ present for anonymous users.
+ type: integer
+ user_registration:
+ description: >
+ Registration date and time for this user. This is optional, and will
not be
+ present for anonymous users.
+ type: string
+ format: date-time
required:
- user_text
- user_groups
diff --git a/jsonschema/mediawiki/page/move/1.yaml
b/jsonschema/mediawiki/page/move/1.yaml
index 5df9cae..db516f9 100644
--- a/jsonschema/mediawiki/page/move/1.yaml
+++ b/jsonschema/mediawiki/page/move/1.yaml
@@ -72,6 +72,17 @@
via the $user->isBot() method, which considers both user_groups
and user permissions.
type: boolean
+ user_edit_count:
+ description: >
+ Number of edits by this user. This is optional, and will not be
+ present for anonymous users.
+ type: integer
+ user_registration:
+ description: >
+ Registration date and time for this user. This is optional, and will
not be
+ present for anonymous users.
+ type: string
+ format: date-time
required:
- user_text
- user_groups
diff --git a/jsonschema/mediawiki/page/undelete/1.yaml
b/jsonschema/mediawiki/page/undelete/1.yaml
index e341b5d..6a65beb 100644
--- a/jsonschema/mediawiki/page/undelete/1.yaml
+++ b/jsonschema/mediawiki/page/undelete/1.yaml
@@ -72,6 +72,17 @@
via the $user->isBot() method, which considers both user_groups
and user permissions.
type: boolean
+ user_edit_count:
+ description: >
+ Number of edits by this user. This is optional, and will not be
+ present for anonymous users.
+ type: integer
+ user_registration:
+ description: >
+ Registration date and time for this user. This is optional, and will
not be
+ present for anonymous users.
+ type: string
+ format: date-time
required:
- user_text
- user_groups
diff --git a/jsonschema/mediawiki/revision/create/1.yaml
b/jsonschema/mediawiki/revision/create/1.yaml
index b246118..32ae78d 100644
--- a/jsonschema/mediawiki/revision/create/1.yaml
+++ b/jsonschema/mediawiki/revision/create/1.yaml
@@ -73,6 +73,17 @@
via the $user->isBot() method, which considers both user_groups
and user permissions.
type: boolean
+ user_edit_count:
+ description: >
+ Number of edits by this user. This is optional, and will not be
+ present for anonymous users.
+ type: integer
+ user_registration:
+ description: >
+ Registration date and time for this user. This is optional, and will
not be
+ present for anonymous users.
+ type: string
+ format: date-time
required:
- user_text
- user_groups
@@ -96,6 +107,15 @@
page_namespace:
description: The namespace of the page this revision belongs to.
type: integer
+
+ page_edit_protection:
+ description: >
+ Edit protection level of the page. Not present if the page is not
protected.
+ type: string
+
+ page_is_disambiguation:
+ description: Flag identifying if this is a disambiguation page.
+ type: boolean
rev_id:
description: The revision ID created by this event
@@ -123,6 +143,12 @@
description: The length of the revision text in bytes.
type: integer
+ rev_bytes_changed:
+ description: >
+ The difference in bytes with the previous revision. It is equal
+ to rev_len if it is the first revision.
+ type: integer
+
rev_minor_edit:
description: Flag identifying if the revision is minor.
type: boolean
diff --git a/jsonschema/mediawiki/revision/visibility-change/1.yaml
b/jsonschema/mediawiki/revision/visibility-change/1.yaml
index b0c068b..74ddb84 100644
--- a/jsonschema/mediawiki/revision/visibility-change/1.yaml
+++ b/jsonschema/mediawiki/revision/visibility-change/1.yaml
@@ -72,6 +72,17 @@
via the $user->isBot() method, which considers both user_groups
and user permissions.
type: boolean
+ user_edit_count:
+ description: >
+ Number of edits by this user. This is optional, and will not be
+ present for anonymous users.
+ type: integer
+ user_registration:
+ description: >
+ Registration date and time for this user. This is optional, and will
not be
+ present for anonymous users.
+ type: string
+ format: date-time
required:
- user_text
- user_groups
@@ -95,6 +106,15 @@
page_namespace:
description: The namespace of the page this revision belongs to.
type: integer
+
+ page_edit_protection:
+ description: >
+ Edit protection level of the page. Not present if the page is not
protected.
+ type: string
+
+ page_is_disambiguation:
+ description: Flag identifying if this is a disambiguation page.
+ type: boolean
rev_id:
description: The revision ID created by this event
@@ -122,6 +142,12 @@
description: The length of the revision text in bytes.
type: integer
+ rev_bytes_changed:
+ description: >
+ The difference in bytes with the previous revision. It is equal
+ to rev_len if it is the first revision.
+ type: integer
+
rev_minor_edit:
description: Flag identifying if the revision is minor.
type: boolean
diff --git a/jsonschema/mediawiki/user/blocks-change/1.yaml
b/jsonschema/mediawiki/user/blocks-change/1.yaml
index f67a7a4..d9e42b1 100644
--- a/jsonschema/mediawiki/user/blocks-change/1.yaml
+++ b/jsonschema/mediawiki/user/blocks-change/1.yaml
@@ -72,6 +72,17 @@
via the $user->isBot() method, which considers both user_groups
and user permissions.
type: boolean
+ user_edit_count:
+ description: >
+ Number of edits by this user. This is optional, and will not be
+ present for anonymous users.
+ type: integer
+ user_registration:
+ description: >
+ Registration date and time for this user. This is optional, and will
not be
+ present for anonymous users.
+ type: string
+ format: date-time
required:
- user_text
- user_groups
diff --git a/test/jsonschema/mediawiki/page/mediawiki_common_schema.yaml
b/test/jsonschema/mediawiki/page/mediawiki_common_schema.yaml
index 86ac6da..e2dba44 100644
--- a/test/jsonschema/mediawiki/page/mediawiki_common_schema.yaml
+++ b/test/jsonschema/mediawiki/page/mediawiki_common_schema.yaml
@@ -20,6 +20,11 @@
type: string
user_is_bot:
type: boolean
+ user_edit_count:
+ type: integer
+ user_registration:
+ type: string
+ format: date-time
required:
- user_text
- user_groups
diff --git a/test/jsonschema/mediawiki/revision/mediawiki_common_schema.yaml
b/test/jsonschema/mediawiki/revision/mediawiki_common_schema.yaml
index 86ac6da..e2dba44 100644
--- a/test/jsonschema/mediawiki/revision/mediawiki_common_schema.yaml
+++ b/test/jsonschema/mediawiki/revision/mediawiki_common_schema.yaml
@@ -20,6 +20,11 @@
type: string
user_is_bot:
type: boolean
+ user_edit_count:
+ type: integer
+ user_registration:
+ type: string
+ format: date-time
required:
- user_text
- user_groups
diff --git a/test/jsonschema/mediawiki/revision/revision_common_schema.yaml
b/test/jsonschema/mediawiki/revision/revision_common_schema.yaml
index f677ac6..59da220 100644
--- a/test/jsonschema/mediawiki/revision/revision_common_schema.yaml
+++ b/test/jsonschema/mediawiki/revision/revision_common_schema.yaml
@@ -14,6 +14,12 @@
page_namespace:
type: integer
+ page_edit_protection:
+ type: string
+
+ page_is_disambiguation:
+ type: boolean
+
rev_id:
type: integer
minimum: 0
diff --git a/test/jsonschema/mediawiki/user/mediawiki_common_schema.yaml
b/test/jsonschema/mediawiki/user/mediawiki_common_schema.yaml
index 86ac6da..e2dba44 100644
--- a/test/jsonschema/mediawiki/user/mediawiki_common_schema.yaml
+++ b/test/jsonschema/mediawiki/user/mediawiki_common_schema.yaml
@@ -20,6 +20,11 @@
type: string
user_is_bot:
type: boolean
+ user_edit_count:
+ type: integer
+ user_registration:
+ type: string
+ format: date-time
required:
- user_text
- user_groups
--
To view, visit https://gerrit.wikimedia.org/r/312274
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I05172ae9587a3c6ab6ff0f47a4ed7c5cb367379d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/event-schemas
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits