-
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] Vue3: Update vue-router #8215
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. |
0107daa
to
559a130
Compare
13cb571
to
dafa087
Compare
dafa087
to
c58eb23
Compare
c58eb23
to
dc0ec6b
Compare
dc0ec6b
to
b1fe558
Compare
Results for acceptance oC10 https://drone.owncloud.com/owncloud/web/31616/13/1 |
Results for e2e-tests oCIS https://drone.owncloud.com/owncloud/web/31658/12/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/31658/tracing/participant-management-alice-2023-1-16-11-41-38.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/31658/tracing/participant-management-anonymous-2023-1-16-11-42-11.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/31658/tracing/participant-management-brian-2023-1-16-11-41-47.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/31658/tracing/participant-management-carol-2023-1-16-11-41-59.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/31658/tracing/participant-management-marie-2023-1-16-11-41-51.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/31658/tracing/participant-management-richard-2023-1-16-11-41-55.zip |
With just * we receive an array in route.params, which is not what we want/need/expect. The question mark makes it optional, we need that to be able to redirect or do any sort of other fallback handling.
709f24b
to
8ad2b61
Compare
3588df4
to
7f952b8
Compare
ae0d560
to
813a5d2
Compare
4de34b9
to
cb6329f
Compare
f925dce
to
817fd9b
Compare
@@ -7,25 +7,32 @@ import get from 'lodash-es/get' | |||
// should immediately go away and be removed after finalizing the update | |||
// to apply the patch to a route add meta.patchCleanPath = true to it | |||
// to patch needs to be enabled on a route level, to do so add meta.patchCleanPath = true property to the route | |||
// c.f. https://github.com/vuejs/router/issues/ 1638 |
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.
remove blank in url please ;-)
SonarCloud Quality Gate failed. |
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 in general, awesome work!
What's the reason we need to unref
the current route now on many occurrences (e.g. this.$router.currentRoute
)?
@@ -12,6 +12,7 @@ import { | |||
defaultStoreMockOptions, | |||
defaultComponentMocks | |||
} from 'web-test-helpers' | |||
import { RouteLocation } from 'vue-router' |
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.
Rather import this from web-test-helpers
, no?
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 catch.
I introduced RouteLocation
in web-test-helpers
only to avoid having to add vue-router
as an explicit dependency in all packages only to make RouteLocation
available in tests. So if there's already a dependency on vue-router
it's fine to import it from there imho.
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.
Approving with the expectation, that we manage to fix the currently encoded slashes in the URL within the next couple of days. 😉
Yes, I'll take care - thanks for merging, I'm really happy we avoid merge conflicts 😅 |
Well, it's a |
This is a follow up to #8215 where we introduced a regression, so that slashes in file paths were encoded in urls.
This is a follow up to #8215 where we introduced a regression, so that slashes in file paths were encoded in urls.
This is a follow up to #8215 where we introduced a regression, so that slashes in file paths were encoded in urls.
This is a follow up to #8215 where we introduced a regression, so that slashes in file paths were encoded in urls.
This is a follow up to #8215 where we introduced a regression, so that slashes in file paths were encoded in urls.
Description
Update vue-router to 4.x which is compatible with Vue 3.
Related Issue
Motivation and Context
Fix warnings and allow switching to Vue 3 without compat mode at some point.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: