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

Transfer data integration #13

Merged
merged 7 commits into from
Jun 10, 2024
Merged

Transfer data integration #13

merged 7 commits into from
Jun 10, 2024

Conversation

Ignas-rgb
Copy link
Contributor

New endpoint to handle the transfer of a report. Once the transfer is complete the report gets updated with history edits and new external system fields.

@Ignas-rgb Ignas-rgb requested a review from vycius April 24, 2024 13:18
src/admin/admin.service.ts Outdated Show resolved Hide resolved
}
})
.catch((error) => {
console.log(error);
Copy link
Member

Choose a reason for hiding this comment

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

Debugging errors will be challenging since Sentry won't capture these errors, and you'll only find them only in Docker logs. To mitigate this, consider configuring axios validateStatus (as explained here: link) and consistently return AxiosResponse instead of AxiosResponse|null from this function. This way, if an error occurs, Sentry will capture it along with supplementary information such as the transferReportDto values and you won't need to deal with null case.

src/admin/dto/full-report.dto.ts Outdated Show resolved Hide resolved
})
@Post('/reports/transfer')
async transferReport(
@Body() transferReportDto: TransferReportDto,
Copy link
Member

Choose a reason for hiding this comment

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

Is it necessary to pass the entire TransferReportDto, or would just the ReportID suffice for this method?

@Ignas-rgb Ignas-rgb merged commit f7953c7 into main Jun 10, 2024
3 checks passed
@Ignas-rgb Ignas-rgb deleted the transfer-data-integration branch June 10, 2024 11:13
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