Last modified: 2014-09-03 00:28:54 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 T59128, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57128 - ApiQueryAllCampaigns api module has same prefix as user contributions ('uc')
ApiQueryAllCampaigns api module has same prefix as user contributions ('uc')
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Bene*
gci2013
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-16 02:27 UTC by Bawolff (Brian Wolff)
Modified: 2014-09-03 00:28 UTC (History)
10 users (show)

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


Attachments

Description Bawolff (Brian Wolff) 2013-11-16 02:27:02 UTC
When running unit tests locally.

1) PrefixUniquenessTest::testPrefixes
Module prefix 'uc' is shared between ApiQueryAllCampaigns and ApiQueryContributions
Comment 1 Bawolff (Brian Wolff) 2013-11-16 02:31:08 UTC
To be fair, I'm not sure if this is actually easy, as one might have to consider backwards compatability (I'm not sure how much we care about that)
Comment 2 Kunal Mehta (Legoktm) 2013-11-16 02:40:22 UTC
Implementing backwards compatibility is near-impossible due to how the API is designed, so this is just a one line change.

Whoever does implement this should make sure to send an email to the mediawiki-api list (and ask someone to forward it on to mediawiki-api-announce) since this is a breaking change.
Comment 3 Mark Holmquist 2013-11-26 19:28:37 UTC
Sigh, yuvi.

Marking as a candidate for GCI.
Comment 4 Bene* 2013-11-28 21:30:21 UTC
Which prefix should be used instead of 'uc'?
Comment 5 Quim Gil 2013-11-29 04:51:59 UTC
A Google Code-in student (Bene*) has claimed this task:

http://www.google-melange.com/gci/task/view/google/gci2013/5213883199389696
Comment 6 Bawolff (Brian Wolff) 2013-11-29 05:26:04 UTC
(In reply to comment #4)
> Which prefix should be used instead of 'uc'?

Anything not already taken is probably fine. Normally we use initials, but ac is already taken as well. Perhaps uwc for upload wizard campaign?
Comment 7 Yuvi Panda 2013-11-29 13:46:45 UTC
uwc sounds fine. We will be killing backwards compatibility, though - but that's fine by me. We might want to get one of the folks with access to the API logs to take a look but (this is optional!)
Comment 8 Gerrit Notification Bot 2013-11-29 16:41:27 UTC
Change 98174 had a related patch set uploaded by Bene:
(bug 57128) Changing ApiQueryAllCampaigns api module prefix

https://gerrit.wikimedia.org/r/98174
Comment 9 Gerrit Notification Bot 2013-11-30 07:50:16 UTC
Change 98174 had a related patch set uploaded by Bene:
Changing ApiQueryAllCampaigns api module prefix

https://gerrit.wikimedia.org/r/98174
Comment 10 Quim Gil 2013-11-30 16:28:30 UTC
If I understand correctly the comments at the Gerrit changeset, the patch is correct but needs to be announced at the api mailing list and needs to be mentioned in the release notes, right?

If the patch itself is correct we can close the GCI task and let the student work in another one, even if we can still ask him to announce the change properly.

Please confirm whether the patch itself is correct. Thank you!
Comment 11 Bawolff (Brian Wolff) 2013-11-30 18:13:05 UTC
This is in extension, so no release notes needed. Email to api list should be done. Patch looks correct at first glance, although I personally haven't had an oportunity to test it.
Comment 12 Quim Gil 2013-12-01 04:58:44 UTC
Thank you! Hoo man also says that this is a good patch. Closing the GCI task as completed.
Comment 13 Max Semenik 2013-12-01 21:41:08 UTC
(In reply to comment #7)
> uwc sounds fine. We will be killing backwards compatibility, though - but
> that's fine by me. We might want to get one of the folks with access to the
> API
> logs to take a look but (this is optional!)

No hits for allcampaigns from today's log.
Comment 14 Gerrit Notification Bot 2013-12-01 21:42:38 UTC
Change 98174 merged by jenkins-bot:
Changing ApiQueryAllCampaigns api module prefix

https://gerrit.wikimedia.org/r/98174

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


Navigation
Links