Skip to content

reactor: STORIF-285 - Quota resource metric converted into an enum.#13447

Open
dchyrva-akamai wants to merge 1 commit intolinode:developfrom
dchyrva-akamai:feature/STORIF-285
Open

reactor: STORIF-285 - Quota resource metric converted into an enum.#13447
dchyrva-akamai wants to merge 1 commit intolinode:developfrom
dchyrva-akamai:feature/STORIF-285

Conversation

@dchyrva-akamai
Copy link
Contributor

Description 📝

Quota resource metric converted into an enum.

Author Checklists

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

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding 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


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All tests and CI checks are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@dchyrva-akamai dchyrva-akamai force-pushed the feature/STORIF-285 branch 4 times, most recently from eb52cb3 to 9a313ac Compare March 5, 2026 14:01
convertedUsage: number;
} => {
if (initialResourceMetric === 'byte') {
if (initialResourceMetric === QuotaResourceMetrics.BYTE) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in the "switch-case > if-else" team, but I guess that also works...

@dchyrva-akamai dchyrva-akamai marked this pull request as ready for review March 5, 2026 14:37
@dchyrva-akamai dchyrva-akamai requested review from a team as code owners March 5, 2026 14:37
@dchyrva-akamai dchyrva-akamai requested review from cliu-akamai and removed request for a team March 5, 2026 14:37
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🔺 5 failing tests on test run #8 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
5 Failing862 Passing16 Skipped38m 42s

Details

Failing Tests
SpecTest
account-switching.spec.tsCloud Manager Cypress Tests→Parent/Child account switching→From Parent to Child » can search child accounts
account-switching.spec.tsCloud Manager Cypress Tests→Parent/Child account switching→From Child to Parent » can switch from Proxy user back to Parent account user from Billing page
account-switching.spec.tsCloud Manager Cypress Tests→Parent/Child account switching→From Child to Child » can switch to another Child account as a Proxy user
object-storage.e2e.spec.tsCloud Manager Cypress Tests→object storage end-to-end tests » can create and delete object storage buckets
rebuild-linode.spec.tsCloud Manager Cypress Tests→rebuild linode » "before all" hook for "rebuilds a linode from Image"

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/parentChild/account-switching.spec.ts,cypress/e2e/core/objectStorage/object-storage.e2e.spec.ts,cypress/e2e/core/linodes/rebuild-linode.spec.ts"

Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ✅

Please add a changeset prior to merging 👌🏾

@@ -1,3 +1,4 @@
import { type Quota, QuotaResourceMetrics } from '@linode/api-v4';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split the Quota import into its own statement so the linter will sort it to the bottom of the imports

Comment on lines +1 to +5
import {
type Quota,
QuotaResourceMetrics,
type QuotaUsage,
} from '@linode/api-v4/lib/quotas/types';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, break out the type imports

Comment on lines +1 to +7
import {
type ObjectStorageEndpoint,
type Quota,
QuotaResourceMetrics,
type QuotaType,
type QuotaUsage,
} from '@linode/api-v4';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type import breakouts here too

Comment on lines +152 to +172
import {
type AccountMaintenance,
type AlertDefinitionType,
type AlertSeverityType,
type AlertStatusType,
type CloudPulseServiceType,
type CreateAlertDefinitionPayload,
type CreateObjectStorageKeyPayload,
type Dashboard,
type Database,
type FirewallStatus,
type NotificationType,
type ObjectStorageEndpointTypes,
QuotaResourceMetrics,
type SecurityQuestionsPayload,
type ServiceTypesList,
type TokenRequest,
type UpdateImageRegionsPayload,
type User,
type VolumeStatus,
} from '@linode/api-v4';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type import breakouts here too

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

4 participants