Skip to content

"Note.line_range" and "Note.commit_id" are missing in GraphQL API

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Hi guys,

I'm a developer of the plugin for IntelliJ.

We now load merge request comments (notes) through REST API, but it seems like we need GraphQL to load emoji reactions together with comments, so we're trying to switch to GraphQL. However, GraphQL doesn't seem to return 2 fields that we use: line_range (we need it to support multiline comments) and commit_id (we need it to distinguish commit-level comments and to handle navigation properly).

The second one is less important, because we can use position.headSha, position.baseSha, and MR's commit list to find out if a comment is attached to some certain commit, but still, the web UI shows "commit" comments and "compare version" comments differently even if commit hashes are same in fact, and we won't be able to tell them apart.

The workaround now is to do 2 requests (REST and GraphQL), so we get "line_range" and "commit_id" from the first one and emoji reactions from the second one, but we wouldn't like to do this due to performance.

Edited by 🤖 GitLab Bot 🤖