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

🪳 Avoid read-only relationships in POST requests #232

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

M4tini
Copy link
Member

@M4tini M4tini commented Dec 16, 2024

Posting shipment data to the dynamic-service-rates endpoint caused api-specification errors on the colli relationship.

This relationship was set using setColli() or addCollo() but the Shipment models did not have an id (of course).
This made our automatic validation trigger a missing id in relationship error.

We assume errors to this endpoint are caused by the carrier, so we ignore the rate if it cannot be resolved.
However, in this case our system was always throwing an error, causing dynamic multi-colli rates to always be empty.

@M4tini M4tini merged commit 0b4ae5b into develop Dec 16, 2024
4 checks passed
@M4tini M4tini deleted the bugfix/avoid-colli-relationships-without-an-id branch December 16, 2024 16:43
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.

1 participant