Ppchelko has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/295494

Change subject: Add is_bot flag to the schema
......................................................................

Add is_bot flag to the schema

For ORES precaching updates in change-propagation we need to
exclude revisions created by bots, so the event shold contain
this information.

Change-Id: Id9b0f9dd31bc995420d5904c79d990e7d67a1969
---
M jsonschema/mediawiki/revision_create/1.yaml
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/event-schemas 
refs/changes/94/295494/1

diff --git a/jsonschema/mediawiki/revision_create/1.yaml 
b/jsonschema/mediawiki/revision_create/1.yaml
index 36fbf2d..ddf7469 100644
--- a/jsonschema/mediawiki/revision_create/1.yaml
+++ b/jsonschema/mediawiki/revision_create/1.yaml
@@ -74,8 +74,15 @@
   comment:
     type: string
     description: the summary comment left by the user
+  rev_is_bot:
+    type: boolean
+    description: flag identifying if the revision is made by a bot
 required:
   - meta
   - page_title
   - rev_id
   - rev_timestamp
+# After deploying https://gerrit.wikimedia.org/r/#/c/288210/9 we would need to 
do a non-backwards-compatible
+# change of the schema anyway, so make the rev_is_bot flag optional for now 
and uncomment together with other
+# backwards incompatible changes.
+# - rev_is_bot
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id9b0f9dd31bc995420d5904c79d990e7d67a1969
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/event-schemas
Gerrit-Branch: master
Gerrit-Owner: Ppchelko <ppche...@wikimedia.org>

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

Reply via email to