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

TDRD-229 - Add skipValidation flag in addOrUpdateBulkFileMetadata mutation #1017

Merged
merged 10 commits into from
Feb 5, 2025

Conversation

vimleshtna
Copy link
Contributor

No description provided.

@vimleshtna vimleshtna requested a review from TomJKing January 24, 2025 12:57
…kip-validation

# Conflicts:
#	src/main/scala/uk/gov/nationalarchives/tdr/api/metadatainputvalidation/MetadataInputTags.scala
Copy link
Contributor

@TomJKing TomJKing left a comment

Choose a reason for hiding this comment

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

Thanks for looking at this. Made some comments around changing the approach and some restructuring of the code to make it more clear, I hope

@@ -33,6 +34,34 @@ class ValidateFileMetadataService(
})
}

def addAdditionalMetadataStatuses(fileMetadataList: Seq[AddOrUpdateFileMetadata]): Future[Seq[FilestatusRow]] = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should move this method to the FileStatusService class

The helper methods: toPropertyNames; toAdditionalMetadataFieldGroups; toValueDependenciesGroups should be moved to the CustomMetadataPropertiesService

schema.graphql Show resolved Hide resolved
@vimleshtna vimleshtna requested a review from TomJKing January 30, 2025 18:55
Copy link
Contributor

@TomJKing TomJKing left a comment

Choose a reason for hiding this comment

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

Looks good. Mostly just tidy up comments. Thanks

@vimleshtna vimleshtna requested a review from TomJKing January 31, 2025 15:43
Copy link
Contributor

@TomJKing TomJKing left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks.

Will need to add the new flag in the Draft Metadata validation lambda once this change is in Production.

@vimleshtna vimleshtna merged commit 780003c into master Feb 5, 2025
100 checks passed
@vimleshtna vimleshtna deleted the TDRD-229-allow-to-skip-validation branch February 5, 2025 16:41
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