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

Fix communuity records listing and bump dependencies #1102

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ sphinx = ">=4.5"
isort = "<6.0" # Unpin when isort==6.0.0 is released

[packages]
invenio-app-rdm = {version = "~=13.0.0b1.dev22", extras = ["opensearch2"]}
# See https://github.com/zenodo/zenodo-rdm/issues/1100 for the reason of the pin
invenio-app-rdm = {version = "==13.0.0b1.dev24", extras = ["opensearch2"]}
invenio-rdm-records = ">=16.4.1,<16.5.0"
invenio-vocabularies = ">=6.9.0,<6.10.0"
invenio-theme = ">=3.5.1,<3.5.2"
sentry-sdk = ">=1.45,<2.0.0"
zenodo_rdm = {editable="True", path="./site"}
zenodo_legacy = {editable="True", path="./legacy"}
# TODO: Remove once we fix PyPI package issues
invenio-swh = {git = "https://github.com/inveniosoftware/invenio-swh", ref = "v0.11.0"}
invenio-swh = {git = "https://github.com/inveniosoftware/invenio-swh", ref = "v0.12.0"}
jsonschema = ">=4.17.0,<4.18.0" # due to compatibility issues with alpha
ipython = "!=8.1.0"
uwsgi = ">=2.0"
Expand Down
74 changes: 32 additions & 42 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion site/zenodo_rdm/subcommunities/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
def _add_community_records(child_id, parent_id, uow):
"""Add records from child to parent."""
records = current_community_records_service.search(
system_identity, community_id=child_id
system_identity,
community_id=child_id,
scan=True,
)
current_rdm_records.record_communities_service.bulk_add(
system_identity, parent_id, (x["id"] for x in records), uow=uow
Expand Down
Loading