Description
Since deploying new Wikidata-based types Wikidata quantity, Wikidata geo-coordinate, and Wikidata time, we are getting frequent but intermittent occurrences of "Something went wrong. Please try again.", in the display of a retrieved Wikidata item. These messages appear to be from failures of calls to display functions for types Rational number, Natural number, and Integer.
Steps to reproduce:
- Go to Fetch Wikidata item
- Under Try this function, enter "Hickory" and select the item for city in Catawba County, North Carolina.
- Click Run function, Wait for the result to appear, then click the Chevron to expand the result.
- Wait for the expansion to draw; with the current code base it may take a few seconds.
- Scroll down the presentation and look for these messages, in bold red: Something went wrong. Please try again.
Observed behavior:
Every time I retrieve this particular Wikidata item, I always see several of these messages, but their appearance is intermittent. They show up where one expects to see the output of the display function for Rational number, Natural number, Integer, Day of Roman year, or Gregorian calendar date. Sometimes they show up and sometimes not, for the same data elements. I haven't examined the relevant display functions, but the intermediate behavior makes me think there may be a timing / concurrency / network issue going on here. I also suspect it's related to the size of the retrieved Wikidata entity, because I have successfully retrieved smaller entities where no errors occurred.
For Day of Roman year and Gregorian calendar date, it's possible the display functions need to be fixed to handle new conventions for unknown values, but The display function should be okay for the other types mentioned above, because these errors occur when the value is a legitimate 0.
It's probably wise to work on this after the deployment of the performance improvements, work currently underway, in the WikiLambda UI. However, something interesting could be learned by looking at it now, with the current presentation code which can be quite slow.
Expected behavior (Acceptance criteria):
- The errors should not occur (except possibly for Day of Roman year and Gregorian calendar date, as explained above).
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist

