Skip to content

Commit

Permalink
Merge pull request #10041 from linode/staging
Browse files Browse the repository at this point in the history
Release v1.109.0 - staging → master
  • Loading branch information
bnussman-akamai authored Jan 8, 2024
2 parents d77434c + ac2d49e commit 36cc200
Show file tree
Hide file tree
Showing 270 changed files with 9,456 additions and 4,608 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ on:
pull_request:

jobs:
lint:
strategy:
matrix:
package: ['linode-manager', '@linode/api-v4', '@linode/validation']
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 ${{ matrix.package }} run lint

build-validation:
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ jobs:
- name: Install Dependencies
run: yarn --frozen-lockfile

- name: Run build
run: yarn build
- name: Build @linode/validation
run: yarn build:validation

- name: Build @linode/api-v4
run: yarn build:sdk

- name: Run Base Branch Coverage
run: yarn coverage:summary
Expand Down Expand Up @@ -65,8 +68,11 @@ jobs:
- name: Install Dependencies
run: yarn --frozen-lockfile

- name: Run Build
run: yarn build
- name: Build @linode/validation
run: yarn build:validation

- name: Build @linode/api-v4
run: yarn build:sdk

- name: Run Current Branch Coverage
run: yarn coverage:summary
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/coverage_badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:
- name: Install Dependencies
run: yarn --frozen-lockfile

- name: Run Build
run: yarn build
- name: Build @linode/validation
run: yarn build:validation

- name: Build @linode/api-v4
run: yarn build:sdk

- name: Run Base Branch Coverage
run: yarn coverage:summary
Expand Down
11 changes: 11 additions & 0 deletions packages/api-v4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## [2024-01-08] - v0.107.0


### Added:

