Last modified: 2014-03-11 10:18: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 T60393, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58393 - No well-defined behavior when editing claims based on a deleted property
No well-defined behavior when editing claims based on a deleted property
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=frontend p=0
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-12 14:39 UTC by Daniel Kinzler
Modified: 2014-03-11 10:18 UTC (History)
6 users (show)

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


Attachments

Description Daniel Kinzler 2013-12-12 14:39:26 UTC
When clicking "edit" on a claim that is based on a non-existing property, the expected behavior is that deleting the claim should be possible, but editing it should not even be attempted. 

Currently, at least for some data types (like Time), the behavior is erratic: the first click on "edit" does nothing [1], the next one opens edit mode, but doesn't disable the edit buttons for other claims. Canceling works, but then, clicking on "edit" again does nothing again [2]. Only clicking a fourth time opens edit mode again (again with all other "edit" links staying enabled).

If the property (and thus the data type) isn't know, editing should not be possible or attempted (though edit mode should still be possible for at least removing the claim, and possible also for sorting). The same is true for qualifiers and reference snaks, of course.

It's probably nice to at least try to show the value, based on the value type. 
(Ideally, we would record the data type in the snak, so we would have sufficient information for rendering, and maybe even for assigning a new property to the claim).



[1] Error: No sufficient purpose provided for choosing a parser @ http://localhost/daniel/wikidata/extensions/DataValues/DataValuesCommon/js/src/ValueParsers/ValueParserFactory.js:125
[2] Error: No adequate information to find a parser @ http://localhost/daniel/wikidata/extensions/DataValues/ValueView/resources/jquery.valueview/valueview.valueview.js:606

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


Navigation
Links