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

       Web browser: ---
            Bug ID: 44014
           Summary: Handling of mismatch between Snak's value's data value
                    type and Snak's property's data type's data value type
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

If for some reason a mismatch between Snak's value's data value type and Snak's
property's data type's data value type appears in the defined Snaks of a page,
this will cause JavaScript errors in the snakview.

This should be handled by displaying a message instead. This can happen for
various reasons, e.g.:
* A property's data type has been changed
* A data type definition has changed (in the PHP code) and uses a different
data value type now
* Someone (e.g. gadget developer) sets such an unfitting data value to the
jQuery.wikibase.valueview widget directly.

I just ran into this when we internally changed the wikibase-item data type to
use the new entity ID data value instead of the String data value.

When we are in production, changes like this would require some script to
convert all of the old data values to data value of the new data value type.
For displaying stuff nicely in the meantime and in case there is not such
script or in case an admin had to change a property's data type for some
reason, we should just prevent the JS from failing and display some simple
message. Perhaps even display the value but with a message on top and when
clicking edit, the right valueview widget for insertion of a value of the right
data value type.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to