This could be positively construed as a feature request, but since I consider it a regression in the user experience from the previous tracker, I'm going to initiate this as a bug.

Previously, when I updated an issue with a new comment, I would be shown the new issue. The URL would be the permalink to the new comment in the thread and I could easily review my comments for typos and grab the URL to paste into a discussion, tweet, e-mail, etc.

Now, when I update an issue with a new comment, because I have to use the node edit form I end up at the top of the node page - even in cases where I've followed a link from the bottom of the thread. (Incidentally, that's another good reason why that link is misleading.)

What I expect to happen is to start typing in my comment, realize I want to update the metadata at the same time, cut my comment text, click the "Update this issue" link, update the issue with my comment, click submit, and then be redirected to the new comment added to the issue. (That's a bit of a tongue in cheek process, but I have to say that 95% of the time I forget I have to use the new form.)

I leave it up to the reader to determine a solution and to differentiate between new comments vs. simply issue summary updates; it's gonna be hard since we don't have a permalink yet to link to in the destination query parameter, but I'm sure a solution will present itself. : )

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rszrama’s picture

fwiw, the real frustration here hearkens back to the problems with the update process in general: it's become a process devoid of context. In this case, the form submission should be accompanied by a display of what was actually submitted. As is, "Update this issue" is just a process fork disguised as a local action or something.

klonos’s picture

Disclaimer: I really miss this too for D6 d.o, so I agree with considering it a regression and thus being a bug - not a feature request.

If we are to re-introduce this, then we need to also move the green "issue updated" message close to the comment that was just added. Just a note.

tvn’s picture

Issue tags: +D.o UX
alexander_danilenko’s picture

i'll take it

mgifford’s picture

Confirming that this is still an issue.

Also, where did the #new anchor go?

tvn’s picture

Project: [Archive] Drupal.org D7 upgrade QA » Project issue tracking
Version: » 7.x-2.x-dev
Issue tags: +Needs DSWG Dev Tools Team feedback
drumm’s picture

Project: Project issue tracking » Node changes
Version: 7.x-2.x-dev » 7.x-1.x-dev
Issue tags: -Needs DSWG Dev Tools Team feedback

This one could be tricky to implement.

The call to comment_save() happens in nodechanges_node_update(), but setting $form_state['redirect'] needs to happen in a form-related function.

nodechanges_node_update() does set $node->nodechanges_cid, so there is change that can be checked for late in the form submission process. Maybe a #submit that is executed after node module does its work.

formatC'vt’s picture

Assigned: Unassigned » formatC'vt
Status: Active » Needs review
FileSize
443 bytes

maybe drupal_goto() helps us?

drumm’s picture

Status: Needs review » Needs work

This should be setting #redirect in somewhere in form altering or processing.

formatC'vt’s picture

Status: Needs work » Needs review
FileSize
1.05 KB

stolen from comment_form_submit() =)

formatC'vt’s picture

hmm, empty() is not right choice

  • Commit a934f47 on 7.x-1.x authored by formatC'vt, committed by dww:
    [#2133545] by formatCvt: Redirect to the new comment after an update.
    

  • Commit e43b3c5 on 7.x-1.x by dww:
    [#2133545] by dww: Minor cleanups from commit a934f47d:
    
    - Code style...
dww’s picture

Status: Needs review » Fixed
Issue tags: +needs drupal.org deployment

Tested locally. Works great, both with and without paged comments. Pushed patch from #11 as commit a934f47d. Pushed a few minor code style nitpicks as commit e43b3c50. Now this just needs deployment.

Thanks!
-Derek

drumm’s picture

Issue tags: -needs drupal.org deployment

Packaged beta4 and deployed to Drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.