Skip to content

Commit

Permalink
fix(orchestrator): export the OrchestratorPlugin accordingly (#1644)
Browse files Browse the repository at this point in the history
* fix(orchestrator): export the OrchestratorPlugin accordingly to be used in the New Backend System

* Remove extra dependency
  • Loading branch information
caponetto authored May 15, 2024
1 parent c0f24cd commit 4a9d1f8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
2 changes: 1 addition & 1 deletion plugins/orchestrator-backend/src/alpha.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { orchestratorPlugin } from './OrchestratorPlugin';
export { orchestratorPlugin as default } from './OrchestratorPlugin';
export { dynamicPluginInstaller } from './dynamic/alpha';
9 changes: 5 additions & 4 deletions plugins/orchestrator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,15 @@ For more information about the configuration options, including other optional p
yarn workspace backend add @janus-idp/backstage-plugin-orchestrator-backend
```

1. Add the following code to `packages/backend/src/index.ts` file:
1. Add the following code to the `packages/backend/src/index.ts` file:

```ts title="packages/backend/src/index.ts"
import { orchestratorPlugin } from '@janus-idp/backstage-plugin-orchestrator-backend/alpha';
const backend = createBackend();
/* highlight-add-next-line */
backend.add(orchestratorPlugin);
backend.add(
import('@janus-idp/backstage-plugin-orchestrator-backend/alpha'),
);
backend.start();
```
Expand Down
6 changes: 3 additions & 3 deletions plugins/orchestrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
"@material-ui/lab": "^4.0.0-alpha.45",
"@monaco-editor/react": "^4.6.0",
"@mui/icons-material": "^5.15.3",
"@rjsf/core": "^5.7.3",
"@rjsf/material-ui": "^5.7.3",
"@rjsf/utils": "5.7.3",
"@rjsf/core": "^5.18.2",
"@rjsf/material-ui": "^5.18.2",
"@rjsf/utils": "^5.18.2",
"@rjsf/validator-ajv8": "5.7.3",
"moment": "^2.29.4",
"monaco-editor": "^0.39.0",
Expand Down
15 changes: 2 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9511,7 +9511,7 @@
nanoid "^3.3.7"
prop-types "^15.8.1"

"@rjsf/core@^5.18.2", "@rjsf/core@^5.7.3":
"@rjsf/core@^5.18.2":
version "5.18.3"
resolved "https://registry.yarnpkg.com/@rjsf/core/-/core-5.18.3.tgz#7cef908598c77ec0f0caaa301148e3e4a909292e"
integrity sha512-HVqqoVzcjYX1BUCqHm7iUjBoVx1UDud1KP6bJ5drtOOvHChfKEbMUt2hWJcuXIlmNPuw2lRxETtcuRbEM2wsRA==
Expand All @@ -9527,7 +9527,7 @@
resolved "https://registry.yarnpkg.com/@rjsf/material-ui/-/material-ui-5.17.1.tgz#009f31d0e8b0c5801bc858847060081a074e0a1d"
integrity sha512-WCk3wZ+oiBCEKz/uwF9VwTl0XNYrcgsQwIh+qBk6JcB2TGSguRM7KtGcLSq/91+lqFvR9PWjP2pvnTJgyfO2cA==

"@rjsf/material-ui@^5.7.3":
"@rjsf/material-ui@^5.18.2":
version "5.18.3"
resolved "https://registry.yarnpkg.com/@rjsf/material-ui/-/material-ui-5.18.3.tgz#fa0405752c023779c24db9125b340824b287d898"
integrity sha512-H4Ed0qPtUjP8BesBXvM82W1zK3c4SFGToiEefE35EN49yOn4E5ERk5kDmVoBNMlalcN2rE4w08b0FuL0vQt9SA==
Expand All @@ -9548,17 +9548,6 @@
lodash-es "^4.17.21"
react-is "^18.2.0"

"@rjsf/[email protected]":
version "5.7.3"
resolved "https://registry.yarnpkg.com/@rjsf/utils/-/utils-5.7.3.tgz#715e14011d5740a1c3c60589ac6fa73710ac7f25"
integrity sha512-4bUJE4u1A7/wGupiOIKicm50QJ5iJ+C9Zq27EKnk7TeKKIr2MLdg3ljYSV7aKp2ZiGX6CFtXBX3RpaTjugpKAw==
dependencies:
json-schema-merge-allof "^0.8.1"
jsonpointer "^5.0.1"
lodash "^4.17.21"
lodash-es "^4.17.21"
react-is "^18.2.0"

"@rjsf/utils@^5.18.2":
version "5.18.3"
resolved "https://registry.yarnpkg.com/@rjsf/utils/-/utils-5.18.3.tgz#a5c00aadd679098cab88b994e188851f426392c7"
Expand Down

0 comments on commit 4a9d1f8

Please sign in to comment.