https://bugzilla.wikimedia.org/show_bug.cgi?id=58393

       Web browser: ---
            Bug ID: 58393
           Summary: No well-defined behavior when editing claims based on
                    a deleted property
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: wikidata-b...@lists.wikimedia.org
          Reporter: daniel.kinz...@wikimedia.de
                CC: wikidata-b...@lists.wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to