Skip to content

feat: [UIE-8082] - DBaaS GA Database Resize refactoring - #11180

Merged
cpathipa merged 6 commits into
linode:developfrom
mpolotsk-akamai:UIE-8082-DBaaS-GA-Create
Nov 5, 2024
Merged

cpathipa merged 6 commits into
linode:developfrom
mpolotsk-akamai:UIE-8082-DBaaS-GA-Create

Conversation

@mpolotsk-akamai

@mpolotsk-akamai mpolotsk-akamai commented Oct 29, 2024 •

Copy link
Copy Markdown
Contributor

Description 📝

DBaaS GA: Database Resize refactoring

Changes 🔄

List any change relevant to the reviewer.

  • Refactoring Database Resize
    • The only real changes in this PR are DatabaseResize.tsx. Everything else is from the previous PR.

Target release date 🗓️

11/12/24

How to test 🧪

Prerequisites

(How to setup test environment)

Verification steps

(How to verify changes)

As an Author I have considered 🤔

Check all that apply

  • 👀 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

@mpolotsk-akamai
mpolotsk-akamai requested a review from a team as a code owner October 29, 2024 12:26
@mpolotsk-akamai
mpolotsk-akamai requested review from hana-akamai and mjac0bs and removed request for a team October 29, 2024 12:26
@coliu-akamai coliu-akamai added the DBaaS Relates to Database as a Service label Oct 29, 2024
@cpathipa
cpathipa requested review from cpathipa and removed request for hana-akamai October 29, 2024 16:01
@mjac0bs

mjac0bs commented Oct 29, 2024

Copy link
Copy Markdown
Contributor

Hey @mpolotsk-akamai, this is a large PR with a diff of 1600+ lines, and it's introducing a few new components without test coverage.

Could we break this down into 2 PRs: Database Create updates in the first PR, and Database Resize refactor in the second? This would lead to faster review and more isolated changes. I'm also not sure if lack of unit tests is intentional - are these changes going to be covered in Cypress flows in an upcoming ticket?

@mpolotsk-akamai

Copy link
Copy Markdown
Contributor Author

Hey @mpolotsk-akamai, this is a large PR with a diff of 1600+ lines, and it's introducing a few new components without test coverage.

Could we break this down into 2 PRs: Database Create updates in the first PR, and Database Resize refactor in the second? This would lead to faster review and more isolated changes. I'm also not sure if lack of unit tests is intentional - are these changes going to be covered in Cypress flows in an upcoming ticket?

Hey @mjac0bs, sure, I will break this down and will add unit tests. Thanks

@mpolotsk-akamai mpolotsk-akamai changed the title feat: [UIE-8082] - DBaaS GA Database Create (Summary Section), refactoring feat: [UIE-8082] - DBaaS GA Database Resize refactoring Oct 31, 2024
@mpolotsk-akamai
mpolotsk-akamai force-pushed the UIE-8082-DBaaS-GA-Create branch from 6c5bd43 to fffc304 Compare October 31, 2024 14:59
@mpolotsk-akamai
mpolotsk-akamai requested a review from a team as a code owner October 31, 2024 14:59
@mpolotsk-akamai
mpolotsk-akamai requested review from cliu-akamai and removed request for a team October 31, 2024 14:59
@mpolotsk-akamai
mpolotsk-akamai force-pushed the UIE-8082-DBaaS-GA-Create branch from fffc304 to 6d52eaa Compare October 31, 2024 16:35
@github-actions

github-actions Bot commented Oct 31, 2024 •

Copy link
Copy Markdown

Coverage Report: ✅
Base Coverage: 87.33%
Current Coverage: 87.33%

@mpolotsk-akamai
mpolotsk-akamai force-pushed the UIE-8082-DBaaS-GA-Create branch 2 times, most recently from 4d18b73 to 6d52eaa Compare October 31, 2024 17:23
@mpolotsk-akamai

Copy link
Copy Markdown
Contributor Author

Hey @mpolotsk-akamai, this is a large PR with a diff of 1600+ lines, and it's introducing a few new components without test coverage.
Could we break this down into 2 PRs: Database Create updates in the first PR, and Database Resize refactor in the second? This would lead to faster review and more isolated changes. I'm also not sure if lack of unit tests is intentional - are these changes going to be covered in Cypress flows in an upcoming ticket?

Hey @mjac0bs, sure, I will break this down and will add unit tests. Thanks

Hey @mjac0bs, I created another PR #11193 for Database Create Summary Section, refactoring, and this existing PR #11180 is for Database Resize refactoring.
However these PRs changes are connected, PR #11193 depends on PR #11180, because they have shared components.

