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

'About Port Forwarding' notification #4270

Merged
merged 3 commits into from
Nov 5, 2021

Conversation

jim-docker
Copy link
Contributor

Guide the user to the port-forwarding "dashboard" when they've added their first port-forward

Screen.Recording.2021-11-05.at.11.05.07.AM.mov

enhances #2340

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
@jim-docker jim-docker added the enhancement New feature or request label Nov 5, 2021
@jim-docker jim-docker added this to the 5.3.0 milestone Nov 5, 2021
@jim-docker jim-docker requested a review from a team as a code owner November 5, 2021 15:16
@jim-docker jim-docker requested review from nevalla and jakolehm and removed request for a team November 5, 2021 15:16
Nokel81
Nokel81 previously approved these changes Nov 5, 2021
Copy link
Collaborator

@Nokel81 Nokel81 left a comment

Choose a reason for hiding this comment

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

Nit: looks good. I think I agree that introducing a new endpoint just for this is a bit overkill for the time being.

Comment on lines 95 to 96
// determine how many port-forwards are already active
const { length } = await getPortForwards();
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't this be within the try?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point

import { getHostedClusterId } from "../utils";


export async function aboutPortForwarding() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be async?

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 wondered that myself. Probably not, thanks

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
chenhunghan
chenhunghan previously approved these changes Nov 5, 2021
Copy link
Contributor

@chenhunghan chenhunghan left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
@jim-docker jim-docker merged commit ebaa934 into master Nov 5, 2021
@jim-docker jim-docker deleted the feature/port-forward-notification branch November 5, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants