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

#4270 - Update the Data Types to adapt to import #4329

Merged
merged 5 commits into from
Feb 7, 2025

Conversation

dheepak-aot
Copy link
Collaborator

@dheepak-aot dheepak-aot commented Feb 7, 2025

As per the testing done from SFAS file, data type of the following DB columns have been updated.

  • sims.sfas_individuals - column phone_number changed to BIGINT.
  • sims.sfas_applications - column application_number changed to BIGINT.
  • sims.sfas_applications - column gross_income_previous_year changed to NUMERIC(10,2).
  • Numeric transformer was used wherever required.

Note: Type casting wasn't used in the data type conversion expecting no data in the columns.

Rollback Evidence

image

image

@dheepak-aot dheepak-aot added the DB DB migration involved label Feb 7, 2025
@dheepak-aot dheepak-aot self-assigned this Feb 7, 2025
@dheepak-aot dheepak-aot changed the title Fix/4270 update data type #4270 - update data type Feb 7, 2025
@dheepak-aot dheepak-aot changed the title #4270 - update data type #4270 - Update the Data Types to adapt to import Feb 7, 2025
@dheepak-aot dheepak-aot marked this pull request as ready for review February 7, 2025 19:01
@@ -53,6 +53,11 @@ export class SFASIntegrationProcessingService {
for (const filePath of filePaths) {
await this.processFile(filePath, processSummary);
}
if (!filePaths.length) {
processSummary.info(
"There are no files to be processed. But post file import operations will be executed.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor, I would change as below.

There are no files to be processed, but post-file import operations will be executed.

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

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

Nice work and nice catches, looks good 👍

Copy link

sonarqubecloud bot commented Feb 7, 2025

Copy link

github-actions bot commented Feb 7, 2025

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.09% ( 3903 / 17668 )
Methods: 9.98% ( 226 / 2264 )
Lines: 25.42% ( 3369 / 13251 )
Branches: 14.31% ( 308 / 2153 )

Copy link

github-actions bot commented Feb 7, 2025

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 65.59% ( 589 / 898 )
Methods: 59.63% ( 65 / 109 )
Lines: 68.72% ( 468 / 681 )
Branches: 51.85% ( 56 / 108 )

Copy link

github-actions bot commented Feb 7, 2025

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 87.58% ( 1418 / 1619 )
Methods: 84.66% ( 160 / 189 )
Lines: 89.72% ( 1170 / 1304 )
Branches: 69.84% ( 88 / 126 )

Copy link

github-actions bot commented Feb 7, 2025

E2E SIMS API Coverage Report

Totals Coverage
Statements: 68.41% ( 6118 / 8943 )
Methods: 66.29% ( 757 / 1142 )
Lines: 72.18% ( 4787 / 6632 )
Branches: 49.1% ( 574 / 1169 )

Copy link
Collaborator

@sh16011993 sh16011993 left a comment

Choose a reason for hiding this comment

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

Great work @dheepak-aot 👍

@dheepak-aot dheepak-aot added this pull request to the merge queue Feb 7, 2025
Merged via the queue into main with commit ba12ce8 Feb 7, 2025
21 checks passed
@dheepak-aot dheepak-aot deleted the fix/4270-update-data-type branch February 11, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DB DB migration involved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants