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

feat(core): add useGetNavigationUrl in shell client #14964

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

aboungnaseng-ovhcloud
Copy link
Contributor

@aboungnaseng-ovhcloud aboungnaseng-ovhcloud commented Jan 16, 2025

ref: MANAGER-15760

Question Answer
Branch? develop
Bug fix? no
New feature? yes
Breaking change? no
Tickets 15769
License BSD 3-Clause
  • Try to keep pull requests small so they can be easily reviewed.
  • Commits are signed-off
  • Only FR translations have been updated
  • Branch is up-to-date with target branch
  • Lint has passed locally
  • Standalone app was ran and tested locally
  • Ticket reference is mentioned in linked commits (internal only)
  • Breaking change is mentioned in relevant commits

Description

add useGetNavigationUrl in shell client to avoid duplication

Related

tibs245
tibs245 previously approved these changes Jan 16, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, all the app information is available in Shell-context. So, no need to make it async but it can be made synchronous.

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 take a look 👍

Copy link
Contributor

@tibs245 tibs245 Jan 17, 2025

Choose a reason for hiding this comment

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

I seen by curiosity.

getURL return string in the basic inplementation : packages/components/ovh-shell/src/plugin/navigation/index.ts

But the problem it's we provide : invokePluginMethod in packages/components/ovh-shell/src/client/shell-client.ts

I don't known if it's possible to remove it

Copy link
Contributor Author

@aboungnaseng-ovhcloud aboungnaseng-ovhcloud Jan 17, 2025

Choose a reason for hiding this comment

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

@tibs245 you mean you want to return a string, more easy to use ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure to understand how do you want to make it synchronous. @anooparveti how do you make it synchronous ? as @tibs245 said, getUrl use 'invokePluginMethod' we need to wait this promise

tibs245
tibs245 previously approved these changes Jan 17, 2025
ref: MANAGER-15760

Signed-off-by: Alex Boungnaseng <[email protected]>
Co-authored-by: Thibault Barske <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants