Last modified: 2014-02-20 11:19:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63131, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61131 - Eliminate or reduce delay between selection of property and displaying of input fields when adding statements
Eliminate or reduce delay between selection of property and displaying of inp...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on: 54098
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-10 09:17 UTC by Yair Rand
Modified: 2014-02-20 11:19 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yair Rand 2014-02-10 09:17:22 UTC
When adding a statement to an item, there is a substantial delay in between when a property is selected and when the text field is available for filling in. This makes it difficult to quickly add many statements.

Presumably, the delay is caused by the system needing to retrieve the data type of the property so that it can figure out how the field is supposed to work. Perhaps it would speed things up if the autocomplete system for properties was retrieving the datatype at the same time as the label and description.
Comment 1 Thiemo Mättig 2014-02-17 19:16:43 UTC
When choosing a property there is a single, pretty simple "wbgetentities" API call triggered. At the moment I don't see a reason why this should cause a "substantial" delay other than what an API call usually causes.

The previous autocomplete call ("wbsearchentities") doesn't include the required information. Example response: {"id":"P46","url":"http://localhost/repowiki/index.php/Property:P46","label":"Parent"}. I don't think it's a good idea to change this.

A possible solution would be to use the fetchedEntities local store to avoid these API calls if the property is already in the store. Currently the API is always requested and the store is never used (but the API calls result is put in the store). Not sure if this is a good idea. When will an outdated property in the store be invalidated?
Comment 2 Yair Rand 2014-02-20 04:43:39 UTC
Another option might be to just display a simple text field immediately, and only add the various additional datatype-dependent stuff after the datatype retrieval is finished.
Comment 3 Thiemo Mättig 2014-02-20 11:19:53 UTC
(In reply to Yair Rand from comment #2)
> display a simple text field immediately

Good idea, I will keep that in mind. Another idea is to put the data needed into data values in the DOM and use that instead of querying the API. But this depends on how we fix bug 54098.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links