-
Notifications
You must be signed in to change notification settings - Fork 1
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
MODDICONV-365: Automatically migration preparation for already migrated envs. #49
MODDICONV-365: Automatically migration preparation for already migrated envs. #49
Conversation
mod-di-converter-storage-server/src/main/java/org/folio/dao/association/ProfileWrapperDao.java
Show resolved
Hide resolved
.onFailure(th -> LOGGER.error("migrateDataImportProfiles:: Something happened during the profile migration", th)); | ||
.onFailure(th -> { | ||
LOGGER.error("migrateDataImportProfiles:: Something happened during the profile migration", th); | ||
throw new CompletionException(th); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why throw this? I don't think onFailure
needs a return object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks
I like these changes. Using the metadata_internal table is good as well! |
To check the results of the migration. Could be remove after migration. | ||
*/ | ||
drop table if exists snapshots_new; | ||
create table snapshots_new as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is still using the get_profile_snapshot
function is still using the old version and not one that uses wrapperId. So it would contain the same information as snapshot_old.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @okolawole-ebsco, I moved the creation of snapshot_new into the latest script.
@Aliaksandr-Fedasiuk Is it expected that link on raml-storage is updated in the PR ? |
thanks @VRohach, fixed |
}, | ||
{ | ||
"tableName": "metadata_internal", | ||
"fromModuleVersion": "mod-di-converter-storage-2.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the version here be 2.1.7?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KaterynaSenchenko, thanks! fixed
Quality Gate failedFailed conditions |
Purpose
Migration will start automatically only when profile_wrappers table is empty.
Approach
The script to clean table was added
Learning
MODDICONV-365