Skip to content

Commit

Permalink
Merge pull request #10652 from linode/staging
Browse files Browse the repository at this point in the history
Release v1.123.0 - `staging` → `master`
  • Loading branch information
dwiley-akamai authored Jul 8, 2024
2 parents 0e95bfc + d92c2a5 commit 574743f
Show file tree
Hide file tree
Showing 285 changed files with 7,416 additions and 3,086 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,21 @@ jobs:
- run: yarn --frozen-lockfile
- run: yarn workspace linode-manager run test

test-search:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.14"
- uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn --frozen-lockfile
- run: yarn workspace @linode/search run test

typecheck-manager:
runs-on: ubuntu-latest
needs:
Expand Down
10 changes: 10 additions & 0 deletions packages/api-v4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [2024-07-08] - v0.121.0

### Changed:

- Update `updateImageRegions` to accept `UpdateImageRegionsPayload` instead of `regions: string[]` ([#10617](https://github.com/linode/manager/pull/10617))

### Upcoming Features:

- Added types needed for DashboardSelect component ([#10589](https://github.com/linode/manager/pull/10589))

## [2024-06-24] - v0.120.0

### Added:
Expand Down
2 changes: 1 addition & 1 deletion packages/api-v4/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linode/api-v4",
"version": "0.120.0",
"version": "0.121.0",
"homepage": "https://github.com/linode/manager/tree/develop/packages/api-v4",
"bugs": {
"url": "https://github.com/linode/manager/issues"
Expand Down
11 changes: 11 additions & 0 deletions packages/api-v4/src/cloudpulse/dashboards.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ResourcePage } from 'src/types';
import Request, { setMethod, setURL } from '../request';
import { Dashboard } from './types';
import { API_ROOT } from 'src/constants';

//Returns the list of all the dashboards available
export const getDashboards = () =>
Request<ResourcePage<Dashboard>>(
setURL(`${API_ROOT}/monitor/services/linode/dashboards`),
setMethod('GET')
);
3 changes: 3 additions & 0 deletions packages/api-v4/src/cloudpulse/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './types';

export * from './dashboards';
45 changes: 45 additions & 0 deletions packages/api-v4/src/cloudpulse/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
export interface Dashboard {
id: number;
label: string;
widgets: Widgets[];
created: string;
updated: string;
time_duration: TimeDuration;
service_type: string;
}

export interface TimeGranularity {
unit: string;
value: number;
}

export interface TimeDuration {
unit: string;
value: number;
}

export interface Widgets {
label: string;
metric: string;
aggregate_function: string;
group_by: string;
region_id: number;
namespace_id: number;
color: string;
size: number;
chart_type: string;
y_label: string;
filters: Filters[];
serviceType: string;
service_type: string;
resource_id: string[];
time_granularity: TimeGranularity;
time_duration: TimeDuration;
unit: string;
}

export interface Filters {
key: string;
operator: string;
value: string;
}
15 changes: 7 additions & 8 deletions packages/api-v4/src/images/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type {
Image,
ImageUploadPayload,
UpdateImagePayload,
UpdateImageRegionsPayload,
UploadImageResponse,
} from './types';

Expand Down Expand Up @@ -99,16 +100,14 @@ export const uploadImage = (data: ImageUploadPayload) => {
};

/**
* Selects the regions to which this image will be replicated.
* updateImageRegions
*
* @param imageId { string } ID of the Image to look up.
* @param regions { string[] } ID of regions to replicate to. Must contain at least one valid region.
* Selects the regions to which this image will be replicated.
*/
export const updateImageRegions = (imageId: string, regions: string[]) => {
const data = {
regions,
};

export const updateImageRegions = (
imageId: string,
data: UpdateImageRegionsPayload
) => {
return Request<Image>(
setURL(`${API_ROOT}/images/${encodeURIComponent(imageId)}/regions`),
setMethod('POST'),
Expand Down
9 changes: 8 additions & 1 deletion packages/api-v4/src/images/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ImageCapabilities = 'cloud-init' | 'distributed-images';

type ImageType = 'manual' | 'automatic';

type ImageRegionStatus =
export type ImageRegionStatus =
| 'creating'
| 'pending'
| 'available'
Expand Down Expand Up @@ -154,3 +154,10 @@ export interface ImageUploadPayload extends BaseImagePayload {
label: string;
region: string;
}

export interface UpdateImageRegionsPayload {
/**
* An array of region ids
*/
regions: string[];
}
2 changes: 2 additions & 0 deletions packages/api-v4/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export * from './account';

export * from './aclb';

export * from './cloudpulse';

export * from './databases';

export * from './domains';
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 @@ -6,6 +6,7 @@ export type Capabilities =
| 'Block Storage Migrations'
| 'Cloud Firewall'
| 'Disk Encryption'
| 'Distributed Plans'
| 'GPU Linodes'
| 'Kubernetes'
| 'Linodes'
Expand Down
54 changes: 54 additions & 0 deletions packages/manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,60 @@ 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-07-08] - v1.123.0

### Added:

- Design Tokens (CDS 2.0) ([#10022](https://github.com/linode/manager/pull/10022))
- Design update dismissible banner ([#10640](https://github.com/linode/manager/pull/10640))

### Changed:

- Rebuild Linode drawer ([#10594](https://github.com/linode/manager/pull/10594))
- Auto-populate Image label based on Linode and Disk names ([#10604](https://github.com/linode/manager/pull/10604))
- Update Linode disk action menu ([#10614](https://github.com/linode/manager/pull/10614))

### Fixed:

- Potential runtime issue with conditional hook ([#10584](https://github.com/linode/manager/pull/10584))
- Visual bug inside Node Pools table ([#10599](https://github.com/linode/manager/pull/10599))
- Linode Resize dialog UX when linode data is loading or there is an error ([#10618](https://github.com/linode/manager/pull/10618))

### Removed:

- Region helper text on the Image Upload page ([#10642](https://github.com/linode/manager/pull/10642))

### Tech Stories:

- Refactor `SupportTicketDialog` with React Hook Form ([#10557](https://github.com/linode/manager/pull/10557))
- Query Key Factory for ACLB ([#10598](https://github.com/linode/manager/pull/10598))
- Make `Factory.each` start incrementing at 1 instead of 0 ([#10619](https://github.com/linode/manager/pull/10619))

### Tests:

- Cypress integration test for SSH key update and delete ([#10542](https://github.com/linode/manager/pull/10542))
- Refactor Cypress Longview test to use mock API data/events ([#10579](https://github.com/linode/manager/pull/10579))
- Add assertions for created LKE cluster in Cypress LKE tests ([#10593](https://github.com/linode/manager/pull/10593))
- Update Object Storage tests to mock account capabilities as needed for Multicluster ([#10602](https://github.com/linode/manager/pull/10602))
- Fix OBJ test failure caused by visiting hardcoded and out-of-date URL ([#10609](https://github.com/linode/manager/pull/10609))
- Combine VPC details page subnet create, edit, and delete Cypress tests ([#10612](https://github.com/linode/manager/pull/10612))
- De-parameterize Cypress Domain Record Create tests ([#10615](https://github.com/linode/manager/pull/10615))
- De-parameterize Cypress Deep Link smoke tests ([#10622](https://github.com/linode/manager/pull/10622))
- Improve security of Linodes created during tests ([#10633](https://github.com/linode/manager/pull/10633))

### Upcoming Features:

- Gecko GA Region Select ([#10479](https://github.com/linode/manager/pull/10479))
- Add Dashboard Selection component inside the Global Filters of CloudPulse view ([#10589](https://github.com/linode/manager/pull/10589))
- Conditionally disable regions based on the selected image on Linode Create ([#10607](https://github.com/linode/manager/pull/10607))
- Prevent Linode Create v2 from toggling mid-creation ([#10611](https://github.com/linode/manager/pull/10611))
- Add new search query parser to Linode Create v2 StackScripts tab ([#10613](https://github.com/linode/manager/pull/10613))
- Add ‘Manage Image Regions’ Drawer ([#10617](https://github.com/linode/manager/pull/10617))
- Add Marketplace Cluster pricing support to Linode Create v2 ([#10623](https://github.com/linode/manager/pull/10623))
- Add debouncing to the Linode Create v2 `VLANSelect` ([#10628](https://github.com/linode/manager/pull/10628))
- Add Validation to Linode Create v2 Marketplace Tab ([#10629](https://github.com/linode/manager/pull/10629))
- Add Image distributed compatibility notice to Linode Create ([#10636](https://github.com/linode/manager/pull/10636))

## [2024-06-24] - v1.122.0

### Added:
Expand Down
Loading

0 comments on commit 574743f

Please sign in to comment.