Skip to content

Commit

Permalink
Merge branch 'develop' into M3-7287
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureLatte committed Aug 26, 2024
2 parents d7183db + 4f29734 commit 6fc7062
Show file tree
Hide file tree
Showing 131 changed files with 2,214 additions and 1,825 deletions.
2 changes: 0 additions & 2 deletions docs/development-guide/01-repository-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ A few notable directories in the root level of the manager package:
- end-to-end tests
- **/e2e**
- old end-to-end tests [deprecated]
- **/patches**
- patches applied to dependencies via patch-package
- **/public**
- assets, fonts, HTML, and third-party JS
- **/scripts**
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"devDependencies": {
"husky": "^3.0.1",
"npm-run-all": "^4.1.5",
"patch-package": "^7.0.0",
"postinstall": "^0.6.0",
"typescript": "^5.4.5"
},
Expand All @@ -19,7 +18,6 @@
"cost-of-modules": "yarn global add cost-of-modules && cost-of-modules --less --no-install --include-dev",
"install:all": "yarn install --frozen-lockfile",
"upgrade:sdk": "yarn workspace @linode/api-v4 version --no-git-tag-version --no-commit-hooks && yarn workspace linode-manager upgrade @linode/api-v4",
"postinstall": "echo \"Skipping Patching: yarn workspaces run postinstall && patch-package\"",
"build:sdk": "yarn workspace @linode/api-v4 build",
"build:validation": "yarn workspace @linode/validation build",
"build": "yarn build:validation && yarn build:sdk && yarn workspace linode-manager build",
Expand Down
5 changes: 5 additions & 0 deletions packages/api-v4/.changeset/pr-10786-added-1723662117687.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Added
---

