-
Notifications
You must be signed in to change notification settings - Fork 157
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
refactor: remove file versions from vuex files store module #10363
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. |
2ded9f7
to
87f7ed9
Compare
@@ -191,6 +185,14 @@ function getMountedWrapper({ | |||
downloadFile | |||
} | |||
mocks.$clientService.webdav.getFileInfo.mockResolvedValue(mock<Resource>({ id: '1' })) | |||
mocks.$clientService.webdav.listFileVersions.mockImplementation(() => { | |||
if (loadingStateDelay > 0) { | |||
return new Promise((res) => setTimeout(() => res(versions), loadingStateDelay)) |
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.
if loadingStateDelay
defaults to 0 anyway - can't we just always run this branch? What benefit does the check add? a tick less? 🤷🏻
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, fixed. It's necessary for checking the loading spinner, since we still don't have a way to mock tasks properly.
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.
Hmm CI seems unhappy that way, so I reverted it
87f7ed9
to
e13492c
Compare
Removes the file versions from the vuex files store module because there is no need to store them in any store.
e13492c
to
9207629
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Description
Removes the file versions from the vuex files store module because there is no need to store them in any store.
Related Issue
Types of changes