Last modified: 2013-06-27 12:37:12 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 T47761, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45761 - API module wbremoveclaims fail to apply baserevid
API module wbremoveclaims fail to apply baserevid
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-06 01:22 UTC by jeblad
Modified: 2013-06-27 12:37 UTC (History)
5 users (show)

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


Attachments

Description jeblad 2013-03-06 01:22:05 UTC
In API module wbremoveclaims a line is lost and the params is not pulled in and used during load, which would later create problems during save as conflicts will be handled in some weird way.
Comment 1 jeblad 2013-03-06 08:53:53 UTC
https://gerrit.wikimedia.org/r/#/c/52346/
Comment 2 Daniel Kinzler 2013-03-06 15:52:32 UTC
The above fix has serious logic problems (not caused by the fix itself, but preventing the fix from working in some cases). We may need to revert it. Reopening until this has been re-examined.
Comment 3 Daniel Kinzler 2013-03-06 15:59:03 UTC
The current fix will cause the request to Fail with an Error if a base revision ID is supplied and the mentioned Statements belong to two different items (because the base revision will not be correct for at least one of them).

If we allow a list of statements from different items, we need to accept a list of base revisions. Better to restrict this module to statements on a single item.
Comment 4 jeblad 2013-03-07 13:50:25 UTC
A request removing statements from two different items would be erroneous call in my opinion, and then the correct behavior would be to fail. I think the module should have a restriction on the ids it can accept.

This is although another bug.
Comment 5 Daniel Kinzler 2013-03-07 15:18:07 UTC
(In reply to comment #4)
> A request removing statements from two different items would be erroneous
> call
> in my opinion, and then the correct behavior would be to fail. I think the
> module should have a restriction on the ids it can accept.

Yes, that would also greatly simply the code.

> This is although another bug.

Yes, but this bug should perhaps depend on that other bug.
Comment 6 Daniel Kinzler 2013-06-27 12:37:12 UTC
seems to be ok now

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


Navigation
Links