-
Notifications
You must be signed in to change notification settings - Fork 159
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
[full-ci] Use provide/inject for service injection #9222
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
196f496
to
ae7550a
Compare
packages/web-runtime/src/index.ts
Outdated
app.use(abilitiesPlugin, createMongoAbility([]), { useGlobalProperties: true }) | ||
|
||
// TODO: move to announceArchiverService function |
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 will be juggling around quite a bit with init order, so I would like to tackle this in a follow up
Results for e2e-tests oCIS-2 https://drone.owncloud.com/owncloud/web/36517/13/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36517/tracing/download-space-alice-2023-6-13-10-52-42.zip |
0b97b8f
to
722a270
Compare
Results for e2e-tests oCIS-1 https://drone.owncloud.com/owncloud/web/36517/12/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36517/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-alice-2023-6-13-10-51-16.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36517/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-brian-2023-6-13-10-51-41.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36517/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-carol-2023-6-13-10-51-46.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36517/tracing/public-link-alice-2023-6-13-10-54-18.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36517/tracing/public-link-anonymous-2023-6-13-10-54-36.zip |
722a270
to
807ebb6
Compare
Results for e2e-tests oC10 https://drone.owncloud.com/owncloud/web/36518/11/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36518/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-alice-2023-6-13-11-59-26.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36518/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-brian-2023-6-13-11-59-45.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36518/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-carol-2023-6-13-11-59-51.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36518/tracing/public-link-alice-2023-6-14-12-01-49.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36518/tracing/public-link-anonymous-2023-6-14-12-02-11.zip |
807ebb6
to
445b06f
Compare
@@ -59,12 +59,13 @@ function getMountedWrapper({ mocks = {}, files = [], loading = false } = {}) { | |||
const storeOptions = { ...defaultStoreMockOptions } | |||
const store = createStore(storeOptions) | |||
return { | |||
mocks: defaultMocks, | |||
provide: defaultMocks, |
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.
Uhm
Kudos, SonarCloud Quality Gate passed! |
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.
thanks for digging through this 🏗️
@@ -74,6 +79,24 @@ export const bootstrapApp = async (configurationPath: string): Promise<void> => | |||
translations: merge(translations, customTranslations) | |||
}) | |||
announceClientService({ app, runtimeConfiguration, configurationManager, store }) | |||
|
|||
// TODO: move to announceArchiverService function |
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.
can you resolve this todo in this PR or as an immediate followup please?
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.
ah, your comment about followup was not visible in my review anymore (probably because of history change). fine by me if you do that in a followup. but it's easily forgotten and not a hard task, so please better earlier than later ;-)
Description
Use inject/provide for service injection instead of relying on the deprecated/discouraged
getCurrentInstance
Related Issue
Motivation and Context
We want to enable extensions to use composables, for that we need to get rid of getCurrentInstance which is discouraged and not supported in that context.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: