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

[#55939] OneDrive/SharePoint storage with AMPF can be added as manual folder #16007

Conversation

judithroth
Copy link
Contributor

https://community.openproject.org/work_packages/55939

Because managing of permissions is complex on OneDrive, a storage with automatically managed access and folders can not host projects with manually managed permissions.


Please notice that an existing file had to be renamed due to rubocop complaining.

@@ -0,0 +1,30 @@
module OAuthConnectionsHelpers
def mock_one_drive_authorization_validation(with: {})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If someone has a better suggestion on how to name this method please let me know 🙂

Copy link
Member

Choose a reason for hiding this comment

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

eventually this will vanish for a VCR cassette, so I wouldn't bother too much. Name is fine.

Copy link
Contributor Author

@judithroth judithroth Jul 9, 2024

Choose a reason for hiding this comment

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

Actuall I tried using a VCR cassette first (it "shows no option for manually managed permissions", vcr: "auth/one_drive/user_token" do) but had some issues with it, because it's a feature spec:

            An HTTP request has been made that VCR does not know how to handle:
              GET http://172.18.0.9:3000/__identify__

(The IP is from the docker container and probably needs to be ignored by VCR - I didn't dive into this).

@judithroth judithroth force-pushed the bug/55939-onedrivesharepoint-storage-with-ampf-can-be-added-as-manual-folder branch 2 times, most recently from e851245 to c70ad6a Compare July 1, 2024 16:35
@judithroth judithroth marked this pull request as ready for review July 2, 2024 07:34
@judithroth judithroth requested a review from a team July 2, 2024 07:35
@judithroth judithroth marked this pull request as draft July 2, 2024 10:06
@judithroth judithroth removed the request for review from a team July 2, 2024 10:10
@judithroth judithroth force-pushed the bug/55939-onedrivesharepoint-storage-with-ampf-can-be-added-as-manual-folder branch from c70ad6a to 1858a34 Compare July 8, 2024 13:26
…as manual folder

https://community.openproject.org/work_packages/55939

Because managing of permissions is complex on OneDrive, a storage with
automatically managed access and folders can not host projects with
manually managed permissions.

---

Please notice that an existing file had to be renamed due to rubocop complaining.
@judithroth judithroth force-pushed the bug/55939-onedrivesharepoint-storage-with-ampf-can-be-added-as-manual-folder branch from 1858a34 to 3248469 Compare July 8, 2024 13:31
@judithroth judithroth marked this pull request as ready for review July 8, 2024 13:48
@judithroth judithroth requested a review from a team July 8, 2024 13:48
modules/storages/app/models/storages/project_storage.rb Outdated Show resolved Hide resolved
@@ -0,0 +1,30 @@
module OAuthConnectionsHelpers
def mock_one_drive_authorization_validation(with: {})
Copy link
Member

Choose a reason for hiding this comment

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

eventually this will vanish for a VCR cassette, so I wouldn't bother too much. Name is fine.

@judithroth judithroth requested a review from Kharonus July 9, 2024 12:27
Copy link
Member

@Kharonus Kharonus left a comment

Choose a reason for hiding this comment

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

LGTM

@judithroth judithroth merged commit bd9c253 into dev Jul 10, 2024
10 checks passed
@judithroth judithroth deleted the bug/55939-onedrivesharepoint-storage-with-ampf-can-be-added-as-manual-folder branch July 10, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants