Skip to content

Conversation

@harsh-akamai
Copy link
Contributor

@harsh-akamai harsh-akamai commented Feb 17, 2025

Description 📝

Bug Summary 🐛

  • A request made to the LongView API for client metrics returns a key Uptime which has been incorrectly mapped in CM as uptime. This in turn displays 'Uptime not available'.

https://github.com/linode/manager/blob/develop/packages/manager/src/features/Longview/request.types.ts#L120-L121

The Fix 🔧

  • Changed the interface Uptime to rightly have a key Uptime instead of uptime

Preview 📷

Before After
image image
image image

How to test 🧪

  • Create a LongView Client for a Linode
    • Verify that the uptime is shown in the LongView Detail page
    • Verify that the uptime is shown in the LongView Landing page, within the LongView Client row
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 unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@harsh-akamai harsh-akamai added the Hotfix Hotfix: This is going to staging label Feb 17, 2025
@harsh-akamai harsh-akamai changed the title Hotfix/uptime fix in longview hotfix: Uptime interface for LongView API reponse Feb 17, 2025
@harsh-akamai harsh-akamai marked this pull request as ready for review February 18, 2025 07:17
@harsh-akamai harsh-akamai requested a review from a team as a code owner February 18, 2025 07:17
@harsh-akamai harsh-akamai requested review from hasyed-akamai and mjac0bs and removed request for a team February 18, 2025 07:17
@harsh-akamai harsh-akamai self-assigned this Feb 18, 2025
@harsh-akamai harsh-akamai changed the title hotfix: Uptime interface for LongView API reponse hotfix: Uptime interface for LongView API response Feb 18, 2025
mjac0bs
mjac0bs previously approved these changes Feb 18, 2025
Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Confirmed that Uptime is now rendering, thanks for the fix, @harsh-akamai. It would be good to follow this PR up with some test coverage in longview.spec.ts.

Prod This Branch
Screenshot 2025-02-18 at 7 18 59 AM Screenshot 2025-02-18 at 7 19 05 AM

@mjac0bs
Copy link
Contributor

mjac0bs commented Feb 18, 2025

@hkhalil-akamai Oh, this needs a changelog update. It has the version bump.

@github-actions
Copy link

Coverage Report:
Base Coverage: 79.25%
Current Coverage: 79.25%

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🔺 1 failing test on test run #4 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing499 Passing2 Skipped127m 7s

Details

Failing Tests
SpecTest
smoke-lke-create.spec.tsLKE Create Cluster » Simple Page Check

Troubleshooting

Use this command to re-run the failing tests:

yarn cy:run -s "cypress/e2e/core/kubernetes/smoke-lke-create.spec.ts"

@hkhalil-akamai hkhalil-akamai merged commit 0041cce into linode:staging Feb 18, 2025
22 of 23 checks passed
@harsh-akamai harsh-akamai deleted the hotfix/uptime-fix-in-longview branch February 19, 2025 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hotfix Hotfix: This is going to staging

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants