Mobrovac has uploaded a new change for review. https://gerrit.wikimedia.org/r/268858
Change subject: Add the revision_create event ...................................................................... Add the revision_create event We have decided that we will follow all revision creation events, not just page edits. This new scheme reflects that. Differences from page_edit: - renamed title to page_title - renamed namespace to page_namespace - renamed parent_revision_id to parent_id - renamed save_dt to rev_timestamp - renamed summary to comment Note: this schema will supersede page_edit, but we cannot remove it right away as we first need to switch the extension and the http proxy to use this one. Bug: T124741 Change-Id: Iaa3044dbda30a45d2b38a6a8b4a22dbf0efc90f8 --- A jsonschema/mediawiki/revision_create/1.yaml 1 file changed, 81 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/event-schemas refs/changes/58/268858/1 diff --git a/jsonschema/mediawiki/revision_create/1.yaml b/jsonschema/mediawiki/revision_create/1.yaml new file mode 100644 index 0000000..e2ec9f6 --- /dev/null +++ b/jsonschema/mediawiki/revision_create/1.yaml @@ -0,0 +1,81 @@ +title: MediaWiki Revision Creation +description: Represents a MW Revision Creation event +$schema: http://json-schema.org/draft-04/schema# +type: object +properties: + # global event fields + meta: + type: object + properties: + topic: + type: string + description: the queue topic name this message belongs to + schema_uri: + type: string + 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 + description: the unique URI identifying the event + request_id: + type: string + pattern: '^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$' + description: the unique UUID v1 ID of the event derived from the X-Request-Id header + id: + type: string + pattern: '^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$' + description: the unique ID of this event; should match the dt field + dt: + type: string + format: date-time + description: the time stamp of the event, in ISO8601 format + domain: + type: string + description: the domain the event pertains to + required: + - topic + - uri + - id + - dt + - domain + # event-specific fields + page_title: + type: string + description: the title of the affected page + page_id: + type: integer + minimum: 1 + description: the page ID of the affected page + page_namespace: + type: integer + description: the namespace ID the page belongs to + revision_id: + type: integer + minimum: 1 + description: the revision ID created by this event + parent_id: + type: integer + minimum: 1 + description: the revision ID that this newly-created revision is based on + rev_timestamp: + type: string + format: date-time + description: the time stamp of the revision in ISO8601 format + user_id: + type: integer + description: the user that performed the edit + user_text: + type: string + description: the text representation of the user + comment: + type: string + description: the summary comment left by the user +required: + - meta + - page_title + - revision_id + - rev_timestamp -- To view, visit https://gerrit.wikimedia.org/r/268858 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iaa3044dbda30a45d2b38a6a8b4a22dbf0efc90f8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/event-schemas Gerrit-Branch: master Gerrit-Owner: Mobrovac <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
