-
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(pci-load-balancer): Load Balancer 3AZ beta #14703
base: develop
Are you sure you want to change the base?
Conversation
ref: TAPC-2270 Signed-off-by: tsiorifamonjena <[email protected]>
ref: TAPC-2270 Signed-off-by: tsiorifamonjena <[email protected]>
ref: TAPC-2270 Signed-off-by: tsiorifamonjena <[email protected]>
feat(pci-load-balancer): [Load Balancer 3AZ] - Configuration page - Add 3-AZ tag
ref: TAPC-1523 Signed-off-by: tsiorifamonjena <[email protected]>
ref: TAPC-1523 Signed-off-by: tsiorifamonjena <[email protected]>
…-1523 feat(pci-load-balancer): Configuration page - Notify user if location selected has no private network
ref: TAPC-2486 Signed-off-by: tsiorifamonjena <[email protected]>
feat(pci.load-balancer): [Load Balancer 3AZ] - Configuration page - Add a banner for Paris-3-AZ Beta
ref: TAPC- 2270 Signed-off-by: tsiorifamonjena <[email protected]>
ref:TAPC-2304 Signed-off-by: tsiorifamonjena <[email protected]>
656688b
ref: TAPC-2304 Signed-off-by: tsiorifamonjena <[email protected]>
ref: TAPC-2304 Signed-off-by: tsiorifamonjena <[email protected]>
ref: TAPC-2304 Signed-off-by: tsiorifamonjena <[email protected]>
@@ -41,5 +41,8 @@ | |||
"octavia_load_balancer_create_name_field_label": "Nom du Load Balancer", | |||
"octavia_load_balancer_create_name_field_help": "Doit uniquement contenir des nombres, lettres, underscores, tirets ou points.", | |||
"octavia_load_balancer_create_submit": "Créer un Load Balancer", | |||
"octavia_load_balancer_create_banner": "Votre Load Balancer est en cours de création. Cela ne prendra que quelques minutes." | |||
"octavia_load_balancer_create_banner": "Votre Load Balancer est en cours de création. Cela ne prendra que quelques minutes.", | |||
"octavia_load_balancer_create_private_network": "Il n'existe aucun réseau privé dans la région sélectionnée. Assurez-vous de <link /> avant la création du Load Balancer.", |
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.
is there a word missing in <link />
?
@@ -12,6 +12,7 @@ export type TRegion = { | |||
macroName: string; | |||
microName: string; | |||
continent: string; | |||
type: string; |
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 think you can import from pci-common or improve this typing with the available types
vi.mock('@ovh-ux/manager-pci-common', () => ({ | ||
useProject: vi.fn().mockReturnValue({ data: { project_id: 'project_id' } }), | ||
RegionSelector: () => <div />, | ||
usePCICommonContextFactory: vi.fn(), | ||
PCICommonContext: { | ||
Provider: () => <></>, | ||
}, | ||
})); |
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 think you should just mock the whole module and then import each element that you need to mock specifically
const allRegions = regions | ||
? Array.from(regions, ([, values]) => values) | ||
: []; |
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 am not sure to understand this, could this be a .values() instead ?
Also this could be simplified I think
<RegionSelector | ||
projectId={project.project_id} | ||
onSelectRegion={(selectedRegion) => { | ||
store.set.region(undefined); |
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.
Why set to undefined everytime ?
ref: TAPC-2304 Signed-off-by: tsiorifamonjena <[email protected]>
Signed-off-by: CDS Translator Agent <[email protected]>
Quality Gate failedFailed conditions |
develop
Description
Related