Skip to content
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: settings API should not fail if repo server is not available #12164

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

alexmt
Copy link
Collaborator

@alexmt alexmt commented Jan 26, 2023

Signed-off-by: Alexander Matyushentsev AMatyushentsev@gmail.com

The #11615 introduced a dependency on repo server in GET /api/v1/system/settings API. However we did not consider the fact that GET /api/v1/system/settings is critical for UI. So now UI is not functional if repo-server is temporary down.

This PR is creates are separate API that exposes list of configured plugins and changes UI to use new API.

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt
Copy link
Collaborator Author

alexmt commented Jan 26, 2023

I think this is a pretty bad bug that makes UI flaky. We should cherry-pick it to v2.6 .

Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

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

Yes, the app list view was completely unusable when my repo-server was unreachable, but that shouldn't break the whole UI. Thank you!

@alexmt alexmt enabled auto-merge (squash) January 26, 2023 21:39
@alexmt alexmt merged commit 4610bc8 into argoproj:master Jan 26, 2023
alexmt added a commit that referenced this pull request Jan 26, 2023
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt alexmt deleted the plugins-settings-request branch January 26, 2023 23:17
emirot pushed a commit to emirot/argo-cd that referenced this pull request Jan 27, 2023
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: emirot <emirot.nolan@gmail.com>
schakrad pushed a commit to schakrad/argo-cd that referenced this pull request Mar 14, 2023
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: schakrad <chakradari.sindhu@gmail.com>
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