Last modified: 2014-04-25 06:13:41 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 T62275, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60275 - Flow actions aren't detailed enough in CheckUser
Flow actions aren't detailed enough in CheckUser
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 60178
  Show dependency treegraph
 
Reported: 2014-01-21 03:37 UTC by Kunal Mehta (Legoktm)
Modified: 2014-04-25 06:13 UTC (History)
12 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2014-01-21 03:37:29 UTC
When using the "get edits" function of CheckUser (which actually gets edits *and* log entries), any Flow edits/comments/etc don't show up and are totally ignored.
Comment 1 Bingle 2014-01-21 03:45:29 UTC
The WMF core features team tracks this bug on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/flow/cards/731, but people from the community are welcome to contribute here and in Gerrit.
Comment 2 Gerrit Notification Bot 2014-01-21 04:04:35 UTC
Change 108653 had a related patch set uploaded by Legoktm:
Use RecentChanges::save to add RC rows

https://gerrit.wikimedia.org/r/108653
Comment 3 Kunal Mehta (Legoktm) 2014-01-21 05:03:09 UTC
Patch is the first step. Right now the entries in CheckUser look like:

 (diff) (hist) . . Talk:Flow . . 04:08 . . Admin (Talk | contribs | block)
        IP: 10.0.2.2   Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0

The diff and history links are broken, and there is no indication of what Flow action was taken.
Comment 4 Gerrit Notification Bot 2014-01-21 17:48:57 UTC
Change 108653 merged by jenkins-bot:
Use RecentChanges::save to add RC rows

https://gerrit.wikimedia.org/r/108653
Comment 5 Kunal Mehta (Legoktm) 2014-01-27 17:20:29 UTC
So...making the entries show up properly is complicated.

The normal place to add in handling was in CheckUser::getLinksFromRow, and call the Flow formatter there. Aside from having to do some hacky stuff to get a RecentChange object, this didn't work since the cu_changes table does not store rc_params, which Flow depends upon.

Next I looked into CheckUserHooks::updateCheckUserData, except I didn't see any way in Flow to get wikitext instead of HTML from the RecentChanges formatter.
Comment 6 Erik Bernhardson 2014-01-27 18:07:20 UTC
You can convert any parsoid html to wikitext with 

    Flow\ParsoidUtils::convert( 'html', 'wt', $htmlContent );

That is currently inefficient, the content came in as wikitext and was converted to html.  Easiest way for now would be to add an internal cache to ParsoidUtils such that after converting wt->html, asking for the wikitext of that html retrieves it from the cache.
Comment 7 Kunal Mehta (Legoktm) 2014-01-27 18:13:36 UTC
Sorry, that's not what I meant. I'm talking about the HTML returned by \Flow\RecentChanges\Formatter::format()
Comment 8 Luis Villa (WMF Legal) 2014-01-27 21:08:57 UTC
Dumb question: do we still have the equivalent of the history log, such that given a page and a timestamp I can figure out what happened? Or is that also missing?
Comment 9 Maryana Pinchuk 2014-01-27 21:19:31 UTC
Luis, yes, you can still see all the relevant actions in the users' contributions, in page history, in recent changes, etc.
Comment 10 Kunal Mehta (Legoktm) 2014-01-27 21:20:53 UTC
(In reply to comment #8)
> Dumb question: do we still have the equivalent of the history log, such that
> given a page and a timestamp I can figure out what happened? Or is that also
> missing?

Yes, that should be possible with the current history view (https://www.mediawiki.org/w/index.php?title=Talk:Sandbox&action=board-history - throwing an exception which is another bug that has been fixed, just not deployed).
Comment 11 Erik Bernhardson 2014-01-30 06:22:36 UTC
(In reply to comment #7)
> Sorry, that's not what I meant. I'm talking about the HTML returned by
> \Flow\RecentChanges\Formatter::format()

Getting wikitext out of there would be difficult, it was designed to work with the OldChangesListRecentChangesLine hook which expects a line of html.  In terms of the functionality this needs, the list of links, potentially could extend the abstract \Flow\Formatter to accept a check user row and run the buildActionLinks method for it.  That will get you an array of arrays, the inner arrays each containing a url and a plain text link name.

I'm not sure yet how to get the data across though, it needs a Title, action string, and one or two uuids.  The title is already there, the action could potentially be stored in cuc_actiontext although i have not yet checked if that is legitimate.  For the uuid's i'm really not sure though, beyond adjusting the cu_changes table.
Comment 12 Risker 2014-02-01 02:21:38 UTC
(In reply to comment #9)
> Luis, yes, you can still see all the relevant actions in the users'
> contributions, in page history, in recent changes, etc.

I'm not actually seeing many of the user actions I know I took in the *page* history. Indeed, when comparing my contributions to the page history on the sandbox[2] for 27-28 January, most of my actions aren't there.  Incidentally, the page title isn't included in my contributions history. This is a problem. (Is it a different bugzilla?)

[1] https://www.mediawiki.org/wiki/Special:Contributions/Risker
[2] https://www.mediawiki.org/w/index.php?title=Talk:Sandbox&action=board-history
Comment 13 Oliver Keyes 2014-02-01 02:25:14 UTC
(In reply to comment #12)
> (In reply to comment #9)
> > Luis, yes, you can still see all the relevant actions in the users'
> > contributions, in page history, in recent changes, etc.
> 
> I'm not actually seeing many of the user actions I know I took in the *page*
> history. Indeed, when comparing my contributions to the page history on the
> sandbox[2] for 27-28 January, most of my actions aren't there.
Yep, we're working on the history section - you may want to check in "topic history" too (under the topic dropdown)

> Incidentally,
> the page title isn't included in my contributions history. This is a problem.
> (Is it a different bugzilla?)

Yep, the lack of clarity ("Topic","Comment") is a known, and we're working on it.
Comment 14 Risker 2014-02-04 06:19:59 UTC
Actually, I am getting nothing at all whatsoever in the self-test CU I did after making multiple Flow edits. There is no indication whatsoever that I have edited using Flow.  (This is post "go live" to three talk pages on enwiki, two of which I've made posts on.)
Comment 15 Kunal Mehta (Legoktm) 2014-02-04 06:32:27 UTC
(In reply to comment #14)
> Actually, I am getting nothing at all whatsoever in the self-test CU I did
> after making multiple Flow edits. There is no indication whatsoever that I
> have
> edited using Flow.  (This is post "go live" to three talk pages on enwiki,
> two
> of which I've made posts on.)

Looks like Ie248485ed28538e01e898afc62395ed9a2b8aed3 only made it to 1.23wmf12, and enwiki is still on 1.23wmf11. Marking as needing a backport.
Comment 16 Gerrit Notification Bot 2014-02-04 07:32:08 UTC
Change 111160 had a related patch set uploaded by Jalexander:
Use RecentChanges::save to add RC rows

https://gerrit.wikimedia.org/r/111160
Comment 17 Kunal Mehta (Legoktm) 2014-02-04 07:35:38 UTC
(In reply to comment #15)

> Looks like Ie248485ed28538e01e898afc62395ed9a2b8aed3 only made it to
> 1.23wmf12,
> and enwiki is still on 1.23wmf11. Marking as needing a backport.

Note that if that change is backported, we will also need a backport for I8e3a42666c85920d0b50c8272f6f0db30055fd2b as that fixes some fatals that occurred with my change.
Comment 18 Gerrit Notification Bot 2014-02-04 07:50:01 UTC
Change 111161 had a related patch set uploaded by Jalexander:
Abort email notifications coming out of RecentChange

https://gerrit.wikimedia.org/r/111161
Comment 19 Gerrit Notification Bot 2014-02-04 19:27:59 UTC
Change 111161 merged by jenkins-bot:
Abort email notifications coming out of RecentChange

https://gerrit.wikimedia.org/r/111161
Comment 20 Gerrit Notification Bot 2014-02-04 19:28:04 UTC
Change 111160 merged by jenkins-bot:
Use RecentChanges::save to add RC rows

https://gerrit.wikimedia.org/r/111160
Comment 21 Kunal Mehta (Legoktm) 2014-02-04 19:40:21 UTC
Deployment for backports is scheduled for 1pm PST today.
Comment 22 Gerrit Notification Bot 2014-02-04 20:00:05 UTC
Change 111249 had a related patch set uploaded by EBernhardson:
Add hook SpecialCheckUserGetLinksFromRow

https://gerrit.wikimedia.org/r/111249
Comment 23 spage 2014-02-05 01:50:53 UTC
CheckUser on enwiki shows something thanks to the backport and deploy; leaving this bug open to improve the display of that something.
Comment 24 Gerrit Notification Bot 2014-02-05 01:51:51 UTC
Change 111354 had a related patch set uploaded by Legoktm:
Formatter for CheckUser rows

https://gerrit.wikimedia.org/r/111354
Comment 25 Gerrit Notification Bot 2014-02-07 16:40:29 UTC
Change 111249 merged by jenkins-bot:
Add hook SpecialCheckUserGetLinksFromRow

https://gerrit.wikimedia.org/r/111249
Comment 26 Gerrit Notification Bot 2014-02-07 18:06:10 UTC
Change 111354 merged by jenkins-bot:
Formatter for CheckUser rows

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

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


Navigation
Links