-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: avoid performance degradation with Github and --hide-prev-plan-comments enabled #5241
base: main
Are you sure you want to change the base?
fix: avoid performance degradation with Github and --hide-prev-plan-comments enabled #5241
Conversation
30b722f
to
4f5b17f
Compare
Thanks for this @oleg-glushak. Can you check the linting error: https://github.com/runatlantis/atlantis/pull/5241/files#annotation_30986616047 |
Signed-off-by: oleg-glushak <[email protected]>
Signed-off-by: oleg-glushak <[email protected]>
…omments enabled Signed-off-by: oleg-glushak <[email protected]>
Signed-off-by: oleg-glushak <[email protected]>
Signed-off-by: oleg-glushak <[email protected]>
Signed-off-by: oleg-glushak <[email protected]>
Signed-off-by: oleg-glushak <[email protected]>
485dde2
to
6b0868f
Compare
Thanks @X-Guardian The pull requests is ready for review again. |
I'm not keen on just ignoring the linter with a generic message. Can you investigate further? Also, can you try and avoid force pushing changes to the branch if you can, as this loses the links to previous check runs. |
Thanks for your feedback @X-Guardian . The same approach was used in a pull request merged last month: here. As far as I understand we either have to ignore this warning or switch from Please let me know, if you have a strong opinion which way I should follow or if I understand something wrong. |
@X-Guardian @jamengual I'd be happy to invest more time to push the pull request forward. Just let me know, if you have a strong opinion, if we need to do further work here. |
Can you use the same lint annotation as the previous PR then and add a TODO comment to the |
@X-Guardian Done. The pull request is ready for review. |
what
Switch from GitHub REST API to GitHub GraphQL for listing comments to expose the
isMinimized
attribute to avoid minimizing already minimized comments on each Atlantis command execution.why
This helps to avoid performance degradation by minimizing only non-minimized Atlantis comments, as opposed to processing all comments sequentially on each Atlantis command execution.
tests
references
Closes #5232