Last modified: 2014-02-21 16:13:56 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 T45643, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43643 - impossible to change the data type of a property
impossible to change the data type of a property
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-04 20:19 UTC by Gloumouth1
Modified: 2014-02-21 16:13 UTC (History)
5 users (show)

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


Attachments

Description Gloumouth1 2013-01-04 20:19:31 UTC
Just after having created a property, and chosen its data type, it is impossible to change it. But it should be, if the property is not used yet by any item.
Comment 1 Sam Reed (reedy) 2013-01-05 02:20:31 UTC
Is this actually a Wikidata related bug? :/
Comment 2 Gloumouth1 2013-01-05 08:35:55 UTC
0) Go on http://wikidata-test-repo.wikimedia.de
1) Click on "Create a new property"
2) Fill the "Label" field
3) Choose a "data type"
4) Click on "Create"
5) Try to change the "data type" (it is impossible)

Isn't it a Wikidata related bug? :\
Comment 3 Lydia Pintscher 2013-01-05 10:56:58 UTC
It is. Thanks for reporting.
I personally think it is good the way it is. Wouldn't it be confusing to be able to change some and not others?
Comment 4 jeblad 2013-01-05 12:43:42 UTC
It can be coded so it can be changed if no items use it yet, but that would open a can of worms. Just imagine all items using a specific property is deleted, the property is then changed - including its type, and then the items undeleted.

The easy solution is to follow a usecase where you always make the type of the property read-only.

I would say close this as a wontfix, as this is the correct behavior.
Comment 5 Gloumouth1 2013-01-07 12:52:51 UTC
Consider this use case: 
1) Create two items Q1 and Q2
2) Create a property Pa with Monolingual text as data type  
3) Create a property Pb with Item as data type
4) Instanciate Pa for Q1 with "Foo" as text
5) Instanciate Pb for Q1 with Q2 as linked item
6) Delete Q1 and Q2
7) Undelete Q1
--> The instance of Pa will be undeleted as well with the "Foo" as text, but the instance of Pb cannot be undeleted because Q2 does not exist anymore.
So I think that the "worms" that you speak about already exist...

I just say that:
1) when you just created a property 2 seconds ago, you can modify every thing, except the data type, which is quite disturbing for the user.
2) when an undelete is demanded, yes, some checks are needed, but it is already the case, before my code modification request.
Comment 6 denny vrandecic 2013-01-08 16:32:19 UTC
Changing from unconfirmed to New. This is a feature request for a sensible feature.

I do not think it is urgent: don't forget that you can rename properties. This can resolve many of the issues that would be wanted otherwise.
Comment 7 John F. Lewis 2013-08-20 14:59:14 UTC
After Lydia pointed me to this, I agree that it is a sensible feature to be concluded while not urgent. It is definitely worth considering to making the Property namespace more manageable rather than having properties scattered around being deleted due to an accidental data type.

As Denny said it can be solved by re-creating and deleting but really changing the original datatype would be much more user-friendly and would allow everyone with the ability to create properties solve accidental datatype assignments.

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


Navigation
Links