-
Notifications
You must be signed in to change notification settings - Fork 19
Convert API calls to the v1 endpoints #1366
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
b43e1ac to
64681d0
Compare
64681d0 to
8c4caa1
Compare
8c4caa1 to
4cde77b
Compare
| instanceNetworkInterfaceDelete(params) { | ||
| const nic = lookupNetworkInterface(params.path) | ||
| instanceNetworkInterfaceDeleteV1({ path, query }) { | ||
| const nic = lookup.networkInterface({ ...path, ...query }) |
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.
The changes in this file are trivial, so that's good. The calling code badly needs some helpers to clean it up.
| }: CreateSideModalFormProps) { | ||
| const queryClient = useApiQueryClient() | ||
| const pathParams = useRequiredParams('orgName', 'projectName') | ||
| const projectSelector = useProjectSelector() |
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 do like this API overall.
a371aeb to
18e0083
Compare
I did all the ones that are in the API and currently being used in the console.
Things to note
Updating list as I go:
setQueryData, we need to make sure we're using the exact same parameters in all the relevant spots. We can'tsetQueryDataby ID in one place and then do the lookup by name.Followup work
projectNametoproject, etc. There's no reason they need to be different from the API ones, I was just trying to make the diff less ridiculous