[MediaWiki-commits] [Gerrit] Renamed schema files to not use camel case, and to have revi... - change (mediawiki/event-schemas)

2015-12-02 Thread Mobrovac (Code Review)
Mobrovac has submitted this change and it was merged.

Change subject: Renamed schema files to not use camel case, and to have 
revisions in filenames, also added schema_uri
..


Renamed schema files to not use camel case, and to have revisions in filenames, 
also added schema_uri

schema_uri is now used to tag an event with its jsonschema, instead of schema 
name and revision fields.
schema_uris can be any URI, but the path must end in /.

Change-Id: I715c6be273465bfe8455903406f9816155cefe80
---
R jsonschema/mediawiki/page_delete/1.yaml
R jsonschema/mediawiki/page_edit/1.yaml
R jsonschema/mediawiki/page_move/1.yaml
R jsonschema/mediawiki/page_restore/1.yaml
R jsonschema/mediawiki/revision_visibility_set/1.yaml
5 files changed, 30 insertions(+), 25 deletions(-)

Approvals:
  Mobrovac: Verified; Looks good to me, approved



diff --git a/jsonschema/mediawiki/PageDelete/PageDelete.yaml 
b/jsonschema/mediawiki/page_delete/1.yaml
similarity index 83%
rename from jsonschema/mediawiki/PageDelete/PageDelete.yaml
rename to jsonschema/mediawiki/page_delete/1.yaml
index be7f827..56008d9 100644
--- a/jsonschema/mediawiki/PageDelete/PageDelete.yaml
+++ b/jsonschema/mediawiki/page_delete/1.yaml
@@ -10,12 +10,13 @@
   topic:
 type: string
 description: the queue topic name this message belongs to
-  schema:
+  schema_uri:
 type: string
-description: The name of this schema
-  revision:
-type: integer
-description: The revision of this schema
+description: >
+  The URI identifying the jsonschema for this event.  This may be just
+  a short uri containing only the name and revision at the end of the
+  URI path.  e.g. schema_name/12345 is acceptable.  This field
+  is not required.
   uri:
 type: string
 format: uri
diff --git a/jsonschema/mediawiki/PageEdit/PageEdit.yaml 
b/jsonschema/mediawiki/page_edit/1.yaml
similarity index 86%
rename from jsonschema/mediawiki/PageEdit/PageEdit.yaml
rename to jsonschema/mediawiki/page_edit/1.yaml
index a994cf9..f96d1f5 100644
--- a/jsonschema/mediawiki/PageEdit/PageEdit.yaml
+++ b/jsonschema/mediawiki/page_edit/1.yaml
@@ -10,12 +10,13 @@
   topic:
 type: string
 description: the queue topic name this message belongs to
-  schema:
+  schema_uri:
 type: string
-description: The name of this schema
-  revision:
-type: integer
-description: The revision of this schema
+description: >
+  The URI identifying the jsonschema for this event.  This may be just
+  a short uri containing only the name and revision at the end of the
+  URI path.  e.g. schema_name/12345 is acceptable.  This field
+  is not required.
   uri:
 type: string
 format: uri
diff --git a/jsonschema/mediawiki/PageMove/PageMove.yaml 
b/jsonschema/mediawiki/page_move/1.yaml
similarity index 85%
rename from jsonschema/mediawiki/PageMove/PageMove.yaml
rename to jsonschema/mediawiki/page_move/1.yaml
index b7ac73a..990da50 100644
--- a/jsonschema/mediawiki/PageMove/PageMove.yaml
+++ b/jsonschema/mediawiki/page_move/1.yaml
@@ -10,12 +10,13 @@
   topic:
 type: string
 description: the queue topic name this message belongs to
-  schema:
+  schema_uri:
 type: string
-description: The name of this schema
-  revision:
-type: integer
-description: The revision of this schema
+description: >
+  The URI identifying the jsonschema for this event.  This may be just
+  a short uri containing only the name and revision at the end of the
+  URI path.  e.g. schema_name/12345 is acceptable.  This field
+  is not required.
   uri:
 type: string
 format: uri
diff --git a/jsonschema/mediawiki/PageRestore/PageRestore.yaml 
b/jsonschema/mediawiki/page_restore/1.yaml
similarity index 85%
rename from jsonschema/mediawiki/PageRestore/PageRestore.yaml
rename to jsonschema/mediawiki/page_restore/1.yaml
index 176e41e..2a7c766 100644
--- a/jsonschema/mediawiki/PageRestore/PageRestore.yaml
+++ b/jsonschema/mediawiki/page_restore/1.yaml
@@ -10,12 +10,13 @@
   topic:
 type: string
 description: the queue topic name this message belongs to
-  schema:
+  schema_uri:
 type: string
-description: The name of this schema
-  revision:
-type: integer
-description: The revision of this schema
+description: >
+  The URI identifying the jsonschema for this event.  This may be just
+  a short uri containing only the name and revision at the end of the
+  URI path.  e.g. schema_name/12345 is acceptable.  This field
+  is not required.
   uri:
 type: string
 format: uri
