-
Notifications
You must be signed in to change notification settings - Fork 199
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(tech-insights): allow usage of API client from backend plugins #630
feat(tech-insights): allow usage of API client from backend plugins #630
Conversation
…g backend auth Signed-off-by: secustor <sebastian@poxhofer.at>
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.
Hi @secustor, thanks for this, just wanted to share a naming comment so you can handle that early.
workspaces/tech-insights/plugins/tech-insights-client/package.json
Outdated
Show resolved
Hide resolved
Changed Packages
|
workspaces/tech-insights/plugins/tech-insights-client/src/TechInsightsClient.ts
Outdated
Show resolved
Hide resolved
For the current CI error you are going to need to update the Backstage CLI version. Essentially the package is missing the plugin metadata which will cause the process to publish to NPM to fail. |
…port Signed-off-by: secustor <sebastian@poxhofer.at>
Signed-off-by: secustor <sebastian@poxhofer.at>
Signed-off-by: secustor <sebastian@poxhofer.at>
Signed-off-by: secustor <sebastian@poxhofer.at>
Signed-off-by: secustor <sebastian@poxhofer.at>
Signed-off-by: secustor <sebastian@poxhofer.at>
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: secustor <sebastian@poxhofer.at>
Signed-off-by: secustor <sebastian@poxhofer.at> # Conflicts: # workspaces/tech-insights/plugins/tech-insights-common/package.json # workspaces/tech-insights/yarn.lock
Signed-off-by: secustor <sebastian@poxhofer.at>
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.
Looks good, would like a review from @Xantier as well 👍
workspaces/tech-insights/plugins/tech-insights-common/src/client/TechInsightsClient.ts
Outdated
Show resolved
Hide resolved
workspaces/tech-insights/plugins/tech-insights-common/src/client/types.ts
Outdated
Show resolved
Hide resolved
workspaces/tech-insights/plugins/tech-insights-common/src/client/types.ts
Outdated
Show resolved
Hide resolved
workspaces/tech-insights/plugins/tech-insights-common/src/client/index.ts
Outdated
Show resolved
Hide resolved
workspaces/tech-insights/plugins/tech-insights-common/src/client/TechInsightsClient.ts
Outdated
Show resolved
Hide resolved
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.
Looks to be a straightforward lift, right? Looks fine to me, just update the texts and typos and this should be good to go
It's not a complete shift. There is now a function to abstract token fetching. https://github.com/backstage/community-plugins/pull/630/files#diff-18721d7dfb9f9c8fec43c477a4c28706fe62585cf382069c8c122ca12c68ead9R151-R164 |
Co-authored-by: Jussi Hallila <jussi@hallila.com> Signed-off-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Signed-off-by: secustor <sebastian@poxhofer.at> # Conflicts: # workspaces/tech-insights/plugins/tech-insights/api-report.md # workspaces/tech-insights/plugins/tech-insights/src/api/TechInsightsClient.ts # workspaces/tech-insights/yarn.lock
…kage' into feat/move-client-in-separate-package
@nickboldt Sry, for the ping but you are a CodeOwner and this PR is already open for a while. Thanks! |
…630) * feat(tech-insights): move client into separate package and allow using backend auth Signed-off-by: secustor <sebastian@poxhofer.at> * feat(tech-insights): move client into common package under /client export Signed-off-by: secustor <sebastian@poxhofer.at> * feat(tech-insights): run yarn fix Signed-off-by: secustor <sebastian@poxhofer.at> * remove backend from changeset Signed-off-by: secustor <sebastian@poxhofer.at> * update api report Signed-off-by: secustor <sebastian@poxhofer.at> * add client api report Signed-off-by: secustor <sebastian@poxhofer.at> * add missing documentation and try to solve api report problem Signed-off-by: secustor <sebastian@poxhofer.at> * pin version Signed-off-by: secustor <sebastian@poxhofer.at> * dedupe lock file Signed-off-by: secustor <sebastian@poxhofer.at> * Apply suggestions from code review Co-authored-by: Jussi Hallila <jussi@hallila.com> Signed-off-by: Sebastian Poxhofer <secustor@users.noreply.github.com> --------- Signed-off-by: secustor <sebastian@poxhofer.at> Signed-off-by: Sebastian Poxhofer <secustor@users.noreply.github.com> Co-authored-by: Jussi Hallila <jussi@hallila.com>
…ackstage#630) * feat(tech-insights): move client into separate package and allow using backend auth Signed-off-by: secustor <sebastian@poxhofer.at> * feat(tech-insights): move client into common package under /client export Signed-off-by: secustor <sebastian@poxhofer.at> * feat(tech-insights): run yarn fix Signed-off-by: secustor <sebastian@poxhofer.at> * remove backend from changeset Signed-off-by: secustor <sebastian@poxhofer.at> * update api report Signed-off-by: secustor <sebastian@poxhofer.at> * add client api report Signed-off-by: secustor <sebastian@poxhofer.at> * add missing documentation and try to solve api report problem Signed-off-by: secustor <sebastian@poxhofer.at> * pin version Signed-off-by: secustor <sebastian@poxhofer.at> * dedupe lock file Signed-off-by: secustor <sebastian@poxhofer.at> * Apply suggestions from code review Co-authored-by: Jussi Hallila <jussi@hallila.com> Signed-off-by: Sebastian Poxhofer <secustor@users.noreply.github.com> --------- Signed-off-by: secustor <sebastian@poxhofer.at> Signed-off-by: Sebastian Poxhofer <secustor@users.noreply.github.com> Co-authored-by: Jussi Hallila <jussi@hallila.com>
Hey, I just made a Pull Request!
Moves the
TechInsightsClient
class to@backstage-community/plugin-tech-insights-common
package under a new/client
export.This is to enable usage of the client for other backend plugins.
To enable this, the client constructor accepts now
IdentityApi
orAuthService
as parameter.✔️ Checklist
Signed-off-by
line in the message. (more info)