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

Add component information in app and service lists #796

Merged
merged 5 commits into from
Nov 12, 2018

Conversation

andresmgot
Copy link
Contributor

@andresmgot andresmgot commented Nov 8, 2018

Fixes #764

Add the chart name to the app list and the service name in the service instance list:

screenshot 2018-11-09 at 11 23 16

screenshot 2018-11-09 at 11 23 33

Note that changes in tiller-proxy were required in order to return the chart name in the list overview.

@@ -20,7 +20,7 @@ class AppListItem extends React.Component<IAppListItemProps> {
link={`/apps/ns/${app.namespace}/${app.releaseName}`}
title={app.releaseName}
icon={icon}
info={app.version || "-"}
info={`${app.chart}/v${app.version || "-"}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

the / version is confusing, for a second I thought it was repo/name. Maybe we could have a space between these instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

or maybe colon which seems more widespread? Alternative I'd go for the version in parenthesis

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need -? ${app.version || "-"}

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should avoid confusing this with the chart version, the Helm CLI uses {chart.name}-{chart.version}. IMO a space will be the least confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why do we need -? ${app.version || "-"}

That is because the version is not mandatory in some times that will be empty.

IMO a space will be the least confusing.

I'll go with the space then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually I think that the separation between the two items using just a space is not very visible, let me try using two different lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nvm, I don't like the result of printing them as a column:
screenshot 2018-11-09 at 12 14 17

Copy link
Contributor

@migmartri migmartri left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @andresmgot!

@@ -20,7 +20,7 @@ class AppListItem extends React.Component<IAppListItemProps> {
link={`/apps/ns/${app.namespace}/${app.releaseName}`}
title={app.releaseName}
icon={icon}
info={app.version || "-"}
info={`${app.chart}/v${app.version || "-"}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need -? ${app.version || "-"}

@@ -45,6 +45,7 @@ const ServiceInstanceCardList: React.SFC<IServiceInstanceCardListProps> = props
namespace={instance.metadata.namespace}
link={link}
icon={icon}
serviceClassName={(svcClass && svcClass.spec.externalName) || "-"}
Copy link
Contributor

Choose a reason for hiding this comment

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

wondering if to be safe you should also check svcClass.spec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If a svcClass is found the spec is mandatory so it's not needed to check if it exists

Copy link
Contributor

@prydonius prydonius left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@andresmgot andresmgot merged commit 3eccd0a into vmware-tanzu:master Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants