-
Notifications
You must be signed in to change notification settings - Fork 39
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
✨ Proxies: rest queries and notifications #1240
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1240 +/- ##
==========================================
+ Coverage 44.03% 44.04% +0.01%
==========================================
Files 177 177
Lines 4524 4516 -8
Branches 1009 1038 +29
==========================================
- Hits 1992 1989 -3
+ Misses 2521 2452 -69
- Partials 11 75 +64
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
client/src/app/queries/proxies.ts
Outdated
export const useUpdateProxyMutation = (onSuccess: any) => { | ||
const [putResult, setPutResult] = useState<any>(null); | ||
export const useUpdateProxyMutation = ( | ||
onSuccess: (res: any) => void, |
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.
Let's add a type here for the response if it is needed.
@@ -309,22 +309,6 @@ export const deleteIdentity = (identity: Identity): AxiosPromise => { | |||
return APIClient.delete(`${IDENTITIES}/${identity.id}`); | |||
}; | |||
|
|||
export const getProxies = (): AxiosPromise<Array<Proxy>> => { | |||
return APIClient.get(`${PROXIES}`, jsonHeaders); |
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.
Nice!
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.
One small comment. Looking good though!
Signed-off-by: Gilles Dubreuil <[email protected]>
Signed-off-by: Gilles Dubreuil <[email protected]>
In continuation of work already done to align, feature by feature, here the proxy configuration to :
instead for
Alert`.