@cpathipa
cpathipa removed the request for review from cliu-akamai November 1, 2024 14:15
@mpolotsk-akamai
mpolotsk-akamai force-pushed the UIE-8082-DBaaS-GA-Create branch 2 times, most recently from 2b4e792 to 2974568 Compare November 4, 2024 18:14

@mjac0bs mjac0bs left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @mpolotsk-akamai - functionality looked good overall here.

Minor things:

  • We're missing a changeset for the actual changes in this PR.

  • There's typecheck warnings in this PR that I did not see in the previous Create PR. You'll want to take a look at these imports.
    Screenshot 2024-11-04 at 11 35 40 AM

  • I am still seeing the extra spacing before the number of nodes in the summary section, so I don't think that change got carried over when you were resolving conflicts.
    Screenshot 2024-11-04 at 11 44 04 AM

Comment thread packages/manager/.changeset/pr-11193-added-1730373495513.md Outdated
@mjac0bs

mjac0bs commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

Oh, there's some unit test flake still to fix. It passed the test-manager job in CI, but failed the current branch code coverage job. Locally, I can see it flake as well.

image

Comment thread packages/manager/src/features/Databases/DatabaseCreate/DatabaseCreate.tsx Outdated
@mpolotsk-akamai
mpolotsk-akamai force-pushed the UIE-8082-DBaaS-GA-Create branch 2 times, most recently from 627b9be to cb0b441 Compare November 5, 2024 10:47
@mpolotsk-akamai
mpolotsk-akamai force-pushed the UIE-8082-DBaaS-GA-Create branch from cb0b441 to b89e82c Compare November 5, 2024 12:50

@cpathipa cpathipa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mpolotsk-akamai Looks like some failed E2E tests are related to the database refactoring. Could you please look into that? Other than that, the changes look good to me, and this is good to go once those tests pass.

@mpolotsk-akamai

Copy link
Copy Markdown
Contributor Author

@cpathipa , I'm working on it, thanks!

@linode-gh-bot

Copy link
Copy Markdown

Cloud Manager UI test results

🔺 1 failing test on test run #17 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing444 Passing2 Skipped96m 56s

Details

Failing Tests
SpecTest
❌clone-linode.spec.tsclone linode » can clone a Linode from Linode details page

Troubleshooting

Use this command to re-run the failing tests:

yarn cy:run -s "cypress/e2e/core/linodes/clone-linode.spec.ts"

@cpathipa cpathipa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for addressing the feedback @mpolotsk-akamai

@cpathipa
cpathipa merged commit 8e007a7 into linode:develop Nov 5, 2024
@cypress

cypress Bot commented Nov 5, 2024

Copy link
Copy Markdown

Cloud Manager E2E    Run #6785

Run Properties:  status check failed Failed #6785  •  git commit 8e007a791c: feat: [UIE-8082] - DBaaS GA Database Resize refactoring (#11180)
Project Cloud Manager E2E
Branch Review develop
Run status status check failed Failed #6785
Run duration 30m 50s
Commit git commit 8e007a791c: feat: [UIE-8082] - DBaaS GA Database Resize refactoring (#11180)
Committer mpolotsk-akamai
View all properties for this run ↗︎

Test results
Tests that failed  Failures 4
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 441
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/e2e/core/databases/resize-database.spec.ts • 4 failed tests

View Output Video

Test Artifacts
Resizing existing clusters > Resizes a g6-standard-6 MySQL v8.x 3-node cluster > Can resize active database clusters Screenshots Video
Resizing existing clusters > Resizes a g6-standard-6 MySQL v8.x 3-node cluster > Can resize active database clusters from g6-standard-6 type and switch plan type Screenshots Video
Resizing existing clusters > Resizes a g6-dedicated-16 MySQL v5.x 3-node cluster > Can resize active database clusters Screenshots Video
Resizing existing clusters > Resizes a g6-dedicated-16 MySQL v5.x 3-node cluster > Can resize active database clusters from g6-dedicated-16 type and switch plan type Screenshots Video
Flakiness  linodes/clone-linode.spec.ts • 1 flaky test

View Output Video

Test Artifacts
clone linode > can clone a Linode from Linode details page Screenshots Video
Flakiness  volumes/create-volume.smoke.spec.ts • 1 flaky test

View Output Video

Test Artifacts
volumes > does not allow creation of a volume with invalid pricing from volumes landing Screenshots Video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DBaaS Relates to Database as a Service

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants