Last modified: 2014-01-23 18:40:08 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 T29841, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27841 - Merge AssertEdit extension into MediaWiki core
Merge AssertEdit extension into MediaWiki core
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: 1.23.0 release
Assigned To: Kunal Mehta (Legoktm)
: easy
Depends on:
Blocks: 26751
  Show dependency treegraph
 
Reported: 2011-03-04 00:44 UTC by Sam Reed (reedy)
Modified: 2014-01-23 18:40 UTC (History)
7 users (show)

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


Attachments

Description Sam Reed (reedy) 2011-03-04 00:44:50 UTC
Trivial extension, should really just exist in core.

Will see around to getting it done
Comment 1 Mark A. Hershberger 2011-12-20 21:09:00 UTC
Changing default assignee per IRC
Comment 2 MZMcBride 2013-01-06 17:25:14 UTC
Marking this bug as easy.
Comment 3 Gerrit Notification Bot 2013-10-16 22:35:33 UTC
Change 90263 had a related patch set uploaded by Legoktm:
Merge AssertEdit extension into core

https://gerrit.wikimedia.org/r/90263
Comment 4 Gerrit Notification Bot 2014-01-06 18:55:34 UTC
Change 90263 merged by jenkins-bot:
Merge AssertEdit extension into core

https://gerrit.wikimedia.org/r/90263
Comment 5 Bartosz Dziewoński 2014-01-06 20:52:29 UTC
Merged.

https://www.mediawiki.org/wiki/Extension:AssertEdit needs updating.
Comment 6 Kunal Mehta (Legoktm) 2014-01-09 21:36:46 UTC
(In reply to comment #5)

> https://www.mediawiki.org/wiki/Extension:AssertEdit needs updating.

Done. I also created [[mw:API:Assert]] to document the core functionality but I'm not really sure where to link it from.
Comment 7 MZMcBride 2014-01-10 03:44:19 UTC
(In reply to comment #6)
> (In reply to comment #5)
> 
>> https://www.mediawiki.org/wiki/Extension:AssertEdit needs updating.
> 
> Done. I also created [[mw:API:Assert]] to document the core functionality but
> I'm not really sure where to link it from.

Thanks! I updated [[mw:Template:API]] and added the template to [[mw:API:Assert]]. I also linked this new API page from the extension notice at [[mw:Extension:AssertEdit]].
Comment 8 Jarry1250 2014-01-19 00:39:51 UTC
Unintended consequence: passing a blank assert= parameter to the API now causes an unknown_assert error, whereas before it was silently ignored. Bug or feature?
Comment 9 Kunal Mehta (Legoktm) 2014-01-22 23:01:28 UTC
(In reply to comment #8)
> Unintended consequence: passing a blank assert= parameter to the API now
> causes
> an unknown_assert error, whereas before it was silently ignored. Bug or
> feature?

I don't consider this to be a bug since you shouldn't be passing blank parameters like that so I guess it can be considered a "feature".
Comment 10 Jarry1250 2014-01-23 18:29:28 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Unintended consequence: passing a blank assert= parameter to the API now
> > causes
> > an unknown_assert error, whereas before it was silently ignored. Bug or
> > feature?
> 
> I don't consider this to be a bug since you shouldn't be passing blank
> parameters like that so I guess it can be considered a "feature".

Fair enough. Can we have a "blank_assert" (or somesuch) rather than "unknown_assert" then? This is a breaking change to some reusers, so giving them more debug information may be helpful.
Comment 11 Brad Jorsch 2014-01-23 18:32:26 UTC
The error is coming from the API parameter parsing, before it ever gets to the point where the assert code sees it. I'm inclined to say "no" here, since the documented values are "bot" or "user" ("" is not included) and the error message is correct.
Comment 12 Jarry1250 2014-01-23 18:40:08 UTC
(In reply to comment #11)
> The error is coming from the API parameter parsing, before it ever gets to
> the point where the assert code sees it.

I don't really care a great deal, I just noted that it was an (unintended?) change in behaviour that has already forced several API users to rewrite (admittedly lazy) code. Incidentally https://www.mediawiki.org/wiki/API:Assert could do with expansion on this point.

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


Navigation
Links