-
Notifications
You must be signed in to change notification settings - Fork 365
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
upcoming: [M3-7520] - AGLB Fixes and Improvements #9954
Changes from all commits
94b2465
0d156f1
35dbf26
c4aca0d
b8c39d8
5a014b9
ab6c46c
5d9f012
faa1bfa
3793553
2553e90
ba3d8af
0956f04
37e3022
7df6d06
f55d697
69d3aae
9ca5e93
08af0c1
4c3e542
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,7 +131,7 @@ export interface RuleCreatePayload { | |
} | ||
|
||
export interface MatchCondition { | ||
hostname: string; | ||
hostname: string | null; | ||
match_field: MatchField; | ||
match_value: string; | ||
session_stickiness_cookie: string | null; | ||
|
@@ -159,8 +159,8 @@ interface HealthCheck { | |
timeout: number; | ||
unhealthy_threshold: number; | ||
healthy_threshold: number; | ||
path: string; | ||
host: string; | ||
path?: string | null; | ||
host?: string | null; | ||
} | ||
|
||
export interface ServiceTarget extends ServiceTargetPayload { | ||
|
@@ -169,7 +169,7 @@ export interface ServiceTarget extends ServiceTargetPayload { | |
|
||
export interface Endpoint { | ||
ip: string; | ||
host?: string; | ||
host?: string | null; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
port: number; | ||
rate_capacity: number; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Fixed | ||
--- | ||
|
||
`TableCell` styling for `ActionMenu`s ([#9954](https://github.com/linode/manager/pull/9954)) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Upcoming Features | ||
--- | ||
|
||
AGLB copy changes and improvments ([#9954](https://github.com/linode/manager/pull/9954)) | ||
bnussman-akamai marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,14 +72,14 @@ describe('Akamai Global Load Balancer landing page', () => { | |
.should('be.visible') | ||
.closest('tr') | ||
.within(() => { | ||
// Confirm that regions are listed for load balancer. | ||
loadbalancerMock.regions.forEach((loadbalancerRegion: string) => { | ||
const regionLabel = getRegionById(loadbalancerRegion).label; | ||
cy.findByText(regionLabel, { exact: false }).should('be.visible'); | ||
cy.findByText(loadbalancerRegion, { exact: false }).should( | ||
'be.visible' | ||
); | ||
}); | ||
// TODO: AGLB - Confirm that regions from the API are listed for load balancer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. were these not working? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Dev environment does not have the same regions as prod, so we need to hardcode for now. |
||
// loadbalancerMock.regions.forEach((loadbalancerRegion: string) => { | ||
// const regionLabel = getRegionById(loadbalancerRegion).label; | ||
// cy.findByText(regionLabel, { exact: false }).should('be.visible'); | ||
// cy.findByText(loadbalancerRegion, { exact: false }).should( | ||
// 'be.visible' | ||
// ); | ||
// }); | ||
|
||
cy.findByText(loadbalancerMock.hostname).should('be.visible'); | ||
|
||
|
@@ -94,14 +94,14 @@ describe('Akamai Global Load Balancer landing page', () => { | |
.should('be.visible') | ||
.closest('tr') | ||
.within(() => { | ||
// Confirm that regions are listed for load balancer. | ||
loadbalancerMock.regions.forEach((loadbalancerRegion: string) => { | ||
const regionLabel = getRegionById(loadbalancerRegion).label; | ||
cy.findByText(regionLabel, { exact: false }).should('be.visible'); | ||
cy.findByText(loadbalancerRegion, { exact: false }).should( | ||
'be.visible' | ||
); | ||
}); | ||
// TODO: AGLB - Confirm that regions from the API are listed for load balancer | ||
// loadbalancerMock.regions.forEach((loadbalancerRegion: string) => { | ||
// const regionLabel = getRegionById(loadbalancerRegion).label; | ||
// cy.findByText(regionLabel, { exact: false }).should('be.visible'); | ||
// cy.findByText(loadbalancerRegion, { exact: false }).should( | ||
// 'be.visible' | ||
// ); | ||
// }); | ||
|
||
ui.actionMenu | ||
.findByTitle( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ import { | |
CERTIFICATES_COPY, | ||
exampleCert, | ||
exampleKey, | ||
initialValues, | ||
labelMap, | ||
titleMap, | ||
} from './constants'; | ||
|
@@ -44,12 +45,7 @@ export const CreateCertificateDrawer = (props: Props) => { | |
|
||
const formik = useFormik<CreateCertificatePayload>({ | ||
enableReinitialize: true, | ||
initialValues: { | ||
certificate: '', | ||
key: '', | ||
label: '', | ||
type, | ||
}, | ||
initialValues: initialValues[type], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added dynamic initialValues because |
||
async onSubmit(values) { | ||
try { | ||
await createCertificate(values); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ export const LoadBalancerCertificates = () => { | |
Upload certificates to your Load Balancer for use across your | ||
Configurations and Service Targets. | ||
</Typography> | ||
<Tabs index={tabIndex === -1 ? 0 : tabIndex}> | ||
<Tabs index={tabIndex === -1 ? 0 : tabIndex} onChange={() => null}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yay, thank you ππΌ I noticed this and was trying to decide the best place to mention it. |
||
<TabLinkList | ||
tabs={tabs.map((t) => ({ ...t, routeName: `${url}/${t.path}` }))} | ||
/> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ import { ActionsPanel } from 'src/components/ActionsPanel/ActionsPanel'; | |
import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; | ||
import { useLoadBalancerRouteUpdateMutation } from 'src/queries/aglb/routes'; | ||
|
||
import { getNormalizedRulePayload } from './utils'; | ||
|
||
import type { Route } from '@linode/api-v4'; | ||
|
||
interface Props { | ||
|
@@ -31,8 +33,12 @@ export const DeleteRuleDialog = (props: Props) => { | |
|
||
newRules.splice(ruleIndex, 1); | ||
|
||
const normalizedRules = newRules.map(getNormalizedRulePayload); | ||
|
||
await mutateAsync({ | ||
rules: newRules, | ||
label: route.label, | ||
protocol: route.protocol, | ||
Comment on lines
+39
to
+40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The API needs us to pass these values. Passing |
||
rules: normalizedRules, | ||
}); | ||
onClose(); | ||
}; | ||
|
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.
do we need this to be both optional and potentially null?
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 we want both because we want users to be able to pass
null
or completely omit the property.