Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

qpavy
Copy link
Contributor

@qpavy qpavy commented Jan 6, 2025

Question Answer
Branch? master
Bug fix? no
New feature? no
Breaking change? no
Tickets Fix #MANAGER-16503
License BSD 3-Clause
  • Try to keep pull requests small so they can be easily reviewed.
  • Commits are signed-off
  • [ ] Only FR translations have been updated
  • Branch is up-to-date with target branch
  • Lint has passed locally
  • Standalone app was ran and tested locally
  • Ticket reference is mentioned in linked commits (internal only)
  • [ ] Breaking change is mentioned in relevant commits

Description

Refactor of folder structures:

  • Move apis call to datas/api
  • Move apis hooks to data/hooks
  • Move utils to utils folder
  • Move types to types folder
  • Move useMutation on components to dedicated hooks

Related

...params,
});

if (createCartResponse.contractList.length === 0)
Copy link
Contributor

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 ?

Copy link
Contributor Author

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]>
Copy link

sonarqubecloud bot commented Jan 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
E Security Rating on New Code (required ≥ A)

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

Make sure this OVH key gets revoked, changed, and removed from the code. See more on SonarQube Cloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants