Skip to content
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

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

JammingBen
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@JammingBen JammingBen self-assigned this Jan 18, 2024
Copy link

update-docs bot commented Jan 18, 2024

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.

@JammingBen JammingBen force-pushed the remove-file-versions-from-store branch 2 times, most recently from 2ded9f7 to 87f7ed9 Compare January 18, 2024 12:11
@@ -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))
Copy link
Member

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? 🤷🏻

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

@JammingBen JammingBen force-pushed the remove-file-versions-from-store branch from 87f7ed9 to e13492c Compare January 18, 2024 12:31
Removes the file versions from the vuex files store module because there is no need to store them in any store.
@JammingBen JammingBen force-pushed the remove-file-versions-from-store branch from e13492c to 9207629 Compare January 18, 2024 14:26
Copy link

sonarcloud bot commented Jan 18, 2024

@JammingBen JammingBen merged commit b48ab68 into master Jan 18, 2024
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the remove-file-versions-from-store branch January 18, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants