mw.wikibase.getEntity lua function, activated by T223792 to work with Structured Data on Commons (SDC) returns SDC entity. The best way to view it is by mw.dumpObject function. The output of mw.dumpObject|mw.dumpObject (with collapsed "statements" table) for File:Indoor_Climbing_Kid.jpg (M4184419) is
`table#1 {
metatable = table#2 ["id"] = "M4184419", ["labels"] = table#3 { metatable = table#4 ["en"] = table#5 { ["language"] = "en", ["value"] = "A five year old hanging around bouldering wall in Sportrock climbing gym in Alexandria, Virginia, USA", }, }, ["schemaVersion"] = 2, ["statements"] = table#6 { ... }, ["type"] = "mediainfo",
}`
which is correct as the file has only English caption. That changes when I switch my language from English to Polish and than I get
`table#1 {
metatable = table#2 ["id"] = "M4184419", ["labels"] = table#3 { metatable = table#4 ["en"] = table#5 { ["language"] = "en", ["value"] = "A five year old hanging around bouldering wall in Sportrock climbing gym in Alexandria, Virginia, USA", }, ["pl"] = table#6 { ["language"] = "en", ["value"] = "A five year old hanging around bouldering wall in Sportrock climbing gym in Alexandria, Virginia, USA", }, }, ["schemaVersion"] = 2, ["statements"] = table#7 { ... }, ["type"] = "mediainfo",
}`
The entity returned should not depend on user's language.
COVID-19 Deployment Criteria
- Can you roll back this change without lasting impact?
- A recovery plan is required as this will help identify our capacity for recovering from the failure
- THIS IS A KEY QUESTION, if you can’t answer it, you shouldn’t deploy
- Is specialized knowledge required to support this change in production? If so, are there multiple people with this knowledge?
- Is there a way to increase confidence about the correctness of this change?
- Reviews (Design, Code, etc)
- Testing coverage (unit tests, integration tests)
- Manual testing (e.g. Beta, vagrant, docker)