diff --git 

[MediaWiki-commits] [Gerrit] Renamed schema files to not use camel case, and to have revi... - change (mediawiki/event-schemas)

2015-12-02 Thread Ottomata (Code Review)
Ottomata has uploaded a new change for review.

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

Change subject: Renamed schema files to not use camel case, and to have 
revisions in filenames, also added schema_uri
..

Renamed schema files to not use camel case, and to have revisions in filenames, 
also added schema_uri

schema_uri is now used to tag an event with its jsonschema, instead of schema 
name and revision fields.
schema_uris can be any URI, but the path must end in /.

Change-Id: I715c6be273465bfe8455903406f9816155cefe80
---
R jsonschema/mediawiki/page_delete/1.yaml
R jsonschema/mediawiki/page_edit/1.yaml
R jsonschema/mediawiki/page_move/1.yaml
R jsonschema/mediawiki/page_restore/1.yaml
R jsonschema/mediawiki/revision_visibility_set/1.yaml
5 files changed, 30 insertions(+), 25 deletions(-)


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

diff --git a/jsonschema/mediawiki/PageDelete/PageDelete.yaml 
b/jsonschema/mediawiki/page_delete/1.yaml
similarity index 83%
rename from jsonschema/mediawiki/PageDelete/PageDelete.yaml
rename to jsonschema/mediawiki/page_delete/1.yaml
index be7f827..56008d9 100644
--- a/jsonschema/mediawiki/PageDelete/PageDelete.yaml
+++ b/jsonschema/mediawiki/page_delete/1.yaml
@@ -10,12 +10,13 @@
   topic:
 type: string
 description: the queue topic name this message belongs to
-  schema:
+  schema_uri:
 type: string
-description: The name of this schema
-  revision:
-type: integer
-description: The revision of this schema
+description: >
+  The URI identifying the jsonschema for this event.  This may be just
+  a short uri containing only the name and revision at the end of the
+  URI path.  e.g. schema_name/12345 is acceptable.  This field
+  is not required.
   uri:
 type: string
 format: uri
diff --git a/jsonschema/mediawiki/PageEdit/PageEdit.yaml 
b/jsonschema/mediawiki/page_edit/1.yaml
similarity index 86%
rename from jsonschema/mediawiki/PageEdit/PageEdit.yaml
rename to jsonschema/mediawiki/page_edit/1.yaml
index a994cf9..f96d1f5 100644
--- a/jsonschema/mediawiki/PageEdit/PageEdit.yaml
+++ b/jsonschema/mediawiki/page_edit/1.yaml
@@ -10,12 +10,13 @@
   topic:
 type: string
 description: the queue topic name this message belongs to
-  schema:
+  schema_uri:
 type: string
-description: The name of this schema
-  revision:
-type: integer
-description: The revision of this schema
+description: >
+  The URI identifying the jsonschema for this event.  This may be just
+  a short uri containing only the name and revision at the end of the
+  URI path.  e.g. schema_name/12345 is acceptable.  This field
+  is not required.
   uri:
 type: string
 format: uri
diff --git a/jsonschema/mediawiki/PageMove/PageMove.yaml 
b/jsonschema/mediawiki/page_move/1.yaml
similarity index 85%
rename from jsonschema/mediawiki/PageMove/PageMove.yaml
rename to jsonschema/mediawiki/page_move/1.yaml
index b7ac73a..990da50 100644
--- a/jsonschema/mediawiki/PageMove/PageMove.yaml
+++ b/jsonschema/mediawiki/page_move/1.yaml
@@ -10,12 +10,13 @@
   topic:
 type: string
 description: the queue topic name this message belongs to
-  schema:
+  schema_uri:
 type: string
-description: The name of this schema
-  revision:
-type: integer
-description: The revision of this schema
+description: >
+  The URI identifying the jsonschema for this event.  This may be just
+  a short uri containing only the name and revision at the end of the
+  URI path.  e.g. schema_name/12345 is acceptable.  This field
+  is not required.
   uri:
 type: string
 format: uri
diff --git a/jsonschema/mediawiki/PageRestore/PageRestore.yaml 
b/jsonschema/mediawiki/page_restore/1.yaml
similarity index 85%
rename from jsonschema/mediawiki/PageRestore/PageRestore.yaml
rename to jsonschema/mediawiki/page_restore/1.yaml
index 176e41e..2a7c766 100644
--- a/jsonschema/mediawiki/PageRestore/PageRestore.yaml
+++ b/jsonschema/mediawiki/page_restore/1.yaml
@@ -10,12 +10,13 @@
   topic:
 type: string
 description: the queue topic name this message belongs to
-  schema:
+  schema_uri:
 type: string
-description: The name of this schema
-  revision:
-type: integer
-description: The revision of this schema
+description: >
+  The URI identifying the jsonschema for this event.  This may be just
+  a short uri containing only the name and revision at the end of the
+  URI path.  e.g. schema_name/12345 is acceptable.  This field
+  is not required.
   uri:
 type: string