daniel added a comment.
There are several places where the "on the fly" creation could be handled: 1. in the client side JS code. It would know when an entity needs to be created with an extra call to wbeditentity before saving an edit. 2. in the API module (more precisely, the ModifyEntity base class). 3. in the EditEntity interactor. 4. in the EntityStore. 5. in the EntityRevisionLookup, on read, if in a POST request. I personally tend towards doing this in the API, but there are good arguments for the other places, too. In particular, it's still unclear to me where we should maintain the knowledge about which entity types can be created on the fly, and which can't. We should further consider whether we want to treat a MediaInfo entity as "existing" (in the context of EntityLookup, Special:EntityData, wbgetentities API calls, etc), when the corresponding File page exists, but no page was yet created for the MediaInfo entity. TASK DETAIL https://phabricator.wikimedia.org/T134259 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: daniel Cc: daniel, Aklapper, Tobi_WMDE_SW, Zppix, D3r1ck01, Izno, Wikidata-bugs, aude, Ricordisamoa, Mbch331 _______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
