Jakob_WMDE created this task. Jakob_WMDE added a project: Wikidata Query Builder. Restricted Application added a subscriber: Aklapper. Restricted Application added a project: Wikidata.
TASK DESCRIPTION The Item and Property selectors currently make one API request per keystroke, no matter the typing speed. This sends too many unnecessary requests to the API, and can lead to strange behavior when an earlier request takes longer than the last. The method performing the requests triggered by the user input should be debounced, i.e. only make requests when user stops typing for a reasonable amount of time, some hundred millisecond usually. This appeared to be the main cause for the browser tests to be flaky in the recent browser testing experiment <https://github.com/wmde/query-builder/pull/177>. This picture shows the requests made by the browser test. It enters one key every 10ms which is faster than humans type and definitely shouldn't trigger one req per keystroke. F34092072: Screenshot from 2021-02-04 11-50-13.png <https://phabricator.wikimedia.org/F34092072> TASK DETAIL https://phabricator.wikimedia.org/T273868 WORKBOARD https://phabricator.wikimedia.org/project/board/4990/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jakob_WMDE Cc: Aklapper, Jakob_WMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs