Last modified: 2006-02-01 14:21:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1891 - Introducing pseudo IDs "oldest" and "latest" to access oldest or latest revision of article - for views and diff views
Introducing pseudo IDs "oldest" and "latest" to access oldest or latest revis...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 603
Blocks: 1932
  Show dependency treegraph
 
Reported: 2005-04-14 06:07 UTC by Jason Lee, AllyUnion
Modified: 2006-02-01 14:21 UTC (History)
0 users

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


Attachments

Description Jason Lee, AllyUnion 2005-04-14 06:07:50 UTC
I would like some way to skip all the history to the first person who created
the page instead of going through all of the history.
Comment 1 T. Gries 2005-04-14 07:01:58 UTC
(Something for Brion ?)

In addition:

I propose to introduce

    title=article&curid=1
or
    title=article&curid=first

curid=0 cannot be used, as this indicates the current version, as far as I
understood.

I do not understand, why &curid=1 added to an article link points to a totally
different page
Comment 2 Brion Vibber 2005-04-14 08:09:15 UTC
Tom, it looks like you have your variables mixed up.

curid refers to a page_id (cur_id in <1.5) and is the unique ID number of a 
particular page within the database. If you specify a curid parameter on a view 
URL, it overrides the given title. This is used on Special:Recentchanges items for 
pages to handle things being renamed, as I recall. Specifying curid=1 thus gives 
you whichever page was the first to be inserted into the database (unless that 
page has been deleted, in which case you get nothing.)

oldid refers to a particular revision's rev_id (old_id in <1.5), and is the unique ID 
number of a particular revision within the database. Specifying oldid=1 thus gives 
you whichever page revision was the first revision of any page to ever be inserted 
into the database (unless that page has been deleted, in which case you get 
nothing).

Note that this is *not* a sequence number within a particular page's history. No 
such sequence numbers are recorded in the database.

There is a special URL parameter value, oldid=0, which is used in <1.5 when 
generating diff links to the current version of the given page (because no old_id 
number existed for current revisions due to the old database schema).
Comment 3 T. Gries 2005-04-14 19:23:09 UTC
(In reply to comment #2)
> curid refers to a page_id (cur_id in <1.5) and is the unique ID number of a 
> particular page within the database. If you specify a curid parameter on a view 
> URL, it overrides the given title.
... this is exactly, what I noticed.

> oldid refers to a particular revision's rev_id (old_id in <1.5), and is the
unique ID 
> number of a particular revision within the database. Specifying oldid=1 thus
gives 
> you whichever page revision was the first revision of any page to ever be
inserted 
> into the database (unless that page has been deleted, in which case you get 
> nothing).
Thus ......./wiki/index.php?title=anything&oldid=1 shows the first page ever
added to the database.

So, the answer to the question of the bugzilla poster (not me), is: according to
Brion's answer in versions < 1.5, you can unfortunately NOT directly link to the
let's say first (initial) revision of a page.

If I understand Brion correctly, the same will also be true for versions >= 1.5.

Attention Brion:
I would like to suggest to introduce a mechanism (query string) - let's say
diff=0&curid=0 - which solves this problem of Jason Lee and which allows to
point to the initial version of a page X.

Tom
Comment 4 T. Gries 2005-04-20 19:35:23 UTC
I amended the title to better reflect what was originally requested (by Jason
Lee). The title is now brought into conformity with
http://bugzilla.wikipedia.org/show_bug.cgi?id=181 Assign lasting ID to latest
revision of articles (which is fixed in REL1_5 accoring to Brion's note there).

Brion,
it would be a big help and solving this bugzilla and bugzilla 181 to introduce
two PSEUDO-oldid "oldest" and "latest" (or "recent" or "current")

This would allow to construct links

a) to the direct view of the first revision (when the page was created)

     http://server/wiki/index.php?title=foo&oldid=oldest (the number oldid being
unknown when constructing the link blindly)

b) bugzilla 181 = view the current revision

     http://server/wiki/index.php?title=foo&oldid=latest (the number oldid being
unknown when constructing the link blindly)

c) to show the difference between the both, 
   i.e. one can construct a direct link to the difference view between the
LATEST and the OLDEST revision

     http://server/wiki/index.php?title=foo&diff=0&oldid=oldest

Can you help ? It would be great ...
Comment 5 T. Gries 2005-04-21 06:26:21 UTC
amending the title again
Comment 6 Ævar Arnfjörð Bjarmason 2005-05-24 23:02:18 UTC
Using the CVS HEAD and BASE keywords would be more familar.
Comment 7 Melancholie 2006-01-26 03:57:58 UTC
This has been implemented on &action=history "(Latest | 
Earliest)". Thus I close this bug.
Comment 8 lɛʁi לערי ריינהארט 2006-02-01 14:21:06 UTC
(In reply to comment #7)
> This has been implemented on &action=history "(Latest | 
> Earliest)". Thus I close this bug.

Latest: action=history
Earliest: go=first&action=history as in
http://en.wikipedia.org/w/index.php?title=Main_Page&go=first&action=history

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


Navigation
Links