Skip to content

Commit

Permalink
Merge branch 'develop' into M3-8643-move-breadcrumb-from-manager-to-u…
Browse files Browse the repository at this point in the history
…i-package
  • Loading branch information
hasyed-akamai committed Dec 5, 2024
2 parents c68fb8e + 7609507 commit 4aa402e
Show file tree
Hide file tree
Showing 370 changed files with 3,656 additions and 1,642 deletions.
33 changes: 19 additions & 14 deletions docs/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,23 @@ Please specify a release date (and environment, if applicable) to guarantee time
- [ ] ...
- [ ] ...

## As an Author, I have considered 🤔

- 👀 Doing a self review
- ❔ Our [contribution guidelines](https://github.com/linode/manager/blob/develop/docs/CONTRIBUTING.md)
- 🤏 Splitting feature into small PRs
- ➕ Adding a [changeset](https://github.com/linode/manager/blob/develop/docs/CONTRIBUTING.md#writing-a-changeset)
- 🧪 Providing/improving test coverage
- 🔐 Removing all sensitive information from the code and PR description
- 🚩 Using a feature flag to protect the release
- 👣 Providing comprehensive reproduction steps
- 📑 Providing or updating our documentation
- 🕛 Scheduling a pair reviewing session
- 📱 Providing mobile support
- ♿ Providing accessibility support
<details>
<summary> Author Checklists </summary>

## As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our [contribution guidelines](https://github.com/linode/manager/blob/develop/docs/CONTRIBUTING.md)
🤏 Splitting feature into small PRs
➕ Adding a [changeset](https://github.com/linode/manager/blob/develop/docs/CONTRIBUTING.md#writing-a-changeset)
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support

<br/>

Expand All @@ -73,6 +76,8 @@ Please specify a release date (and environment, if applicable) to guarantee time
- [ ] TypeScript compilation succeeded without errors
- [ ] Code passes all linting rules

</details>

---

## Commit message and pull request title format standards
Expand Down
5 changes: 5 additions & 0 deletions packages/api-v4/.changeset/pr-11261-added-1732225555236.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Added
---

Placement Groups migrations Types ([#11261](https://github.com/linode/manager/pull/11261))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Tech Stories
---

Update yup from `0.32.9` to `1.4.0` ([#11324](https://github.com/linode/manager/pull/11324))
5 changes: 5 additions & 0 deletions packages/api-v4/.changeset/pr-11330-removed-1732610877556.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Removed
---

Recently added camelCase rule ([#11330](https://github.com/linode/manager/pull/11330))
5 changes: 5 additions & 0 deletions packages/api-v4/.changeset/pr-11337-added-1732714186488.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Added
---

Linter rules for naming convention ([#11337](https://github.com/linode/manager/pull/11337))
46 changes: 36 additions & 10 deletions packages/api-v4/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,42 @@
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/naming-convention": [
"warn",
{
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
"leadingUnderscore": "allow",
"selector": "variable",
"trailingUnderscore": "allow"
},
{
"format": null,
"modifiers": ["destructured"],
"selector": "variable"
},
{
"format": ["camelCase", "PascalCase"],
"selector": "function"
},
{
"format": ["camelCase"],
"leadingUnderscore": "allow",
"selector": "parameter"
},
{
"format": ["PascalCase"],
"selector": "typeLike"
}
],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/interface-name-prefix": "off",
"no-unused-vars": [
"warn",
{
Expand All @@ -33,23 +69,13 @@
"no-console": "error",
"no-undef-init": "off",
"radix": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/interface-name-prefix": "off",
"sonarjs/cognitive-complexity": "warn",
"sonarjs/no-duplicate-string": "warn",
"sonarjs/prefer-immediate-return": "warn",
"sonarjs/no-identical-functions": "warn",
"sonarjs/no-redundant-jump": "warn",
"sonarjs/no-small-switch": "warn",
"no-multiple-empty-lines": "error",
"camelcase": ["warn", { "properties": "always" }],
"curly": "warn",
"sort-keys": "off",
"comma-dangle": "off",
Expand Down
3 changes: 1 addition & 2 deletions packages/api-v4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@linode/validation": "*",
"axios": "~1.7.4",
"ipaddr.js": "^2.0.0",
"yup": "^0.32.9"
"yup": "^1.4.0"
},
"scripts": {
"start": "concurrently --raw \"tsc -w --preserveWatchOutput\" \"tsup --watch\"",
Expand All @@ -57,7 +57,6 @@
"lib"
],
"devDependencies": {
"@types/yup": "^0.29.13",
"axios-mock-adapter": "^1.22.0",
"concurrently": "^9.0.1",
"eslint": "^6.8.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/api-v4/src/cloudpulse/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { BETA_API_ROOT as API_ROOT } from 'src/constants';

export const createAlertDefinition = (
data: CreateAlertDefinitionPayload,
service_type: AlertServiceType
serviceType: AlertServiceType
) =>
Request<Alert>(
setURL(
`${API_ROOT}/monitor/services/${encodeURIComponent(
service_type!
serviceType!
)}/alert-definitions`
),
setMethod('POST'),
Expand Down
5 changes: 3 additions & 2 deletions packages/api-v4/src/cloudpulse/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export interface ServiceTypesList {
export interface CreateAlertDefinitionPayload {
label: string;
description?: string;
resource_ids?: string[];
entity_ids?: string[];
severity: AlertSeverityType;
rule_criteria: {
rules: MetricCriteria[];
Expand Down Expand Up @@ -174,11 +174,12 @@ export interface Alert {
id: number;
label: string;
description: string;
has_more_resources: boolean;
status: AlertStatusType;
type: AlertDefinitionType;
severity: AlertSeverityType;
service_type: AlertServiceType;
resource_ids: string[];
entity_ids: string[];
rule_criteria: {
rules: MetricCriteria[];
};
Expand Down
4 changes: 2 additions & 2 deletions packages/api-v4/src/linodes/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Region, RegionSite } from '../regions';
import type { IPAddress, IPRange } from '../networking/types';
import type { SSHKey } from '../profile/types';
import type { PlacementGroupPayload } from '../placement-groups/types';
import type { LinodePlacementGroupPayload } from '../placement-groups/types';

export type Hypervisor = 'kvm' | 'zen';

Expand Down Expand Up @@ -30,7 +30,7 @@ export interface Linode {
ipv6: string | null;
label: string;
lke_cluster_id: number | null;
placement_group?: PlacementGroupPayload; // If not in a placement group, this will be excluded from the response.
placement_group?: LinodePlacementGroupPayload; // If not in a placement group, this will be excluded from the response.
type: string | null;
status: LinodeStatus;
updated: string;
Expand Down
5 changes: 5 additions & 0 deletions packages/api-v4/src/object-storage/buckets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ export const updateBucketAccess = (
setData(params, UpdateBucketAccessSchema)
);

/**
* getObjectStorageEndpoints
*
* Returns a list of Object Storage Endpoints.
*/
export const getObjectStorageEndpoints = ({ filter, params }: RequestOptions) =>
Request<Page<ObjectStorageEndpoint>>(
setMethod('GET'),
Expand Down
17 changes: 12 additions & 5 deletions packages/api-v4/src/placement-groups/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,22 @@ export interface PlacementGroup {
is_compliant: boolean;
}[];
placement_group_policy: PlacementGroupPolicy;
migrations: {
inbound?: Array<{ linode_id: number }>;
outbound?: Array<{ linode_id: number }>;
} | null;
}

export type PlacementGroupPayload = Pick<
PlacementGroup,
'id' | 'label' | 'placement_group_type' | 'placement_group_policy'
>;
export interface LinodePlacementGroupPayload
extends Pick<
PlacementGroup,
'id' | 'label' | 'placement_group_type' | 'placement_group_policy'
> {
migrating_to: number | null;
}

export interface CreatePlacementGroupPayload
extends Omit<PlacementGroupPayload, 'id'> {
extends Omit<LinodePlacementGroupPayload, 'id' | 'migrating_to'> {
region: Region['id'];
}

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 @@ -11,6 +11,7 @@ export type Capabilities =
| 'Distributed Plans'
| 'GPU Linodes'
| 'Kubernetes'
| 'Kubernetes Enterprise'
| 'Linodes'
| 'Managed Databases'
| 'Metadata'
Expand Down
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11242-fixed-1732004091597.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Radio size prop not affecting the radio button's dimensions ([#11242](https://github.com/linode/manager/pull/11242))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11261-changed-1732225439368.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Improve Placement Groups UI during Linode Migrations ([#11261](https://github.com/linode/manager/pull/11261))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11294-fixed-1732119319735.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Table and Chart Legend Spacing ([#11294](https://github.com/linode/manager/pull/11294))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11296-removed-1732128125283.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Removed
---

`Toggle` component and `ToggleOn` and `ToggleOff` icons (migrated to `ui` package) ([#11296](https://github.com/linode/manager/pull/11296))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Handle JWE token limit of 250 in ACLP UI ([#11309](https://github.com/linode/manager/pull/11309))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11310-added-1732287073605.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

New routes for iam, feature flag and menu item ([#11310](https://github.com/linode/manager/pull/11310))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11311-changed-1732288180106.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

DBaaS Resize GA: Enable Downsizing (horizontal and vertical), enable 'Shared' tab, updated node presentation ([#11311](https://github.com/linode/manager/pull/11311))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11314-removed-1732300595067.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Removed
---

`Autocomplete`, `List`, and `ListItem` components (migrated to `ui` package) ([#11314](https://github.com/linode/manager/pull/11314))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Modify `generate12HoursTicks` method in AreaChart `utils.ts`, Remove breakpoint condition in `MetricsDisplay.tsx`, modify `legendHeight` and `xAxisTickCount` in `CloudPulseLineGraph.tsx` ([#11317](https://github.com/linode/manager/pull/11317))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

As part of creating the PAT token, Enabled a new scope - 'Monitor' within Cloud Manager UI ([#11318](https://github.com/linode/manager/pull/11318))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Add Cluster Type section to Create Cluster flow for LKE-E ([#11322](https://github.com/linode/manager/pull/11322))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11323-tests-1732563014945.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Add tests for accelerated plans in `plan-selection.spec.ts` ([#11323](https://github.com/linode/manager/pull/11323))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Update yup from `0.32.9` to `1.4.0` ([#11324](https://github.com/linode/manager/pull/11324))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Further improvements to PR template author checklist sections ([#11325](https://github.com/linode/manager/pull/11325))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11326-tests-1732566960471.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Add new assertions for linode backup Cypress tests ([#11326](https://github.com/linode/manager/pull/11326))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11327-tests-1732571554878.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Add test to create a mock accelerated Linode ([#11327](https://github.com/linode/manager/pull/11327))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11330-removed-1732610901455.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Removed
---

Recently added camelCase rule ([#11330](https://github.com/linode/manager/pull/11330))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11331-added-1732627930598.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

ResourceMultiSelect component, along with UT. Changed case for few variables and properties ([#11331](https://github.com/linode/manager/pull/11331))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11332-tests-1732639325137.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Fix DBaaS unit test flake ([#11332](https://github.com/linode/manager/pull/11332))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11336-added-1732711112187.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

unit test cases for `DocsLink` component ([#11336](https://github.com/linode/manager/pull/11336))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11337-added-1732714227095.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

Linter rules for naming convention ([#11337](https://github.com/linode/manager/pull/11337))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11340-tests-1732789911285.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Add unit test cases for `DialogTitle` component ([#11340](https://github.com/linode/manager/pull/11340))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Update Region Select for LKE-Enterprise ([#11348](https://github.com/linode/manager/pull/11348))
Loading

0 comments on commit 4aa402e

Please sign in to comment.