Skip to content

Conversation

@mpolotsk-akamai
Copy link
Contributor

@mpolotsk-akamai mpolotsk-akamai commented Mar 10, 2025

Description 📝

Advanced Configuration - Drawer with existing configurations

Changes 🔄

List any change(s) relevant to the reviewer.

  • Implemented UI for the existing engine options in the drawer
  • Handled various types of configuration fields: text input, number input, select box, and checkbox
  • Added mock data for the GET request to retrieve all configurations
  • Managed form state with initial values

Target release date 🗓️

04/08/25

Preview 📷

Before(Figma template) After
Screenshot 2025-03-10 at 1 43 16 PM Screenshot 2025-03-10 at 1 51 11 PM

How to test 🧪

Prerequisites

(How to setup test environment)

  • Database Advanced Config feature flag should be enabled

Verification steps

(How to verify changes)

  • select a database cluster
  • navigate to the Advanced Configuration Tab
  • use mock data to see table with existing configurations
  • click 'Configure' button
  • drawer with all existing configurations is shown, button 'Save and Restart Service' is disabled
  • change the configuration
  • button 'Save and Restart Service' is enabled
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

@mpolotsk-akamai mpolotsk-akamai requested a review from a team as a code owner March 10, 2025 12:48
@mpolotsk-akamai mpolotsk-akamai requested review from carrillo-erik and hasyed-akamai and removed request for a team March 10, 2025 12:48
@mpolotsk-akamai mpolotsk-akamai self-assigned this Mar 10, 2025
@mpolotsk-akamai mpolotsk-akamai added the DBaaS Relates to Database as a Service label Mar 10, 2025
@mpolotsk-akamai mpolotsk-akamai changed the title feat: [UIE-8515] - DBaaS: Advanced Configuration - Drawer with existing configs upcoming: [UIE-8515] - DBaaS: Advanced Configuration - Drawer with existing configs Mar 10, 2025
@github-actions
Copy link

github-actions bot commented Mar 10, 2025

Coverage Report:
Base Coverage: 79.82%
Current Coverage: 79.84%

@cpathipa cpathipa requested review from cpathipa and removed request for carrillo-erik March 10, 2025 14:13
group_concat_max_len: 4,
information_schema_stats_expiry: 900,
innodb_print_all_deadlocks: true,
service_log: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

DBaaS is a good candidate to move to the new mock service. Is there a ticket/scope for it?

@mpolotsk-akamai mpolotsk-akamai force-pushed the UIE-8515-drawer-existing-configs branch from b864aab to 50f0736 Compare March 12, 2025 12:47
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.

@mpolotsk-akamai Confirming on the verification steps. Left comments to use alias tokens

Comment on lines 11 to 34
export const GroupHeader = styled('div')(({ theme }) => ({
background:
theme.palette.mode === 'dark'
? theme.tokens.color.Neutrals[90]
: theme.tokens.color.Neutrals[5],
color:
theme.palette.mode === 'dark'
? theme.tokens.color.Neutrals[5]
: theme.tokens.color.Neutrals[100],
font: theme.tokens.typography.Label.Bold.Xs,
padding: '8px 12px',
position: 'sticky',
textTransform: 'uppercase',
top: 0,
zIndex: 1,
}));
export const GroupItems = styled('ul')(({ theme }) => ({
'& li': {
color:
theme.palette.mode === 'dark'
? theme.tokens.color.Neutrals[5]
: theme.tokens.color.Neutrals[100],
font: theme.tokens.typography.Label.Regular.Xs,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering where these (GroupHeader and GroupItems) are being referenced ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the review!

This will be used for 'Add configuration' Autocomplete. I had to split the second PR into two parts because it was too large, so the rest will be in the next PR.

Comment on lines 12 to 19
background:
theme.palette.mode === 'dark'
? theme.tokens.color.Neutrals[90]
: theme.tokens.color.Neutrals[5],
color:
theme.palette.mode === 'dark'
? theme.tokens.color.Neutrals[5]
: theme.tokens.color.Neutrals[100],
Copy link
Contributor

Choose a reason for hiding this comment

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

Same, update with the respective alias tokens.

font: theme.tokens.typography.Label.Bold.Xs,
padding: '8px 12px',
position: 'sticky',
textTransform: 'uppercase',
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will update this in the next PR, as these styles are for Autocomplete, which will be implemented in the next PR.
Thank you!

@cpathipa cpathipa added Add'tl Approval Needed Waiting on another approval! Merge Conflicts labels Mar 17, 2025
@cpathipa
Copy link
Contributor

@mpolotsk-akamai There are some runtime errors caused by merging this token re-organization. Could you update this accordingly.

@mpolotsk-akamai
Copy link
Contributor Author

@mpolotsk-akamai There are some runtime errors caused by merging this token re-organization. Could you update this accordingly.

Thanks! I've updated the PR.

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 533 passing tests on test run #14 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing533 Passing4 Skipped102m 14s

Copy link
Contributor

@hasyed-akamai hasyed-akamai left a comment

Choose a reason for hiding this comment

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

Thanks @mpolotsk-akamai 🚢

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Mar 26, 2025
@hasyed-akamai hasyed-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Mar 26, 2025
@cpathipa cpathipa merged commit 520b80c into linode:develop Mar 26, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Cloud Manager Mar 26, 2025
bill-akamai pushed a commit to bill-akamai/manager that referenced this pull request Mar 26, 2025
…isting configs (linode#11812)

* feat: [UIE-8515] - DBaaS: Advanced Configuration - Drawer with existing configs

* feat: [UIE-8515] - update mock data

* Added changeset: DBaaS Advanced Configurations: added `getDatabaseEngineConfig` request to fetch all advanced configurations and updated types for advanced configs

* Added changeset: DBaaS Advanced Configurations: added UI for existing engine options in the drawer

* upcoming: [UIE-8515] - review fix

* upcoming: [UIE-8515] - style update, add link

* update styles after token re-organization

---------

Co-authored-by: cpathipa <[email protected]>
bill-akamai added a commit that referenced this pull request Mar 26, 2025
* Move isNilOrEmpty

* Move createDevicesFromStrings

* Resolve TS errors in createDevicesFromStrings.text.ts

* Move createStringsFromDevices

* Move maybeCastToNumber

* Consolidate imports

* Fix TS error

* Added changeset: Move ramda dependent utils

* Keep DevicesAsStrings type import separate for better organization

* Added changeset: Migrated ramda dependent utils to @linode/utilities package

* Avoid importing from @linode/utilities from within the same package

* Update packages/manager/.changeset/pr-11913-added-1742915642212.md

Co-authored-by: Hana Xu <[email protected]>

* Update packages/manager/.changeset/pr-11913-added-1742915642212.md

Co-authored-by: Purvesh Makode <[email protected]>

* Move utils changeset to correct spot

* upcoming: [M3-9534] - Initial VPC Support in the `Add Network Interface` Drawer (#11887)

* initial vpc and subnet select

* add a shared firewallselect component

* use firewall select globally

* add jsdoc comments

* add some testing

* finish up testing for now

* Added changeset: Add VPC support to the Add Network Interface Drawer

* Added changeset: Added `FirewallSelect` component

* Added changeset: Add test for Add Linode Interface drawer

* clean up changesets

* support default chips in the Firewall Select

* fix spacing regression

* properly handle disableClearable in the new Firewall Select

* support default firewalls in the Add Interface drawer

* use newer copy @coliu-akamai

* fix unit test after UX tooltip changes

---------

Co-authored-by: Banks Nussman <[email protected]>

* test: [M3-9486, M3-9487, M3-9557] - Allow Linode create tests to pass in alternative environments (#11886)

* Delete redundant Linode Create SSH key test

* Add "env:premiumPlans" test tag

* Apply "env:premiumPlans" tag to Linode premium plan e2e test

* Only require "Premium Plans" region capability for Premium Plans Linode create test

* refactor: [M3-9617] - Move `doesRegionSupportFeature` to `utilities` package (#11891)

* Move `doesRegionSupporFeature` to `utilities` pkg

* Added changeset: Move `doesRegionSupportFeature` from `manager` to `utilities` package

* Added changeset: Move `doesRegionSupportFeature` from `manager` to `utilities` package

* refactor: [M3-8247] - Remove ramda from Utilities (#11861)

* refactor: [M3-8247] - Remove ramda from Utilities

* Add changeset

* Add changeset

* updated comment

* increase coverage for isNilorEmpty()

* feat: [UIE-8600] - IAM RBAC: add new drawer for unassigning role flow (#11893)

* feat: [UIE-8600] - IAM RBAC: add new drawer for unassigning role flow

* Added changeset: Add a new confirmation dialog for the unassigning role flow in IAM

* fix the chip's color for dark theme

* fix conflict and small improvements

* upcoming: [UIE-8515] - DBaaS: Advanced Configuration - Drawer with existing configs (#11812)

* feat: [UIE-8515] - DBaaS: Advanced Configuration - Drawer with existing configs

* feat: [UIE-8515] - update mock data

* Added changeset: DBaaS Advanced Configurations: added `getDatabaseEngineConfig` request to fetch all advanced configurations and updated types for advanced configs

* Added changeset: DBaaS Advanced Configurations: added UI for existing engine options in the drawer

* upcoming: [UIE-8515] - review fix

* upcoming: [UIE-8515] - style update, add link

* update styles after token re-organization

---------

Co-authored-by: cpathipa <[email protected]>

* Resolve merge conflict

* Move createDevicesFromStrings

* Move createStringsFromDevices

* Avoid importing from @linode/utilities from within the same package

* refactor: [M3-8247] - Remove ramda from Utilities (#11861)

* refactor: [M3-8247] - Remove ramda from Utilities

* Add changeset

* Add changeset

* updated comment

* increase coverage for isNilorEmpty()

* Move isNilOrEmpty

* Move createDevicesFromStrings

* Move createStringsFromDevices

* refactor: [M3-8247] - Remove ramda from Utilities (#11861)

* refactor: [M3-8247] - Remove ramda from Utilities

* Add changeset

* Add changeset

* updated comment

* increase coverage for isNilorEmpty()

* Fix post merge conflict issues

---------

Co-authored-by: Hana Xu <[email protected]>
Co-authored-by: Purvesh Makode <[email protected]>
Co-authored-by: Banks Nussman <[email protected]>
Co-authored-by: Banks Nussman <[email protected]>
Co-authored-by: jdamore-linode <[email protected]>
Co-authored-by: Harsh Shankar Rao <[email protected]>
Co-authored-by: aaleksee-akamai <[email protected]>
Co-authored-by: mpolotsk-akamai <[email protected]>
Co-authored-by: cpathipa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Multiple approvals and ready to merge! DBaaS Relates to Database as a Service

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants