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

Feat(anrok): add handling discarded errors when retrying invoice #2341

Merged
merged 6 commits into from
Jul 31, 2024

Conversation

annvelents
Copy link
Contributor

@annvelents annvelents commented Jul 26, 2024

Context

When retrying an invoice we want to mark all previous errors as discarded, so if the invoice succeeded these errors will not be shown

Description

  • Update deleted_at for existing tax_error error_details when retrying fetch taxes for the invoice
  • Create new errors when retrying invoice fetching taxes failed
  • Serialize only error_details that are not discarded

@annvelents annvelents self-assigned this Jul 26, 2024
@annvelents annvelents marked this pull request as ready for review July 26, 2024 15:56
@annvelents annvelents merged commit 1f156d8 into main Jul 31, 2024
6 checks passed
@annvelents annvelents deleted the feat-anrok-add-deleted-at-to-error-details branch July 31, 2024 09:20
abdussamadbello pushed a commit to abdussamadbello/lago-api that referenced this pull request Aug 8, 2024
…lago#2341)

## Context

When retrying an invoice we want to mark all previous errors as
discarded, so if the invoice succeeded these errors will not be shown

## Description

- Update deleted_at for existing tax_error error_details when retrying
fetch taxes for the invoice
- Create new errors when retrying invoice fetching taxes failed
- Serialize only error_details that are not discarded
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