Last modified: 2014-02-12 23:35: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 T43836, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41836 - Foo?action=info should rather be Special:PageInfo/Foo instead
Foo?action=info should rather be Special:PageInfo/Foo instead
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 41930 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-06 21:12 UTC by Danny B.
Modified: 2014-02-12 23:35 UTC (History)
8 users (show)

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


Attachments

Description Danny B. 2012-11-06 21:12:54 UTC
Foo?action=info should rather be Special:PageInfo/Foo instead
Comment 1 MZMcBride 2012-11-06 22:23:59 UTC
I believe this is a duplicate of another bug. I know this has come up previously on wikitech-l.

Basically, actions are all inconsistent. Special:MovePage, Special:Undelete, etc. vs. ?action=history, ?action=protect, ?action=edit, etc. There are concerns with switching to Special pages (such as page links only tracking up to 255 bytes) and there are concerns with switching to actions (such as not having a title to work with).

Generally, if we switch to Special pages, I think we'll end up with Special:Action/Edit/Foo or something. Maybe.

Is there any reason you think the info action in particular should be switched to a (dedicated) Special page?
Comment 2 Krinkle 2012-11-06 22:27:43 UTC
To juice up Daniel:

Title?action=* should be Special:../Title..
Comment 3 MZMcBride 2012-11-06 22:28:44 UTC
Related: <https://www.mediawiki.org/wiki/Requests_for_comment/Drop_actions_in_favour_of_page_views_and_special_pages> and <http://lists.wikimedia.org/pipermail/wikitech-l/2011-August/thread.html#54884>.

I believe there's another separate wikitech-l thread about this topic as well. I can't seem to find a relevant bug.
Comment 4 Chad H. 2012-11-07 21:25:03 UTC
(In reply to comment #1)
> Basically, actions are all inconsistent. Special:MovePage, Special:Undelete,
> etc. vs. ?action=history, ?action=protect, ?action=edit, etc. There are
> concerns with switching to Special pages (such as page links only tracking up
> to 255 bytes) and there are concerns with switching to actions (such as not
> having a title to work with).
> 

If we were doing it all over again--we'd be writing special pages and not action urls. The only reason we've still got them is for legacy reasons. I remember complaining when actions were rewritten that we were wasting our time solidifying architecture that should just die.

> Generally, if we switch to Special pages, I think we'll end up with
> Special:Action/Edit/Foo or something. Maybe.
> 

Special:Action/Foo/Bar is just as bad as title=Bar&action=Foo. Comment #2 is the way I'd like to see it...
Special:History/Foo, Special:Edit/Foo, etc etc etc.

> Is there any reason you think the info action in particular should be switched
> to a (dedicated) Special page?

Because *all* actions should be special pages. We should kill every last one of these blasted actions and have them redirect to appropriate special pages.
Comment 5 Tyler Romeo 2012-11-09 06:44:15 UTC
Design-wise I don't see how this is a good idea at all. Other than cosmetic differences, what's the difference between article?action=foo and Special:foo/article? If anything, the distinction is separate for a good reason. Actions should be reserved for just that, actions, i.e., operations that affect a singular article, such as edit/move/view/delete/undelete/etc.
Comment 6 Krinkle 2012-11-09 12:37:50 UTC
(In reply to comment #5)
> Design-wise I don't see how this is a good idea at all. Other than cosmetic
> differences, what's the difference between article?action=foo and
> Special:foo/article? If anything, the distinction is separate for a good
> reason. Actions should be reserved for just that, actions, i.e., operations
> that affect a singular article, such as edit/move/view/delete/undelete/etc.

It is actually the opposite. To the user the difference is just url cosmetics, but that's quite irrelevant in this discussion. Though the pages for an action and a special page look very similar, they are built in very different ways. And the problems we had with the tab and toolbox adapting to the correct page shows this problem.

We're talking about the backend usage of using a SpecialPage vs. Action subclasses. The proposed situation here is that over the years the differences for having these separately (where Actions were formerly just methods on the Article class) have reduced if not, become no longer applicable.

For example the following ones are all related to a page (query):
* Special:WhatLinksHere
* action=view
* action=history
* action=info

And these as well (more manipulations of state, less information retrieval):
* action=delete
* Special:Undelete
* Special:MovePage
* action=purge
* action=edit
* action=protect

So it makes sense to have one back-end interface for pages, and have a method for setting the page context (which would affect the tab bar, page title and toolbox).

One interesting difference is that actions don't take parameters (you can't go to action=history and enter a page name, but you can go to Special:WhatLinksHere and enter a page name).
Comment 7 Alex Monk 2012-11-09 17:37:39 UTC
*** Bug 41930 has been marked as a duplicate of this bug. ***
Comment 8 Quim Gil 2013-11-19 15:38:05 UTC
A year later... what is the status of this report? Can you agree on a plan to resolve it?
Comment 9 Chad H. 2013-11-19 15:57:04 UTC
(In reply to comment #8)
> A year later... what is the status of this report? Can you agree on a plan to
> resolve it?

Like most normal and lower priority bugs, it hasn't been worked on and just needs someone with enough cycles to do the work. It's not hard.
Comment 10 Quim Gil 2013-11-19 20:14:15 UTC
If the plan is clear and its implementation is not hard, would it make sense to propose it as a Google Code-in task?

https://www.mediawiki.org/wiki/Google_Code-In

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


Navigation
Links