PMM-15051 Wait for settings endpoint to be ready after public address update#5366
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates settings retrieval so the UI can wait for the settings endpoint to become available after changing the PMM public address.
Changes:
- Adds Axios request config support to
getSettings. - Passes optional Axios config through
useSettings. - Adds post-update polling in
useUpdateSettingswhen the public address changes.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
ui/apps/pmm/src/types/api.types.ts |
Adds React Query option typing for Axios config. |
ui/apps/pmm/src/hooks/api/useSettings.ts |
Uses Axios config in settings queries and waits for settings readiness after public address changes. |
ui/apps/pmm/src/api/settings.ts |
Allows getSettings to receive Axios request config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
|
@copilot fix the following issue with the type imports for the UseQueryDetails: |
Contributor
Contributor
Contributor
|
@copilot remove unused imports |
Contributor
fabio-silva
approved these changes
May 18, 2026
mattiasimonato
approved these changes
May 18, 2026
886a380 to
d736969
Compare
c07b4c3 to
af33b50
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PMM-15051
FB: SUBMODULES-4355