-
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(dedicated): filter organizations when order ipv4 block #13464
Conversation
export const SERVER_REGION = { | ||
USA: 'USA', | ||
CANADA: 'CANADA - ASIA', | ||
EUROP: 'EUROPE', |
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.
EUROP: 'EUROPE', | |
EUROPE: 'EUROPE', |
@@ -228,13 +230,13 @@ export default class AgoraIpV4OrderController { | |||
static getRegionFromServiceName(serviceName) { | |||
const serviceExt = last(serviceName.split('.')); | |||
if (['eu', 'net'].includes(serviceExt)) { | |||
return 'EUROPE'; | |||
return SERVER_REGION.EUROP; |
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.
return SERVER_REGION.EUROP; | |
return SERVER_REGION.EUROPE; |
this.organisations = registry | ||
? organisations.filter((org) => org.registry === registry) | ||
: organisations; | ||
} else { |
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 guess we should't have a else case. This change is for all the service not only for dedicated server. We need to retain this for all service type.
d6c3612
to
db3c949
Compare
packages/manager/apps/dedicated/client/app/components/ip/agoraOrder/ipv4/ipv4.controller.js
Show resolved
Hide resolved
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 believe we need to show both the organisation for US region.
548be31
to
aed1338
Compare
@@ -372,9 +378,6 @@ export default class AgoraIpV4OrderController { | |||
.then((data) => { | |||
let countries = data; |
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 at all we have countries coming from API how will we handling the organization filter ?
We are dependent on region from service name if the country is coming as empty. And I see you have removed this logic. Shouldn't we need to keep as is and get the region based on countries ?
a921c54
to
a6e81d1
Compare
ref: MANAGER-15314 Signed-off-by: soufien mhelhali <[email protected]>
21b889a
a6e81d1
to
21b889a
Compare
Quality Gate passedIssues Measures |
master
Description
Related