- Optional `headers` to `getProfile` function ([#9987](https://github.com/linode/manager/pull/9987))

### Tech Stories:

- Add Lint GitHub Action ([#9973](https://github.com/linode/manager/pull/9973))

## [2023-12-11] - v0.106.0


Expand Down
4 changes: 2 additions & 2 deletions 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.106.0",
"version": "0.107.0",
"homepage": "https://github.com/linode/manager/tree/develop/packages/api-v4",
"bugs": {
"url": "https://github.com/linode/manager/issues"
Expand Down Expand Up @@ -67,7 +67,7 @@
"lint-staged": "^13.2.2",
"prettier": "~2.2.1",
"tsup": "^7.2.0",
"vitest": "^0.34.6"
"vitest": "^1.0.1"
},
"lint-staged": {
"*.{ts,tsx,js}": [
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 @@ -68,6 +68,7 @@ export type AccountCapability =
| 'Machine Images'
| 'Managed Databases'
| 'NodeBalancers'
| 'Object Storage Access Key Regions'
| 'Object Storage'
| 'Vlans'
| 'VPCs';
Expand Down
6 changes: 6 additions & 0 deletions packages/api-v4/src/firewalls/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export interface Firewall {
rules: FirewallRules;
created_dt: string;
updated_dt: string;
entities: {
id: number;
type: FirewallDeviceEntityType;
label: string;
url: string;
}[];
}

export interface FirewallRules {
Expand Down
4 changes: 3 additions & 1 deletion packages/api-v4/src/object-storage/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export interface UpdateObjectStorageKeyRequest {

export interface ObjectStorageBucketRequestPayload {
label: string;
cluster: string;
region?: string; // @TODO OBJ Multicluster - This field will become required, and the 'cluster' field will be deprecated once the feature is fully rolled out in production as part of the process of cleaning up the 'objMultiCluster' feature flag.
cluster?: string;
acl?: 'private' | 'public-read' | 'authenticated-read' | 'public-read-write';
cors_enabled?: boolean;
}
Expand All @@ -36,6 +37,7 @@ export interface ObjectStorageDeleteBucketRequestPayload {
}

export interface ObjectStorageBucket {
region?: string; // @TODO OBJ Multicluster - This field will become required, and the 'cluster' field will be deprecated once the feature is fully rolled out in production as part of the process of cleaning up the 'objMultiCluster' feature flag.
label: string;
created: string;
cluster: string;
Expand Down
11 changes: 9 additions & 2 deletions packages/api-v4/src/profile/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Request, {
setData,
setMethod,
setParams,
setHeaders,
setURL,
setXFilter,
} from '../request';
Expand All @@ -24,15 +25,21 @@ import {
SendPhoneVerificationCodePayload,
VerifyVerificationCodePayload,
} from './types';
import type { RequestOptions } from '../types';

/**
* getProfile
*
* Return the current (logged in) user's profile.
*
*/
export const getProfile = () =>
Request<Profile>(setURL(`${API_ROOT}/profile`), setMethod('GET'));
export const getProfile = ({ headers }: RequestOptions = {}) => {
return Request<Profile>(
setURL(`${API_ROOT}/profile`),
setMethod('GET'),
setHeaders(headers)
);
};

/**
* updateProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
ignorePatterns: [
'node_modules',
'build',
'storybook-static',
'.storybook',
'e2e',
'public',
Expand Down
1 change: 1 addition & 0 deletions packages/manager/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config: StorybookConfig = {
'@storybook/addon-measure',
'@storybook/addon-actions',
'storybook-dark-mode',
'@storybook/addon-storysource',
],
staticDirs: ['../public'],
framework: {
Expand Down
1 change: 0 additions & 1 deletion packages/manager/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ const preview: Preview = {
<Description />
<Primary />
<Controls />
<Stories />
</>
),
},
Expand Down
56 changes: 56 additions & 0 deletions packages/manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,62 @@ 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-01-08] - v1.109.0


### Changed:

- Improve layout of User Permissions page ([#10005](https://github.com/linode/manager/pull/10005))
- Update toast notifications for UserPermissions ([#10011](https://github.com/linode/manager/pull/10011))
- VLAN availability text on Linode Create ([#9989](https://github.com/linode/manager/pull/9989))
- Default access to `None` for all scopes when creating Personal Access Tokens ([#9992](https://github.com/linode/manager/pull/9992))
- Filter already assigned services from firewall dropdowns ([#9993](https://github.com/linode/manager/pull/9993))

### Fixed:

- User Permissions toggle and radio button accessibility ([#10009](https://github.com/linode/manager/pull/10009))

### Tech Stories:

- Currency and DateTimeDisplay v7 storybook migrations ([#10007](https://github.com/linode/manager/pull/10007))
- ColorPalette and CircleProgress v7 storybook migration ([#10015](https://github.com/linode/manager/pull/10015))
- DebouncedSearchTextfield and EditableText v7 storybook migrations ([#10017](https://github.com/linode/manager/pull/10017))
- Placeholder and EntityDetails v7 storybook migrations ([#10019](https://github.com/linode/manager/pull/10019))
- PaginationControls V7 story migration ([#9959](https://github.com/linode/manager/pull/9959))
- TagsInput & TagsPanel Storybook v7 Stories ([#9963](https://github.com/linode/manager/pull/9963))
- Add Lint Github Action ([#9973](https://github.com/linode/manager/pull/9973))
- Complete @mui/styles to tss-react migration and remove @mui/styles ([#9978](https://github.com/linode/manager/pull/9978))
- ErrorState and FileUploader v7 storybook migrations ([#9981](https://github.com/linode/manager/pull/9981))
- Speed up code coverage Github Actions jobs by skipping Cloud Manager build ([#9988](https://github.com/linode/manager/pull/9988))
- Radio and TextField v7 storybook migrations ([#9994](https://github.com/linode/manager/pull/9994))
- Graphs stories v7 migration ([#9999](https://github.com/linode/manager/pull/9999))
- Add ability to pass headers to useProfile query ([#9987](https://github.com/linode/manager/pull/9987))

### Tests:

- Add Cypress test for Firewalls empty state landing page ([#10000](https://github.com/linode/manager/pull/10000))
- Add integration test for Domains empty landing page ([#10004](https://github.com/linode/manager/pull/10004))
- Add Cypress integration tests for User Permissions page ([#10009](https://github.com/linode/manager/pull/10009))
- Fix `CreditCard.test.tsx` failing unit test triggered by new year ([#10023](https://github.com/linode/manager/pull/10023))
- Add integration test for AGLB Load Balancer delete flows. ([#9955](https://github.com/linode/manager/pull/9955))
- Add Cypress test for Volumes empty state landing page ([#9995](https://github.com/linode/manager/pull/9995))
- Tests to power on/off and reboot Linodes ([#9980](https://github.com/linode/manager/pull/9980))

### Upcoming Features:

- Add child access user permissions for parent accounts ([#10005](https://github.com/linode/manager/pull/10005))
- Update top menu for parent, child, and proxy accounts ([#10014](https://github.com/linode/manager/pull/10014))
- Add AGLB Service Target Section to Full Create Flow ([#9965](https://github.com/linode/manager/pull/9965))
- Change AGLB Rule Session Stickiness unit from milliseconds to seconds ([#9969](https://github.com/linode/manager/pull/9969))
- Improve AGLB selects and other UX ([#9975](https://github.com/linode/manager/pull/9975))
- Ability to choose a single Compute Region ID (e.g., us-east) in Create Object Storage Bucket drawer ([#9976](https://github.com/linode/manager/pull/9976))
- Add mocks and update queries for new Parent/Child endpoints ([#9977](https://github.com/linode/manager/pull/9977))
- Replace NodeBalancer detail charts with Recharts ([#9983](https://github.com/linode/manager/pull/9983))
- Revised copy for Private IP add-on in Linode Create flow ([#9990](https://github.com/linode/manager/pull/9990))
- Add `child_account` oauth scope to Personal Access Token drawers ([#9992](https://github.com/linode/manager/pull/9992))
- Add AGLB Routes section of full create page ([#9997](https://github.com/linode/manager/pull/9997))


## [2023-12-11] - v1.108.0

### Added:
Expand Down
Loading

0 comments on commit 36cc200

Please sign in to comment.