Skip to content

Comments

upcoming: [UIE-10178] - Use new hostname endpoint in Database Summary and Network tab#13413

Open
hana-akamai wants to merge 12 commits intolinode:developfrom
hana-akamai:UIE-10178-use-hosts-endpoints-dbaas-connection-details
Open

upcoming: [UIE-10178] - Use new hostname endpoint in Database Summary and Network tab#13413
hana-akamai wants to merge 12 commits intolinode:developfrom
hana-akamai:UIE-10178-use-hosts-endpoints-dbaas-connection-details

Conversation

@hana-akamai
Copy link
Contributor

@hana-akamai hana-akamai commented Feb 18, 2026

Description 📝

Update host fields in Database Summary Connection Details and Networking tab to use new host.endpoints data instead of constructing the address ourselves

I created a new file ConnectionDetailsHostRows2 based off the old file ConnectionDetailsHostRows so we could seamlessly toggle between old/new logic with a feature flag. After the API releases the hostname changes, we can easily delete the old logic

Changes 🔄

  • Add Hostname Endpoints feature flag
  • Display host fields using host.endpoints if the Hostname Endpoints feature flag is on
  • Some refactoring in the new file

Scope 🚢

Upon production release, changes in this PR will be visible to:

  • All customers
  • Some customers (e.g. in Beta or Limited Availability)
  • No customers / Not applicable

Preview 📷

Host Fields
No VPC image
VPC with no public access image
VPC with public access image

How to test 🧪

Prerequisites

(How to setup test environment)

  • Turn on the legacy MSW

Verification steps

(How to verify changes)

  • In the makeMockDatabase function in serverHandlers.ts, comment/uncomment out some of the values to simulate No VPC (public only), VPC with no public access (private only), VPC with public access (private and public)
  • Host fields that display should match the table in the ticket. Similar fields should display with/without the Hostname Endpoints feature flag on
pnpm test ConnectionDetailsHostRows2
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

@hana-akamai hana-akamai self-assigned this Feb 18, 2026
@hana-akamai hana-akamai added the DBaaS Relates to Database as a Service label Feb 18, 2026
host: HostEndpoint;
}

export const ConnectionDetailsHostDisplay = (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Extracted from ConnectionDetailsHostRows and made more generic

const PRIVATE_PRIMARY = `private-${DEFAULT_PRIMARY}`;
const PRIVATE_STANDBY = `private-${DEFAULT_STANDBY}`;

describe('ConnectionDetailsHostRows2', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is a copy of ConnectionDetailsHostRows.test.tsx with updates to support endpoints field and minor clean up

/**
* This component is responsible for conditionally rendering the Private Host, Public Host, and Read-only Host rows that get displayed in
* the Connection Details tables that appear in the Database Summary and Networking tabs */
export const ConnectionDetailsHostRows2 = (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is a copy of ConnectionDetailsHostRows.tsx with updates to use host endpoints and some refactoring

address: string;
port: number;
private_access: boolean;
public_access: boolean;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Went ahead and updated the private_access field to public_access since it was soft approved

@hana-akamai hana-akamai marked this pull request as ready for review February 20, 2026 15:51
@hana-akamai hana-akamai requested a review from a team as a code owner February 20, 2026 15:51
public_access: true,
subnet_id: 123,
vpc_id: 10,
};
Copy link
Contributor

@smans-akamai smans-akamai Feb 20, 2026

Choose a reason for hiding this comment

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

Can we move this up above the No VPC comment since it would just assign the VPC here? This seems like the default state we're using since we have it uncommented.

We could add a comment above it that says something like:
Mock a database cluster with a public VPC Configuration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ended up moving it to the bottom so that it overrides default state when uncommented

},
{ flag: 'gecko2', label: 'Gecko' },
{ flag: 'generationalPlansv2', label: 'Generational compute plans' },
{ flag: 'hostnameEndpoints', label: 'Hostname Endpoints' },
Copy link
Contributor

@smans-akamai smans-akamai Feb 20, 2026

Choose a reason for hiding this comment

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

Can this new feature flag be mentioned in the description? Maybe under the change list and verification steps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's mentioned under the change list and verification steps

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

Status: Review

Development

Successfully merging this pull request may close these issues.

2 participants