-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat(vrack-services): refactor codebase to follow best practices #14784
base: master
Are you sure you want to change the base?
Conversation
ref: MANAGER-16503 Signed-off-by: Quentin Pavy <[email protected]>
packages/manager/apps/vrack-services/src/components/OrderSubmitModalContent.component.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/vrack-services/src/components/OrderSubmitModalContent.component.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/vrack-services/src/data/hooks/useCreateCart.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/vrack-services/src/data/hooks/useCreateCart.ts
Outdated
Show resolved
Hide resolved
...params, | ||
}); | ||
|
||
if (createCartResponse.contractList.length === 0) |
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.
if it doesn't we should throw an error ?
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.
nop, the useCreateCart just return the response if there is contract. then the ui will show the contract list for customer approval. In case there is no contract, we keep the next steps by making the order directly
ref: MANAGER-16503 Signed-off-by: Quentin Pavy <[email protected]>
2916fc9
to
85a5539
Compare
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
useUpdateVrackServices, | ||
useVrackService, | ||
} from '@/data'; | ||
import { getVrackServicesResourceQueryKey } from '@/data/api'; |
Check failure
Code scanning / SonarCloud
OVH keys should not be disclosed High
master
[ ] Only FR translations have been updated[ ] Breaking change is mentioned in relevant commitsDescription
Refactor of folder structures:
Related