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

service: fix restore/delete of specific record version #1523

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

zzacharo
Copy link
Member

@zzacharo zzacharo commented Oct 6, 2023

@zzacharo zzacharo force-pushed the versions-management branch 2 times, most recently from dd6d2e9 to 485c2a9 Compare October 9, 2023 14:00
@@ -258,9 +273,23 @@ def restore_record(self, identity, id_, expand=False, uow=None):
# Run components
self.run_components("restore_record", identity, record=record, uow=uow)

# set latest to the previous non deleted record
latest_record_version = self.record_cls.get_latest_by_parent(record.parent)
Copy link
Member Author

Choose a reason for hiding this comment

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

I should filter based on deletion_status

@zzacharo zzacharo merged commit 1a7ff75 into inveniosoftware:master Oct 10, 2023
4 checks passed
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.

versions: nominate correct latest version when deleting specific version
1 participant