Last modified: 2012-11-29 13:20:22 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 T40958, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38958 - Fix undeletion of items
Fix undeletion of items
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Wikidata bugs
: easy, testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-02 11:56 UTC by denny vrandecic
Modified: 2012-11-29 13:20 UTC (History)
2 users (show)

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


Attachments

Description denny vrandecic 2012-08-02 11:56:27 UTC
It should just work, but we have no tests for deleting and undeleting items.
Comment 1 Daniel Kinzler 2012-08-19 20:01:59 UTC
Setting to "major", because it's quite important that undeletion works properly.

It's likely that undeletion does NOT work properly at the moment, since it will, as far as I can see, bypass EntityObject::structuredSave() and also any checks for global consistency e.g. unique sitelinks. 

Implementation note: Practically, we must make sure that undeleting a Wikidata Entity uses the Entity::save() method instead of WikiPage::doEditContent().

In case undeletion is not possibly because of global consistency constraints (like unique sitelinks), we should filter out the conflicting sitelinks, show a diff and let the user confirm saving the modified version. This is related to filtering undo/restore operations based on global constraints, as described in bug 39428.
Comment 2 Daniel Kinzler 2012-08-29 15:39:22 UTC
Confirmed that undeletion caused database corruption when conflicts arise from sitelinks. Fixed in I41bab989.

Demoed and accepted. Needs selenium tests.
Comment 3 Daniel Kinzler 2012-08-29 15:40:40 UTC
Oh: automatically removing the conflict and then prompt the user to save the resulting new revision would be nice, but should be filed as a separate feature request.

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


Navigation
Links