-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add SLO cloning functionality #149935
Add SLO cloning functionality #149935
Changes from all commits
285b98c
475b7b5
8b50209
24b6386
d4e5dc3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,9 @@ export function useCreateOrUpdateSlo(): UseCreateOrUpdateSlo { | |
setSuccess(true); | ||
} catch (e) { | ||
setError(e); | ||
} finally { | ||
setSuccess(false); | ||
setLoading(false); | ||
Comment on lines
+44
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I was experimenting a bit with this pattern... will most likely revert |
||
} | ||
}, | ||
[http] | ||
|
@@ -58,6 +61,9 @@ export function useCreateOrUpdateSlo(): UseCreateOrUpdateSlo { | |
setSuccess(true); | ||
} catch (e) { | ||
setError(e); | ||
} finally { | ||
setSuccess(false); | ||
setLoading(false); | ||
} | ||
}, | ||
[http] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed React was complaining about duplicate ID's when running tests, this fixes that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes good catch I forgot to change the id for this one 🙈