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

subcommunities: add invitation request #1067

Merged
merged 9 commits into from
Nov 28, 2024

Conversation

carlinmack
Copy link
Contributor

@carlinmack carlinmack commented Nov 18, 2024

Close #1061

image

@carlinmack carlinmack force-pushed the subcom-invitation branch 2 times, most recently from 193ddc6 to 22eea5a Compare November 20, 2024 14:57
site/zenodo_rdm/legacy/requests/utils.py Outdated Show resolved Hide resolved
site/zenodo_rdm/legacy/requests/utils.py Outdated Show resolved Hide resolved
site/zenodo_rdm/subcommunities/request.py Outdated Show resolved Hide resolved
Comment on lines 154 to 156
return current_community_records_service.search(
system_identity, community_id=community_id
)
Copy link
Member

Choose a reason for hiding this comment

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

major/shelve: this method only returns the first 25 results from the record search, so the code below doesn't "bulk add" all the records of the community.

This actually is a bug even in our subcommunity inclusion request logic above, which means that when we accept subcommunity requests, this doesn't add ALL the records of the community to the parent community.

It's relatively low impact though, since most communities don't have that many records (or probably have no records at all, since they've just being created). For the new request type though, this will not be the case, so this has to be fixed relatively quick.

site/zenodo_rdm/subcommunities/request.py Outdated Show resolved Hide resolved
site/zenodo_rdm/subcommunities/request.py Outdated Show resolved Hide resolved
site/zenodo_rdm/subcommunities/request.py Outdated Show resolved Hide resolved
@slint slint force-pushed the subcom-invitation branch from 57f76f8 to e4d52df Compare November 28, 2024 09:35
@slint slint force-pushed the subcom-invitation branch from e4d52df to 1ad7bf1 Compare November 28, 2024 10:12
@slint slint merged commit 5a2ee37 into zenodo:master Nov 28, 2024
3 checks passed
Copy link
Contributor Author

Choose a reason for hiding this comment

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

😴

Copy link
Member

@slint slint Nov 28, 2024

Choose a reason for hiding this comment

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

Oh no, my infamous sleep.py script for deployment shenanigans 😱

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🛌

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.

Create subcommunity invitation request
3 participants