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

Issue 1199 add sharing permisions to sample types #1953

Conversation

kdp-cloud
Copy link
Collaborator

  • Users are now able to set policies with permissions.
  • The current rules for viewing, editing and deleting should still remain the same.
  • There is also a upgrade job that adds policies to the existing sample types.

@kdp-cloud kdp-cloud added this to the 1.16.0 milestone Jul 10, 2024
@kdp-cloud kdp-cloud self-assigned this Jul 10, 2024
@kdp-cloud kdp-cloud linked an issue Jul 10, 2024 that may be closed by this pull request
@kdp-cloud kdp-cloud marked this pull request as ready for review July 10, 2024 19:09
@kdp-cloud kdp-cloud force-pushed the issue_1199_add_sharing_permisions_to_sample_types branch from 9c27d04 to 2a90c9b Compare July 24, 2024 13:01
@stuzart stuzart self-requested a review September 11, 2024 09:12
Copy link
Member

@stuzart stuzart left a comment

Choose a reason for hiding this comment

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

I think the main problem is the mixing of explicit permissions then being over-ruled by the old implicit permissions

I've not checked the tests as these may be affected by changes

app/controllers/sample_types_controller.rb Outdated Show resolved Hide resolved
app/models/sample_type.rb Outdated Show resolved Hide resolved
app/models/sample_type.rb Outdated Show resolved Hide resolved
lib/seek/acts_as_asset/content_blobs.rb Outdated Show resolved Hide resolved
lib/tasks/seek_upgrades.rake Outdated Show resolved Hide resolved
lib/tasks/seek_upgrades.rake Outdated Show resolved Hide resolved
lib/tasks/seek_upgrades.rake Outdated Show resolved Hide resolved
lib/tasks/seek_upgrades.rake Outdated Show resolved Hide resolved
lib/tasks/seek_upgrades.rake Show resolved Hide resolved
kdp-cloud and others added 9 commits September 30, 2024 13:33
Since  sharing permissions are set explicitly, linked samples should not
be revealed anymore
Permissions are not overwritten anymore and are solely set through the
manual permissions
Deleting blobs linked to sample types is done in the same manner as the
blobs linked to other assets.
@kdp-cloud kdp-cloud requested a review from stuzart October 2, 2024 12:38
test/functional/samples_controller_test.rb Outdated Show resolved Hide resolved
test/functional/samples_controller_test.rb Outdated Show resolved Hide resolved
app/controllers/sample_types_controller.rb Outdated Show resolved Hide resolved
@kdp-cloud kdp-cloud merged commit f67c8d9 into seek4science:main Oct 10, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Coded
Status: Done
Development

Successfully merging this pull request may close these issues.

Add sharing permissions to Sample Type
2 participants