canadapost: normalize tracking status mapping for padded event ids#970
Open
HansDaigle wants to merge 5565 commits intokarrioapi:mainfrom
Open
canadapost: normalize tracking status mapping for padded event ids#970HansDaigle wants to merge 5565 commits intokarrioapi:mainfrom
HansDaigle wants to merge 5565 commits intokarrioapi:mainfrom
Conversation
…nner while loading
Fix Cache.get() writing None to system cache instead of actual value when syncing from shallow cache. Reduce DHL Parcel DE buffer_minutes from 30 to 5 to prevent tokens from being considered immediately expired when expires_in <= 1800s.
- Fix periodic_data_archiving running every minute by setting crontab to daily at midnight - Always include feature flags in CONSTANCE_CONFIG with False default when module absent - Replace naive datetime.now() with timezone.now() for Fee record queries - Fix health status API double-slash URL causing 404 - Add keyword search field to tracing records filter
fix: resolve OSS admin bugs and developer tools issues
|
@HansDaigle is attempting to deploy a commit to the karrio Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
Implementation note: Canada Post can emit the same event code with different event descriptions, and those variants can map to different normalized statuses. This PR handles that by supporting description-specific overrides in the status mapping, with a default fallback when no description-specific rule matches. |
Contributor
Author
|
Updated this PR with an additional Canada Post tracking parser fix. What changed:
Why:
|
Member
|
Merged into patch-2026.1.16 release branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
__description_en__,__description_fr__) in the mapping for maintainabilityTests
modules/connectors/canadapost/tests/canadapost/test_tracking.pyexpected parsed response for normalized statusespython -m unittest discover -f testsinmodules/connectors/canadapost