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

Support archive downloads on oc10 backends aka archiver v1.0.0 #6697

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

kulmann
Copy link
Contributor

@kulmann kulmann commented Mar 31, 2022

Description

Support archive downloads on oc10 backends aka archiver v1.0.0.

Also moved archive download related code to the archiverService to keep it
in one place and expose less api for the service.
Unit tests have been changed to only use the public api of the service
as well.

Related Issue

Motivation and Context

customer demand

How Has This Been Tested?

  • unit tests + manually

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

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Moved archive download related code to the `archiverService` to keep it
in one place and expose less api for the service.
Unit tests have been changed to only use the public api of the service
as well.
@@ -127,7 +127,14 @@ export default {
userReady({ store }) {
archiverService.initialize(
store.getters.configuration.server || window.location.origin,
get(store, 'getters.capabilities.files.archivers', [])
get(store, 'getters.capabilities.files.archivers', [
Copy link
Contributor Author

@kulmann kulmann Mar 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long term we should add the v1.0.0 capability to core / php based backend. Added it as a fallback for compatibility in the meantime.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. Care to open a ticket in github.com/owncloud/core/issues?:)

@ownclouders
Copy link
Contributor

Results for oC10Files2 https://drone.owncloud.com/owncloud/web/24280/17/1

💥 The acceptance tests failed on retry. Please find the screenshots inside ...

webUIFilesActionMenu-fileFolderActionMenu_feature-L37.png

webUIFilesActionMenu-fileFolderActionMenu_feature-L37.png

💥 The acceptance tests pipeline failed. The build has been cancelled.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

58.1% 58.1% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM and CI is happy, however as seen in the screenshare it doesn't work on public links due to the lack of token/presigned URL

@@ -127,7 +127,14 @@ export default {
userReady({ store }) {
archiverService.initialize(
store.getters.configuration.server || window.location.origin,
get(store, 'getters.capabilities.files.archivers', [])
get(store, 'getters.capabilities.files.archivers', [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. Care to open a ticket in github.com/owncloud/core/issues?:)

@kulmann
Copy link
Contributor Author

kulmann commented Mar 31, 2022

Code LGTM and CI is happy, however as seen in the screenshare it doesn't work on public links due to the lack of token/presigned URL

will followup in a separate PR in the future, but needs backend changes first. for the moment this already brings new functionality for the authenticated context.

@kulmann kulmann merged commit d683465 into master Mar 31, 2022
@delete-merged-branch delete-merged-branch bot deleted the archiver-service-v1 branch March 31, 2022 15:58
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.

Archive downloads for oc10
3 participants