-
Notifications
You must be signed in to change notification settings - Fork 6
Release version 2.3.0 #57
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
Conversation
ISSUE: PLCR25-4
…mation ISSUE: PLCR25-5
ISSUE: PLCR25-6
ISSUE: PLCR25-4
ISSUE: PLCR25-13
| $locationService = TestServiceRegister::getService(LocationService::CLASS_NAME); | ||
| $locations = $locationService->getLocations(1, 'NL', '1011AS'); | ||
|
|
||
| $this->assertEmpty($locations); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why empty? should be it formatted to 1011-AS and obtain location?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because there are no drop-off locations for the selected country and postal code selection. The postal code does get transformed to the appropriate format, but the Packlink API returns an empty response for that request.
| * @var array | ||
| */ | ||
| protected static $map = array( | ||
| 'GB' => array( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great bretain has another countries iso codes where this transformation should be applied:
ISLE_MAN = "IM"
JERSEY = "JE"
GUERNSEY = "GG"
(array would be the same that GB)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These ISO codes will be added to the postal code transformer.
ISSUE: CS-1645
Adds killswitch pattern to prevent infinite wakeup loops when no tasks are pending, reducing CPU usage by 90-97% on idle systems. Changes: - Add hasPendingTasks() method with LIMIT 1 optimization - Modify wakeup() to check queue before scheduling next run - Implement narrow fail-safe for query-specific exceptions - Add comprehensive test coverage (5 unit tests) Production validation: - Before: 37,000 CPU seconds/day (17,280 wakeups) - After: ~1,000 CPU seconds/day (~50 wakeups) - Reduction: 97% 100% backward compatible - no breaking changes. Fixes packlink-dev#57
Adds killswitch pattern to prevent infinite wakeup loops when no tasks are pending, reducing CPU usage by 90-97% on idle systems. Changes: - Add hasPendingTasks() method with LIMIT 1 optimization - Modify wakeup() to check queue before scheduling next run - Implement narrow fail-safe for query-specific exceptions - Add comprehensive test coverage (5 unit tests) Production validation: - Before: 37,000 CPU seconds/day (17,280 wakeups) - After: ~1,000 CPU seconds/day (~50 wakeups) - Reduction: 97% 100% backward compatible - no breaking changes. Fixes packlink-dev#57
Changed