Managed Databases V2` capability and types ([#10786](https://github.com/linode/manager/pull/10786))
5 changes: 5 additions & 0 deletions packages/api-v4/.changeset/pr-10801-changed-1724274276545.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Changed
---

Deprecated `getClusters` ([#10801](https://github.com/linode/manager/pull/10801))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Upcoming Features
---

Change resource_id to resource_ids in CloudPulseMetricRequest interface and add two new interfaces. Add getCloudPulseServiceTypes to fetch list of service types & modify getDashboards function to accept serviceType parameter ([#10805](https://github.com/linode/manager/pull/10805))
2 changes: 1 addition & 1 deletion packages/api-v4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"unpkg": "./lib/index.global.js",
"dependencies": {
"@linode/validation": "*",
"axios": "~1.6.8",
"axios": "~1.7.4",
"ipaddr.js": "^2.0.0",
"yup": "^0.32.9"
},
Expand Down
1 change: 1 addition & 0 deletions packages/api-v4/src/account/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export type AccountCapability =
| 'LKE HA Control Planes'
| 'Machine Images'
| 'Managed Databases'
| 'Managed Databases V2'
| 'NodeBalancers'
| 'Object Storage Access Key Regions'
| 'Object Storage Endpoint Types'
Expand Down
8 changes: 6 additions & 2 deletions packages/api-v4/src/cloudpulse/dashboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ import { Dashboard } from './types';
import { API_ROOT } from 'src/constants';

// Returns the list of all the dashboards available
export const getDashboards = () =>
export const getDashboards = (serviceType: string) =>
Request<ResourcePage<Dashboard>>(
setURL(`${API_ROOT}/monitor/services/linode/dashboards`),
setURL(
`${API_ROOT}/monitor/services/${encodeURIComponent(
serviceType
)}/dashboards`
),
setMethod('GET')
);

Expand Down
14 changes: 13 additions & 1 deletion packages/api-v4/src/cloudpulse/services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { API_ROOT } from 'src/constants';
import Request, { setData, setMethod, setURL } from '../request';
import { JWEToken, JWETokenPayLoad, MetricDefinitions } from './types';
import {
JWEToken,
JWETokenPayLoad,
MetricDefinitions,
ServiceTypesList,
} from './types';
import { ResourcePage as Page } from 'src/types';

export const getMetricDefinitionsByServiceType = (serviceType: string) => {
Expand All @@ -22,3 +27,10 @@ export const getJWEToken = (data: JWETokenPayLoad, serviceType: string) =>
setMethod('POST'),
setData(data)
);

// Returns the list of service types available
export const getCloudPulseServiceTypes = () =>
Request<ServiceTypesList>(
setURL(`${API_ROOT}/monitor/services`),
setMethod('GET')
);
10 changes: 9 additions & 1 deletion packages/api-v4/src/cloudpulse/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export interface CloudPulseMetricsRequest {
group_by: string;
relative_time_duration: TimeDuration;
time_granularity: TimeGranularity | undefined;
resource_id: number[];
resource_ids: number[];
}

export interface CloudPulseMetricsResponse {
Expand All @@ -124,3 +124,11 @@ export interface CloudPulseMetricsList {
metric: { [resourceName: string]: string };
values: [number, string][];
}

export interface ServiceTypes {
service_type: string;
}

export interface ServiceTypesList {
data: ServiceTypes[];
}
4 changes: 3 additions & 1 deletion packages/api-v4/src/databases/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ export interface DatabaseInstance {
* A key/value object where the key is an IP address and the value is a member type.
*/
members: Record<string, MemberType>;
platform?: string;
}

export type ClusterSize = 1 | 3;
export type ClusterSize = 1 | 2 | 3;

type ReadonlyCount = 0 | 2;

export type MySQLReplicationType = 'none' | 'semi_synch' | 'asynch';
Expand Down
6 changes: 3 additions & 3 deletions packages/api-v4/src/object-storage/clusters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { Filter, Params, ResourcePage as Page } from '../types';
import { ObjectStorageCluster } from './types';

/**
* getClusters
*
* Gets a list of available clusters
* @deprecated This method returns legacy clusterId values representing regions
* used in older API versions. It is maintained for backward compatibility only.
* Please use the "getRegions" endpoint instead for up-to-date information.
*/
export const getClusters = (params?: Params, filters?: Filter) =>
Request<Page<ObjectStorageCluster>>(
Expand Down
1 change: 1 addition & 0 deletions packages/api-v4/src/regions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type Capabilities =
| 'Kubernetes'
| 'Linodes'
| 'Managed Databases'
| 'Managed Databases V2'
| 'Metadata'
| 'NodeBalancers'
| 'Object Storage'
Expand Down
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10781-tests-1723573598915.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Add test for Linode VPC config not recommended notices ([#10781](https://github.com/linode/manager/pull/10781))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10784-added-1723651941893.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

CheckoutBar Story ([#10784](https://github.com/linode/manager/pull/10784))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Update DBaaS menu item with V1 or V2 capability, add mock data ([#10786](https://github.com/linode/manager/pull/10786))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Add "Encryption" column to Linode Volumes table ([#10793](https://github.com/linode/manager/pull/10793))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Display Endpoint Type alongside each endpoint hostname in Regions Column & Hostnames Drawers ([#10796](https://github.com/linode/manager/pull/10796))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Remove `patch-package` package ([#10800](https://github.com/linode/manager/pull/10800))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Add useRegionQuery and cleanup bucket landing page ([#10801](https://github.com/linode/manager/pull/10801))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Add 'Encrypt Volume' checkbox to Clone Volume drawer ([#10803](https://github.com/linode/manager/pull/10803))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Modify CloudPulseDashboardSelect and its relevant queries to support multiple service types in the list ([#10805](https://github.com/linode/manager/pull/10805))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10809-changed-1724354812801.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Storybook nav organization ([#10809](https://github.com/linode/manager/pull/10809))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10811-tests-1724336950451.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Resolve StackScripts pagination test failure ([#10811](https://github.com/linode/manager/pull/10811))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10818-tests-1724394944251.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Add unit test cases for CheckoutBar component ([#10818](https://github.com/linode/manager/pull/10818))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10824-fixed-1724428840947.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Event handlers making a proportional number of GET requests to the number of incoming events ([#10824](https://github.com/linode/manager/pull/10824))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Update storybook to fix IP package vulnerability ([#10827](https://github.com/linode/manager/pull/10827))
9 changes: 8 additions & 1 deletion packages/manager/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ const preview: Preview = {
options: {
storySort: {
method: 'alphabetical',
order: ['Intro', 'Core Styles', 'Components', 'Features'],
order: [
'Intro',
'Design System',
'Icons',
'Foundations',
'Components',
'Features',
],
},
},
viewport: {
Expand Down
6 changes: 6 additions & 0 deletions packages/manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## [2024-08-22] - v1.126.1

### Fix:

- Re-enable CORS for Legacy/Gen1 Endpoints ([#10812](https://github.com/linode/manager/pull/10812))

## [2024-08-19] - v1.126.0

### Added:
Expand Down
Loading

0 comments on commit 6fc7062

Please sign in to comment.