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

Feat/MET-6035 Fixing depublication reason #685

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

JoanaCMS
Copy link
Contributor

No description provided.

@@ -328,7 +330,7 @@ private Query<DepublishRecordId> prepareQueryForDepublishRecordIds(String datase
* {@link DepublicationStatus#PENDING_DEPUBLICATION}
*/
public void markRecordIdsWithDepublicationStatus(String datasetId, Set<String> recordIds,
DepublicationStatus depublicationStatus, @Nullable Date depublicationDate) {
DepublicationStatus depublicationStatus, @Nullable Date depublicationDate, DepublicationReason depublicationReason) {

// Check correctness of parameters
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps add a check below? Similarly to where we check that the date must not be null when depublishing a record, we should check that the reason must not be null either?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is a good point, I've just added an else if condition for this scenario

@JoanaCMS JoanaCMS merged commit 51f098a into develop Aug 21, 2024
6 of 7 checks passed
@stzanakis stzanakis deleted the feat/MET-6035_Fixing_depublication_reason branch October 4, 2024 10:18
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.

2 participants