Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [UIE-8163] - DBaaS V2 Landing Page platform fix #11030

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

corya-akamai
Copy link
Contributor

Description πŸ“
Bug Fix: Landing Page V2 issue for New Beta Users

Changes πŸ”„
Adjust the UI to send the correct platform field based on the user's account
Target release date πŸ—“οΈ
10/01/24

Preview πŸ“·
How to test πŸ§ͺ
Prerequisites
Beta Flag must be enabled, and the user must have the "Managed Databases Beta" account capability.

Verification steps
(How to verify changes)

Go to the Landing Page.
The appropriate Landing Page is displayed based on the User's account type.
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

@corya-akamai corya-akamai requested a review from a team as a code owner October 1, 2024 18:07
@corya-akamai corya-akamai requested review from dwiley-akamai and abailly-akamai and removed request for a team October 1, 2024 18:07
@cpathipa cpathipa self-requested a review October 1, 2024 18:12
@cpathipa cpathipa added Hotfix Hotfix: This is going to staging DBaaS Relates to Database as a Service Ready for Review labels Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

Coverage Report: βœ…
Base Coverage: 86.98%
Current Coverage: 86.98%

Copy link
Contributor

@cpathipa cpathipa left a comment

Choose a reason for hiding this comment

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

Over all LGTM! left feedback for using isFeatureEnabledV2


const createClusterButton = container.querySelector('button');
const headers = within(table).getAllByRole('columnheader');
expect(headers.some((header) => header.textContent === 'Plan')).toBe(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use getByText: Instead of manually iterating through the headers to check for the 'Plan' text,
example : expect(screen.getByText('Plan')).toBeInTheDocument();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can resolve outside a hotfix

@@ -38,11 +38,31 @@ export const useIsDatabasesEnabled = () => {
account.capabilities.includes('Managed Databases Beta') &&
flags.dbaasV2?.enabled;

const isV2ExistingBetaUser =
Copy link
Contributor

@cpathipa cpathipa Oct 1, 2024

Choose a reason for hiding this comment

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

We could use the isFeatureEnabledV2 hook here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can refactor outside of a hotfix

@cpathipa cpathipa removed the request for review from dwiley-akamai October 1, 2024 19:02
@coliu-akamai coliu-akamai merged commit 0909b43 into linode:staging Oct 1, 2024
20 checks passed
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 Hotfix Hotfix: This is going to staging Ready for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants