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-8007] - DBaaS display host in summary details #11182

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## [2024-10-29] - v1.131.1


### Fixed:

- Hostnames not showing on the Database details page ([#11182](https://github.com/linode/manager/pull/11182))

## [2024-10-28] - v1.131.0


Expand Down
2 changes: 1 addition & 1 deletion packages/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "linode-manager",
"author": "Linode",
"description": "The Linode Manager website",
"version": "1.131.0",
"version": "1.131.1",
"private": true,
"type": "module",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ const sxTooltipIcon = {
const privateHostCopy =
'A private network host and a private IP can only be used to access a Database Cluster from Linodes in the same data center and will not incur transfer costs.';

const mongoHostHelperCopy =
'This is a public hostname. Coming soon: connect to your MongoDB clusters using private IPs';

/**
* Deprecated @since DBaaS V2 GA. Will be removed remove post GA release ~ Dec 2024
* TODO (UIE-8214) remove POST GA
Expand Down Expand Up @@ -287,48 +284,29 @@ export const DatabaseSummaryConnectionDetailsLegacy = (props: Props) => {
)}
</Box>
<Box>
<Typography>
<span>hosts</span> ={' '}
{(!database.peers || database.peers.length === 0) && (
<span className={classes.provisioningText}>
Your hostnames will appear here once they are available.
</span>
)}
</Typography>
{database.peers &&
database.peers.length > 0 &&
database.peers.map((hostname, i) => (
<Box
alignItems="center"
display="flex"
flexDirection="row"
key={hostname}
>
<Typography
style={{
marginBottom: 0,
marginLeft: 16,
marginTop: 0,
}}
>
<Box alignItems="center" display="flex" flexDirection="row">
{database.hosts?.primary ? (
<>
<Typography>
<span>host</span> ={' '}
<span style={{ fontFamily: theme.font.normal }}>
{hostname}
</span>
{database.hosts?.primary}
</span>{' '}
</Typography>
<CopyTooltip
className={classes.inlineCopyToolTip}
text={hostname}
text={database.hosts?.primary}
/>
{/* Display the helper text on the first hostname */}
{i === 0 && (
<TooltipIcon
status="help"
sxTooltipIcon={sxTooltipIcon}
text={mongoHostHelperCopy}
/>
)}
</Box>
))}
</>
) : (
<Typography>
<span>host</span> ={' '}
<span className={classes.provisioningText}>
Your hostname will appear here once it is available.
</span>
</Typography>
)}
</Box>
</Box>
{readOnlyHost && (
<Box alignItems="center" display="flex" flexDirection="row">
Expand Down
Loading