When a user adds a value to a statement, a call to wbparsevalue is made and could return an error (the most prominent example is a URL with an erroneous or no scheme). Currently, this error is displayed in an alert. We should the error to the UI in a way that's consistent with other error messages on the front and back ends.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Show wbparsevalue errors in the WBMI UI | mediawiki/extensions/WikibaseMediaInfo | master | +177 -15 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | • AnneT | T232365 Improve error handling UX of structured data UI | |||
| Resolved | • AnneT | T239857 Show errors provided by wbparsevalue on add |
Event Timeline
Comment Actions
Change 558218 had a related patch set uploaded (by Anne Tomasevich; owner: Anne Tomasevich):
[mediawiki/extensions/WikibaseMediaInfo@master] Show wbparsevalue errors in the WBMI UI
Comment Actions
Change 558218 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Show wbparsevalue errors in the WBMI UI
Comment Actions
Tested with URL statements with no "https://" prefix, error shows properly within the UI.