-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
There was a problem hiding this 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.
// determine how many port-forwards are already active | ||
const { length } = await getPortForwards(); |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
There was a problem hiding this 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>
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