Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

[full-ci] personal spaceId in URL - #7053

Merged
kulmann merged 12 commits into
masterfrom
issues/7024
Jun 13, 2022
Merged

kulmann merged 12 commits into
masterfrom
issues/7024

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented May 24, 2022 •

Copy link
Copy Markdown
Contributor

Description

We now include the personal space id in the URL instead of using a magic "home" alias. When using the old "home" alias the user gets redirected to the URL with their personal space id.

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

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:

@update-docs

update-docs Bot commented May 24, 2022

Copy link
Copy Markdown

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.

Comment thread packages/web-app-files/src/index.js Resolved
@kulmann kulmann changed the title Start implementation of spaceId in personal home [full-ci] Start implementation of spaceId in personal home Jun 3, 2022
@kulmann kulmann changed the title [full-ci] Start implementation of spaceId in personal home [full-ci] personal spaceId in URL Jun 3, 2022
@kulmann kulmann mentioned this pull request Jun 3, 2022
21 of 25 tasks
@ownclouders

ownclouders commented Jun 3, 2022 •

Copy link
Copy Markdown
Contributor

Results for oCISSharingAndUpload https://drone.owncloud.com/owncloud/web/26146/67/1

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

webUIUpload-upload_feature-L188.png

webUIUpload-upload_feature-L188.png

webUIUpload-upload_feature-L55.png

webUIUpload-upload_feature-L55.png

webUIUpload-upload_feature-L69.png

webUIUpload-upload_feature-L69.png

@dschmidt dschmidt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should move the quota setting somewhere else, apart from that ok IMHO.

const user = await client.users.getUser(ref.user.id)
const user = await client.users.getUser(router.currentRoute.params.storageId)
store.commit('SET_QUOTA', user.quota)
})()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems wrong, afaict this would update the user specific quota when viewing someone else's personal space.

What happens, when we use a bookmark to enter oC Web and skipping the personal view? Does the quota get loaded at all (it's visible from the user menu)? This seems to the wrong place after all.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good point, will create a followup issue to query quota from the backend in some other place (maybe quota component in the topbar, maybe something that polls with low frequency, let's see...)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

created #7093 to follow up on this

buildWebDavFilesPath(this.user.id, resource),
targetPath
)
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we reduce the code duplication here? This block is almost exactly the same as for the move operation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Won't spend time on it since the location picker will most likely go away. 😅

@kulmann
kulmann marked this pull request as ready for review June 3, 2022 10:25
@kulmann

kulmann commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

found an issue in upload-only public links, which were also the/one reason why CI failed. fixing it now...

@kulmann
kulmann force-pushed the issues/7024 branch 2 times, most recently from 2bb5003 to 8944526 Compare June 9, 2022 14:01
@kulmann
kulmann force-pushed the issues/7024 branch 3 times, most recently from 87b8130 to 1eb252b Compare June 10, 2022 21:23
@kulmann

kulmann commented Jun 10, 2022

Copy link
Copy Markdown
Contributor

Somehow we can't get a working ocis in the e2e tests... fails with:

+ mc mirror s3/owncloud/web/ocis-build/$OCIS_COMMITID /var/www/owncloud/ocis-build/
5s
9	mc: <ERROR> Unable to stat source `s3/owncloud/web/ocis-build/123ddc6c9141ab634594d0fb531c72bf90ff6b58`. Object does not exist.

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

41.4% 41.4% Coverage
8.2% 8.2% Duplication

@kulmann
kulmann merged commit b75b56d into master Jun 13, 2022
@delete-merged-branch
delete-merged-branch Bot deleted the issues/7024 branch June 13, 2022 11:36
ownclouders pushed a commit that referenced this pull request Jun 13, 2022
Author: Jan <[email protected]>
Date:   Mon Jun 13 13:36:07 2022 +0200

    [full-ci] personal spaceId in URL (#7053)

    Use personal storage id in url

    Co-authored-by: Benedikt Kulmann <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Personal space ids in URL

4 participants