Last modified: 2014-04-03 09:15:13 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 T51631, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49631 - PageCuration doesn't use edit summaries when posting to talk pages
PageCuration doesn't use edit summaries when posting to talk pages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
PageCuration (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-16 04:18 UTC by MZMcBride
Modified: 2014-04-03 09:15 UTC (History)
5 users (show)

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


Attachments

Description MZMcBride 2013-06-16 04:18:33 UTC
https://en.wikipedia.org/w/index.php?title=User_talk:Simsong&diff=560107518&oldid=418874412

This edit indicates that PageCuration isn't using section=new. This should be fixed up.
Comment 1 Nischay Nahata 2013-06-16 08:17:39 UTC
Thanks for the bug report!

I couldn't understand the problem completely. The template http://en.wikipedia.org/wiki/Template:Reviewednote-NPF does create a new section with the title "A page you started has been reviewed!" or is there something I got wrong here?
Comment 2 Redrose64 2013-06-16 11:21:03 UTC
I don't know if it's the problem that MZ is thinking of, but I notice that there is no edit summary; normally, when you use the "new section" tab, you don't get an input field for the edit summary - it's forced to "/* "+section title+" */ new section", as in
/* A page you started has been reviewed! */ new section
Comment 3 Nischay Nahata 2013-06-16 14:04:36 UTC
The page is being edited using the api, for some reason (I should consult the original developers) there isn't any edit summary provided.

However the section title I mentioned i.e. "A page you started has been reviewed!" is provided by the Template; thus its not related to the absence of an edit summary.
Comment 4 MZMcBride 2013-06-16 16:02:31 UTC
Strange. I wonder why bug 46842 didn't resolve this.
Comment 5 MZMcBride 2013-06-16 16:56:18 UTC
(In reply to comment #3)
> The page is being edited using the api, for some reason (I should consult the
> original developers) there isn't any edit summary provided.

Yeah, it's using action=edit in the MediaWiki API, but not section=new. I'm not sure why, but this should be simple enough to tweak.
Comment 6 MZMcBride 2013-06-16 16:57:13 UTC
(In reply to comment #4)
> Strange. I wonder why bug 46842 didn't resolve this.

This comment was intended for bug 49632, of course.
Comment 7 Nischay Nahata 2013-06-16 17:50:41 UTC
MZMcBride, could you please try to answer comment 1. More specifically, what difference would using section=new bring?
Comment 8 MZMcBride 2013-06-16 18:02:41 UTC
(In reply to comment #7)
> MZMcBride, could you please try to answer comment 1. More specifically, what
> difference would using section=new bring?

It would fix the edit summary.

I'm not sure why there's any discussion needed here: you're adding a new section to the page. Is there any reason not to use section=new? This is why it exists.
Comment 9 Nischay Nahata 2013-06-16 18:10:48 UTC
PageTriage isn't adding any new section. Its just adding some wiki text which is made into a section by the template.

Of course, PageTriage could/should add a edit summary while doing the edit. But its a separate thing.
Comment 10 MZMcBride 2013-06-16 18:19:41 UTC
(In reply to comment #9)
> PageTriage isn't adding any new section. Its just adding some wiki text which
> is made into a section by the template.

What? PageTriage is using the MediaWiki API's action=edit module and is calling appendtext. It should instead be using section=new. This is the bug. When you're adding a new section to a talk page, use section=new. This is why it exists.

https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FPageTriage/4608051c1f48e8f5c69f5206498df4a7dddba17a/modules%2Fext.pageTriage.views.toolbar%2Fext.pageTriage.mark.js#L124

This posts to a talk page. Use section=new here.

> Of course, PageTriage could/should add a edit summary while doing the edit.
> But its a separate thing.

It will automatically use a proper edit summary when section=new is specified. Use that.
Comment 11 MZMcBride 2013-06-16 19:01:44 UTC
Broadly, I think you're right. The symptom (and bug) here is the edit summary. The problem is the use of appendtext without specifying a summary parameter.

The summary parameter is automatically filled in when section=new is used. An edit summary could be faked, but doing so would be kind of insane, in my opinion. That's why I filed this bug the way that I did.


The edit summary is important to include, otherwise editors see edits to user talk pages and have no idea why they edited a particular user talk page. For example:

00:16, 16 June 2013 (diff | hist) . . (+395)‎ . . User talk:Simsong ‎ (current)

This should read:

00:16, 16 June 2013 (diff | hist) . . (+395)‎ . . User talk:Simsong ‎(A page you started (Digital Forensics XML) has been reviewed!) (current)

Then I would know why I made a particular edit and so would everybody else.


If you want to re-purpose the bug's summary to focus on edit summaries (the symptom) instead of not using section=new (what I consider to be the problem), I'm fine with that.
Comment 12 Gerrit Notification Bot 2013-06-17 09:18:01 UTC
Related URL: https://gerrit.wikimedia.org/r/69033 (Gerrit Change Ic5855c8a5fd2282cbf6d825d959f49b8a3b9bf41)
Comment 13 Gerrit Notification Bot 2014-03-28 23:22:03 UTC
Change 69033 abandoned by Siebrand:
Use edit summaries when posting to user talk pages.

Reason:
I'm abandoning this as this change hasn't had any love in a long time. There are open comments and it doesn't merge any more. Can be restored if author wants to work on it again.

https://gerrit.wikimedia.org/r/69033
Comment 14 Nischay Nahata 2014-04-03 09:15:13 UTC
Not working for WMF anymore :(

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


Navigation
Links