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

MODSOURCE-859: Create new API POST /source-storage/records/{id}/un-delete #673

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AndreiBordak
Copy link

@AndreiBordak AndreiBordak commented Feb 18, 2025

Purpose

Undelete feature for records

Approach

API

TODOS and Open Questions

  • Use GitHub checklists. When solved, check the box and explain the answer.
  • Check logging.

Learning

Describe the research stage. Add links to blog posts, patterns, libraries or addons used to solve this problem.

@@ -421,6 +422,21 @@ public Future<Void> deleteRecordById(String id, IdType idType, Map<String, Strin
.compose(record -> updateRecord(record, okapiHeaders)).map(r -> null);
}

@Override
public Future<Void> unDeleteRecordById(String id, IdType idType, Map<String, String> okapiHeaders) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this method send domain event?

Copy link
Author

@AndreiBordak AndreiBordak Feb 20, 2025

Choose a reason for hiding this comment

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

Yes, it does. It publishes event in RecordDaoImpl
image

@pkjacob
Copy link

pkjacob commented Feb 20, 2025

@AndreiBordak,

More code coverage is needed. Changes in RecordServiceImpl is not tested.

@askhat-abishev
Copy link

askhat-abishev commented Feb 21, 2025

@AndreiBordak there are 3 New issues

@AndreiBordak AndreiBordak requested a review from psmagin February 21, 2025 12:00
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.

4 participants