Skip to content

Commit

Permalink
change: [M3-7721] - Finish AGLB to ACLB rename (#10151)
Browse files Browse the repository at this point in the history
* rename react query queries folder

* rename aclb factory

* rename api-v4 folder

* update msw handlers

* update api endpoint in api-v4 calls

* update cypress interceptors

* update unit test api endpoint mock urls

* update todo comments

* fix breadcrumb on the full create flow summary page

---------

Co-authored-by: Banks Nussman <banks@nussman.us>
  • Loading branch information
bnussman-akamai and bnussman authored Feb 12, 2024
1 parent 35521e0 commit 5aabcf0
Show file tree
Hide file tree
Showing 61 changed files with 141 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getLoadbalancerCertificates = (
) =>
Request<ResourcePage<Certificate>>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(loadbalancerId)}/certificates`
`${BETA_API_ROOT}/aclb/${encodeURIComponent(loadbalancerId)}/certificates`
),
setMethod('GET'),
setParams(params),
Expand All @@ -47,7 +47,7 @@ export const getLoadbalancerCertificate = (
) =>
Request<Certificate>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/certificates/${encodeURIComponent(certificateId)}`
),
Expand All @@ -65,7 +65,7 @@ export const createLoadbalancerCertificate = (
) =>
Request<Certificate>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(loadbalancerId)}/certificates`
`${BETA_API_ROOT}/aclb/${encodeURIComponent(loadbalancerId)}/certificates`
),
setMethod('POST'),
setData(data, CreateCertificateSchema)
Expand All @@ -83,7 +83,7 @@ export const updateLoadbalancerCertificate = (
) =>
Request<Certificate>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/certificates/${encodeURIComponent(certificateId)}`
),
Expand All @@ -102,7 +102,7 @@ export const deleteLoadbalancerCertificate = (
) =>
Request<{}>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/certificates/${encodeURIComponent(certificateId)}`
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getLoadbalancerConfigurations = (
) =>
Request<ResourcePage<Configuration>>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/configurations`
),
Expand All @@ -50,7 +50,7 @@ export const getLoadbalancerConfiguration = (
) =>
Request<Configuration>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/configurations/${encodeURIComponent(configurationId)}`
),
Expand All @@ -67,7 +67,7 @@ export const getLoadbalancerConfigurationsEndpointHealth = (
) =>
Request<ConfigurationsEndpointHealth>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/configurations/endpoints-health`
),
Expand All @@ -85,7 +85,7 @@ export const createLoadbalancerConfiguration = (
) =>
Request<Configuration>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/configurations`
),
Expand All @@ -105,7 +105,7 @@ export const updateLoadbalancerConfiguration = (
) =>
Request<Configuration>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/configurations/${encodeURIComponent(configurationId)}`
),
Expand All @@ -124,7 +124,7 @@ export const deleteLoadbalancerConfiguration = (
) =>
Request<{}>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/configurations/${encodeURIComponent(configurationId)}`
),
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { CreateBasicLoadbalancerSchema } from '@linode/validation';
*/
export const getLoadbalancers = (params?: Params, filter?: Filter) =>
Request<ResourcePage<Loadbalancer>>(
setURL(`${BETA_API_ROOT}/aglb`),
setURL(`${BETA_API_ROOT}/aclb`),
setMethod('GET'),
setParams(params),
setXFilter(filter)
Expand All @@ -36,7 +36,7 @@ export const getLoadbalancers = (params?: Params, filter?: Filter) =>
*/
export const getLoadbalancer = (id: number) =>
Request<Loadbalancer>(
setURL(`${BETA_API_ROOT}/aglb/${encodeURIComponent(id)}`),
setURL(`${BETA_API_ROOT}/aclb/${encodeURIComponent(id)}`),
setMethod('GET')
);

Expand All @@ -47,7 +47,7 @@ export const getLoadbalancer = (id: number) =>
*/
export const getLoadbalancerEndpointHealth = (id: number) =>
Request<LoadBalancerEndpointHealth>(
setURL(`${BETA_API_ROOT}/aglb/${encodeURIComponent(id)}/endpoints-health`),
setURL(`${BETA_API_ROOT}/aclb/${encodeURIComponent(id)}/endpoints-health`),
setMethod('GET')
);

Expand All @@ -58,7 +58,7 @@ export const getLoadbalancerEndpointHealth = (id: number) =>
*/
export const createLoadbalancer = (data: CreateLoadbalancerPayload) =>
Request<Loadbalancer>(
setURL(`${BETA_API_ROOT}/aglb`),
setURL(`${BETA_API_ROOT}/aclb`),
setData(data),
setMethod('POST')
);
Expand All @@ -70,7 +70,7 @@ export const createLoadbalancer = (data: CreateLoadbalancerPayload) =>
*/
export const createBasicLoadbalancer = (data: CreateBasicLoadbalancerPayload) =>
Request<Loadbalancer>(
setURL(`${BETA_API_ROOT}/aglb`),
setURL(`${BETA_API_ROOT}/aclb`),
setData(data, CreateBasicLoadbalancerSchema),
setMethod('POST')
);
Expand All @@ -85,7 +85,7 @@ export const updateLoadbalancer = (
data: UpdateLoadbalancerPayload
) =>
Request<Loadbalancer>(
setURL(`${BETA_API_ROOT}/aglb/${encodeURIComponent(id)}`),
setURL(`${BETA_API_ROOT}/aclb/${encodeURIComponent(id)}`),
setData(data),
setMethod('PUT')
);
Expand All @@ -97,6 +97,6 @@ export const updateLoadbalancer = (
*/
export const deleteLoadbalancer = (id: number) =>
Request<{}>(
setURL(`${BETA_API_ROOT}/aglb/${encodeURIComponent(id)}`),
setURL(`${BETA_API_ROOT}/aclb/${encodeURIComponent(id)}`),
setMethod('DELETE')
);
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getLoadbalancerRoutes = (
) =>
Request<ResourcePage<Route>>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(loadbalancerId)}/routes`
`${BETA_API_ROOT}/aclb/${encodeURIComponent(loadbalancerId)}/routes`
),
setMethod('GET'),
setParams(params),
Expand All @@ -37,7 +37,7 @@ export const getLoadbalancerRoutes = (
export const getLoadbalancerRoute = (loadbalancerId: number, routeId: number) =>
Request<Route>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/routes/${encodeURIComponent(routeId)}`
),
Expand All @@ -55,7 +55,7 @@ export const createLoadbalancerRoute = (
) =>
Request<Route>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(loadbalancerId)}/routes`
`${BETA_API_ROOT}/aclb/${encodeURIComponent(loadbalancerId)}/routes`
),
setData(data, CreateRouteSchema),
setMethod('POST')
Expand All @@ -73,7 +73,7 @@ export const updateLoadbalancerRoute = (
) =>
Request<Route>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/routes/${encodeURIComponent(routeId)}`
),
Expand All @@ -92,7 +92,7 @@ export const deleteLoadbalancerRoute = (
) =>
Request<{}>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/routes/${encodeURIComponent(routeId)}`
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getLoadbalancerServiceTargets = (
) =>
Request<ResourcePage<ServiceTarget>>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/service-targets`
),
Expand All @@ -49,7 +49,7 @@ export const getServiceTarget = (
) =>
Request<ServiceTarget>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/service-targets/${encodeURIComponent(serviceTargetId)}`
),
Expand All @@ -64,7 +64,7 @@ export const getServiceTarget = (
export const getServiceTargetsEndpointHealth = (loadbalancerId: number) =>
Request<ServiceTargetsEndpointHealth>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/service-targets/endpoints-health`
),
Expand All @@ -82,7 +82,7 @@ export const createLoadbalancerServiceTarget = (
) =>
Request<ServiceTarget>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/service-targets`
),
Expand All @@ -102,7 +102,7 @@ export const updateLoadbalancerServiceTarget = (
) =>
Request<ServiceTarget>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/service-targets/${encodeURIComponent(serviceTargetId)}`
),
Expand All @@ -121,7 +121,7 @@ export const deleteLoadbalancerServiceTarget = (
) =>
Request<{}>(
setURL(
`${BETA_API_ROOT}/aglb/${encodeURIComponent(
`${BETA_API_ROOT}/aclb/${encodeURIComponent(
loadbalancerId
)}/service-targets/${encodeURIComponent(serviceTargetId)}`
),
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/api-v4/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './account';

export * from './aglb';
export * from './aclb';

export * from './databases';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file Integration tests for Akamai Cloud Load Balancer summary page.
*/

import { loadbalancerFactory, configurationFactory } from '@src/factories/aglb';
import { loadbalancerFactory, configurationFactory } from '@src/factories/aclb';
import {
mockAppendFeatureFlags,
mockGetFeatureFlagClientstream,
Expand Down
Loading

0 comments on commit 5aabcf0

Please sign in to comment.