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

Current shared collection refactoring changes #2016

Open
wants to merge 10 commits into
base: updated-shared-sync-collection-refactoring
Choose a base branch
from

Conversation

TasnimMehzabin
Copy link
Contributor

Initial fixes for element tag

  • it displays the element tag again
  • minor text change
  • fix the issue with accepting of ownership
  • fix the deletion of a shared collection
  • fix the creation of a shared collection with all the elements when no label is entered
  • fix collection-sharing with groups

Tasnim Mehzabin added 5 commits July 12, 2024 11:28
fix: count of My Collections in the ElementTag
fix: collection names being disabled for own collections
fix: issue with creation of ElementTag data
fix: issue with update of ElementTag data
… the collection rights. Now it will only switch the sharer and shared roles when transfer of ownership is accepted
…) i.e. set the permission level to 4 for the new owner
@@ -29,7 +29,7 @@ class ShareCollectionAPI < Grape::API
create_or_move_collection(params[:action], from_collection, to_collection_id, params[:ui_state])
# create_generic_elements(params, from_collection, to_collection_id)
to_collection_id = to_collection_id ? to_collection_id : from_collection&.id
create_acl_collection(user[:value], to_collection_id, params, from_collection&.label)
create_acl_collection(user[:value], to_collection_id, params)

Choose a reason for hiding this comment

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

Style/NegatedIfElseCondition: Invert the negated condition and swap the if-else branches.

@TasnimMehzabin TasnimMehzabin force-pushed the current-shared-collection-refactoring-changes branch from fccdf0e to cafdf8e Compare July 12, 2024 12:26
Tasnim Mehzabin added 5 commits July 12, 2024 14:28
@TasnimMehzabin TasnimMehzabin force-pushed the current-shared-collection-refactoring-changes branch from cafdf8e to 9ce3366 Compare July 12, 2024 12:28
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.

1 participant