Page MenuHomePhabricator

Summary of activity at the top of mobile history page
Open, LowPublic


The mobile history page is ok nowadays, but it would benefit from a summary at the top that could provide interesting information to newcomers and regular editors alike, i.e.

This page was created on DD-MM-YYYY and has been edited N times by N registered volunteers and N anonymous users.
Improve it anonymously           Log in / Register

For logged in users we could simply show the summary followed by the edit pencil icon

Background: T94298: Rephrase "Last edited..." in mobile web UI and link only to page history, and related posts.

Proposed design

Yeah something like this where we summarize the edits to page would be useful

Developer notes

This will kick off the epic T169162 so bear in mind during implementation we are looking for a generic solution for ALL special pages.
Remember SpecialMobileHistory extends MobileSpecialPageFeed extends MobileSpecialPage

Event Timeline

Qgil raised the priority of this task from to Needs Triage.
Qgil updated the task description. (Show Details)
Qgil added a project: Readers-Web-Backlog.
Qgil added a subscriber: Qgil.
Sn1per added a subscriber: Sn1per.

Not a duplicate?

Jdlrobson added a subscriber: Jdlrobson.

It's a good idea. Designers what do you think?

Yeah something like this where we summarize the edits to page would be useful

@Nirzar it would make sense to do this at the same time as T147722
Could you update the mock to show what it would look like for other namespaces and merge T147722 into this one?

Ping @kaldari can we use to provide this information and more? Would that scale? I wonder if we could be more ambitious with this summary.

@Jdlrobson: XTools has a page API you could use to get this information: For example: Whether or not it would scale is another issue. @MusikAnimal knows more about the caching and scaling aspects of XTools.

My guess is that it would make more sense to just steal the code that XTools uses ( to get this info and copy it into MobileFrontend so that you can query against the production databases rather than the Labs replicas.

The XTools API can handle a decent amount of traffic, but I don't know about using it in MobileFrontend. Getting the data you're after could be done with a single query, something like:

  COUNT(*) AS num_edits,
  COUNT(DISTINCT(rev_user_text)) AS num_editors,
  MAX(rev_timestamp) AS modified_at
FROM revision
WHERE rev_page = 1092923

This is how we do it using the replicas. On production it seems this goes really slow... I don't know why, but I'm sure you could use something similar.

This should either be folded into something we can do as part of AMC or declined.