Skip to content

Load build comments via GraphQL#3475

Merged
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:comment-graphql
Feb 26, 2026
Merged

Load build comments via GraphQL#3475
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:comment-graphql

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

Incremental progress towards our eventual removal of the legacy API in favor of GraphQL. This PR exposes comments via GraphQL and updates the build summary page to use the new GraphQL fields.

@josephsnyder josephsnyder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The add comment functionality needs some work. There's no longer feedback that a comment was added to the page, nor does the comment load automatically. Looking at the developer tools, the GraphQL network call has the response as expected but the comment itself doesn't appear until page refresh.

We've also lost the status of comment that appears on each entry. Is that intentional?

@williamjallen

Copy link
Copy Markdown
Collaborator Author

@josephsnyder The list now gets reloaded after adding new comments.

We've also lost the status of comment that appears on each entry. Is that intentional?

Yes, I intentionally did not expose the status via GraphQL because I think it no longer provides any value, given that most users are also using GitHub, GitLab, or similar to track issues.

@josephsnyder

Copy link
Copy Markdown
Member

Thanks for the information. It might be best if the dropdown to select that type is removed, since it means nothing now. Though, I can see a type still makes it to the database.
I found a broken Ajax link with a build and it's comments: On the Project page, clicking on the note icon leads to a 500 with an 'Undefined property:
image
image

@williamjallen

Copy link
Copy Markdown
Collaborator Author

@josephsnyder The status dropdown has now been removed. I'm planning to replace the comment creation process in a follow-up PR.

I'll create a separate PR to address the broken comment link.

@josephsnyder josephsnyder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the information! This one LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Feb 26, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 26, 2026
@josephsnyder josephsnyder added this pull request to the merge queue Feb 26, 2026
Merged via the queue into Kitware:master with commit dec91a1 Feb 26, 2026
13 of 14 checks passed
@williamjallen williamjallen deleted the comment-graphql branch February 26, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants