-
Notifications
You must be signed in to change notification settings - Fork 14
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
#3738 - SIMS To SFAS Bridge DB Migrations and Scheduler Setup #3785
Conversation
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
creator INT NULL DEFAULT NULL REFERENCES sims.users(id) |
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.
Is there a value in adding these columns?
I would not mind having them removed or maybe the creator removed.
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 have these columns as the System is inserting this data. Please let me know if there is a downside of having them.
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.
For the created_at
I see a benefit. For the creator
it will always be the system
. I do not see a reason to keep the creator
. Since it is a SFAS table it would not be a blocker.
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.
...e-consumers/src/processors/schedulers/sfas-integration/sims-to-sfas-integration.scheduler.ts
Outdated
Show resolved
Hide resolved
...e-consumers/src/processors/schedulers/sfas-integration/sims-to-sfas-integration.scheduler.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/sims-db/src/entities/sfas-bridge-log.model.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/sims-db/src/entities/sfas-bridge-log.model.ts
Outdated
Show resolved
Hide resolved
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.
Nice start, minor comments only, please take a look.
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.
Code Looks Good
sources/packages/backend/apps/db-migrations/src/sql/Queue/Add-sims-to-sfas-integration.sql
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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 for making the changes, looks good 👍
SIMS To SFAS Bridge DB Migrations and Scheduler Setup
DB Migration
sims.sfas_bridge_logs
(Table name modified to plural and the column for file name little different in comparison with technical AC).sims.sfas_bridge_logs
has only creation respective audit columns as it is never expected to receive update.sims-to-sfas-integration
. It is scheduled to run at12:00 AM 4:00 AM 8:00 AM 12:00 PM 12:00 AM 4:00 PM 8:00 AM
with cron expression0 0,4,8,12,16,20 * * *
Rollback Evidence