Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With #3071755: Show merge request activity on www.drupal.org issues, we will be showing all comments on merge requests associated with an issue in that issue. Currently, these are just collapsed into a linear list of activity. We should either:
- Add a note about which thread a comment is in reply to, keeping the ability to catch up in a linear way.
- Thread the comments in the issue, keeping the structure of the conversation.
- Thread the comments in the issue, and order them by the last reply time, keeping the structure, and some of the linear flattening.
Comment | File | Size | Author |
---|
Issue fork drupalorg-3158852
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mglamanI was doing some poking and saw the GitLab MR loads this URL: https://git.drupalcode.org/project/commerce_api/-/merge_requests/2/discu...
Each discussions contains the Notes and
truncated_diff_lines
. This contains the files which were commented on!This is the first three lines from the following discussion and note
Comment #4
drummThe initial deployment here adds some context for notes that are replies.
This could use some additional styling, and potentially highlighting the notes in the thread on hover.
Comment #7
drummhttps://git.drupalcode.org/project/commerce_api/-/merge_requests/2/discu... isn’t a documented API, so I’m hesitant to rely on it. I did find the
position
property of notes. Combined with https://docs.gitlab.com/ee/api/repositories.html#compare-branches-tags-o..., we should be able to build our own truncated diff. However, I discovered a bug where getting the position 500s the whole query after a note is edited, https://gitlab.com/gitlab-org/gitlab/-/issues/255934. I expect editing notes will happen often enough, so we have to backlog this until the GitLab issue is resolved.Comment #8
drummI split off showing the diff context into #3173909: Show diff snippets for merge request notes.
With previous deployments from this issue, notes now have:
That accomplishes what I wanted for this issue. Followups can be more-targeted issues.