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

Do not validate schemas when importing with nexus ship #4826

Merged

Conversation

olivergrabinski
Copy link
Contributor

@olivergrabinski olivergrabinski commented Apr 3, 2024

Due to pre-1.5 schemas failing to validate while importing, we disable the validation in the ship.

@@ -50,6 +50,9 @@ class SchemaProcessor private (schemas: Schemas, projectMapper: ProjectMapper, c
{
case a: ResourceAlreadyExists => logger.warn(a)("The schema already exists").as(ImportStatus.Dropped)
case i: IncorrectRev => logger.warn(i)("An incorrect revision has been provided").as(ImportStatus.Dropped)
case i: InvalidSchema =>
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need this as it won't happen if there is no validation

Comment on lines +53 to +55
case i: InvalidSchema =>
val message = s"The schema '${i.id}' is invalid. Report: ${i.report}"
logger.error(message) >> IO.raiseError(i)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without validation this technically should not occur anymore

@olivergrabinski olivergrabinski merged commit 647c4cf into BlueBrain:master Apr 3, 2024
2 checks passed
@olivergrabinski olivergrabinski deleted the ship-no-schema-validation branch April 3, 2024 14:51
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