Ottomata added a subscriber: Nuria.
Ottomata added a comment.

@gwicke and I discussed the schema/revision in meta issue in IRC today. He had 
an idea that I quite like!

@gwicke suggested that instead of using (schema, revision) to uniquely ID a 
schema, that we just use a URI.  EventLogging does this already with schemas 
stored in meta.wikmedia.org, but the URI resolution is done behind the scenes.  
Explicitly setting meta.schema to a URI in each event allows us to easily look 
up a schema outside of any EventLogging/EventBus context.  I believe it would 
be easy to support this in EventLogging code as long as extracting the schema 
name and revision from the URI is standardized.  Whatever the URI is, its last 
two path elements should be name/revision, e.g. 
`.../schemas/jsonschema/{title}/{rev}`.

This would certainly solve the issues that @nuria and I had about not including 
schema ids in the events.

Thoughts?  I'll look into the implementation of this tomorrow to make sure 
there isn't something that would make this difficult.


TASK DETAIL
  https://phabricator.wikimedia.org/T116247

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: mobrovac, Ottomata
Cc: Nuria, gerritbot, intracer, EBernhardson, Smalyshev, yuvipanda, Hardikj, 
daniel, aaron, GWicke, mobrovac, MZMcBride, bd808, JanZerebecki, Halfak, 
Krenair, brion, chasemp, Eevans, mmodell, Ottomata, Matanya, Aklapper, 
JAllemandou, jkroll, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, 
RobLa-WMF, Mbch331, jeremyb



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to