Bugreporter created this task.
Bugreporter added projects: Wikidata, MediaWiki-extensions-WikibaseRepository.
Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION
Currently (part of) the workflow of adding a statement of item datatype is:
...
- When a property of item datatype is selected, we show an entity selector
allow users selecting value
- (optionally) some values are suggested via property constraints
- Users input a label or entity ID/URL
- wbsearchentities is called to find a list of candidate entities which is
displayed to users
- User select one entity
- wbparsevalue is called to parse the value
- Publish button is enabled
- wbformatvalue is called
Proposed new workflow (in addition to the current one):
- User input an entity ID or URL
- Case-insensitive match the (leading/trailing spaces trimmed) input with one
of the following format (example for item, should be adjusted for other entity
types):
- `Q###`
- `https://www.wikidata.org/wiki/Q###`
- `http://www.wikidata.org/entity/Q###`
- `https://www.wikidata.org/wiki/Special:EntityPage/Q###`
- (optional) `xxx (Q###)`
- If a match is found, enable publish button to allow user to use such
selected ID
Benefit:
1. This saves one mouse click
2. As we no longer need to wait for wbsearchentities and wbparsevalue
returning, this speed up the edit process (especially when using a
low-bandwidth or high-latency network)
Note:
1. All process are done client-side. There is no check for whether the entity
exists, since save will fail if an invalid entity ID is used so no invalid data
will be even saved
2. For a federated Wikibase instance the URL will still refer to an unique
entity. The ID will refer to an unique entity only if for that entity type
(e.g. item) only one repo is used. If multiple repo are used we need to define
a default one
TASK DETAIL
https://phabricator.wikimedia.org/T325476
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Bugreporter
Cc: Aklapper, Bugreporter, Astuthiodit_1, karapayneWMDE, Invadibot,
maantietaja, ItamarWMDE, Akuckartz, Nandana, lucamauri, Lahi, Gq86,
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS,
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]