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(pci-load-balancer): Load Balancer 3AZ beta #14703

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

Tsiorifamonjena
Copy link
Contributor

@Tsiorifamonjena Tsiorifamonjena commented Dec 23, 2024

Question Answer
Branch? develop
Bug fix? no
New feature? yes
Breaking change? no
Tickets Fix #TAPC-2270, #TAPC-1523, #TAPC-2486
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

  • TAPC-2270
  • TAPC-1523
  • TAPC-2486

Related

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]>
…-1523

feat(pci-load-balancer): Configuration page - Notify user if location selected has no private network
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]>
qpavy
qpavy previously approved these changes Dec 24, 2024
lionel95200x
lionel95200x previously approved these changes Dec 24, 2024
oalkabouss
oalkabouss previously approved these changes Dec 26, 2024
@Tsiorifamonjena Tsiorifamonjena marked this pull request as draft January 6, 2025 11:05
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.",
Copy link
Contributor

@SimonChaumet SimonChaumet Jan 14, 2025

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;
Copy link
Contributor

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

Comment on lines +11 to +18
vi.mock('@ovh-ux/manager-pci-common', () => ({
useProject: vi.fn().mockReturnValue({ data: { project_id: 'project_id' } }),
RegionSelector: () => <div />,
usePCICommonContextFactory: vi.fn(),
PCICommonContext: {
Provider: () => <></>,
},
}));
Copy link
Contributor

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

Comment on lines +54 to +56
const allRegions = regions
? Array.from(regions, ([, values]) => values)
: [];
Copy link
Contributor

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);
Copy link
Contributor

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]>
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Jan 15, 2025
Copy link
Contributor

yarn.lock changes

Click to toggle table visibility
Name Status Previous Current
@ovh-ux/manager-pci-common UPDATED 0.14.2 0.15.0

@Tsiorifamonjena Tsiorifamonjena marked this pull request as ready for review January 15, 2025 11:09
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants