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

feat: full share owner paths #9721

Merged
merged 26 commits into from
Sep 27, 2023
Merged

feat: full share owner paths #9721

merged 26 commits into from
Sep 27, 2023

Conversation

JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Sep 21, 2023

Description

Successor of #9221

Introduces a new config option routing.fullShareOwnerPaths. When enabling this flag, incoming shares will be accessed via the share owner's space instead of a virtual share space. This also reveals full resource paths to share recipients, even if they don't have access to all parent resources.

Note: There has not been a decision whether this feature should be productized or not, hence the PR is missing a changelog item, proper documentation and tests (for now).

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

To-Do

Follow-ups

  • Productize config fullShareOwnerPaths option? Docs? Config in ocis? @tbsbdr
  • Remove share space resources and use mount points instead when fullShareOwnerPaths is disabled
  • Update graph client for better typing

@update-docs
Copy link

update-docs bot commented Sep 21, 2023

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 mentioned this pull request Sep 22, 2023
39 tasks
@JammingBen JammingBen changed the title feat: full share owner urls feat: full share owner paths Sep 22, 2023
@JammingBen JammingBen marked this pull request as ready for review September 22, 2023 13:11
@JammingBen JammingBen force-pushed the mindblowing-share-urls-2 branch from 59863ee to 9917008 Compare September 25, 2023 07:32
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

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

42.2% 42.2% Coverage
4.9% 4.9% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

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

I'm obviously biased cause I worked on this, but I'm happy to merge this now

@JammingBen JammingBen merged commit 1b44de4 into master Sep 27, 2023
@delete-merged-branch delete-merged-branch bot deleted the mindblowing-share-urls-2 branch September 27, 2023 10:35
AlexAndBear pushed a commit that referenced this pull request Dec 13, 2023
* Add routing options to ocis.web.config.json

* wip: implement full share owner paths

* wip: fix breadcrumb and ancestor loading

* fixup! wip: fix breadcrumb and ancestor loading

* fixup! fixup! wip: fix breadcrumb and ancestor loading

* wip: fix external app handling

* Make unit tests work for now

* Remove console.log

* fix project space access detection

* style: run linter

* add isOwner method for spaces

* introduce useBreadcrumbsFromPath composable

* adjust share root item name

* wip: fix active route item

* Fix logic to determine active sidebar nav items

* fix active share nav item

* prevent mountpoint loading in personal space

* Fix unit tests

* Fix unit tests

* Fix unit tests

* pass spaces to triggerShareAction helper

* move comopsable usage out of method

* undo temp config

* fix space matching when idBased is disabled

* fix trashbin overview

* fix trashbin overview tests

---------

Co-authored-by: Dominik Schmidt <[email protected]>
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.

Access shares with owner's URL, not virtual path
2 participants