Closed buger closed 4 days ago
Here are some key observations to aid the review process:
**๐ซ Ticket compliance analysis ๐ถ** **[6705](https://github.com/TykTechnologies/tyk/issues/6705) - Partially compliant** Fully compliant requirements: - Fix domain matching edge case related to substring listen paths. - Update the sorting function for listen paths. - Address compatibility issues with httpbin service on macOS with Apple Silicon. Not compliant requirements: - Add unit tests for the new sorting logic. |
โฑ๏ธ Estimated effort to review: 2 ๐ต๐ตโชโชโช |
๐งช No relevant tests |
๐ No security concerns identified |
โก Recommended focus areas for review Sorting Logic The new sorting logic for API specs needs to be validated to ensure it correctly prioritizes domains and listen paths as intended. |
No code suggestions found for the PR.
API Changes
no api changes detected
/release to release-5.3-lts
@andrei-tyk Release branch not found
/release to release-5.3
Working on it! Note that it can take a few minutes.
@andrei-tyk Succesfully merged PR
User description
TT-13507 Fix for custom domains with substring listen path (#6705)
User description
Actual fix for domain matching edge case related to substring listen paths. Fixed the sorting function for the listen paths and added some unit tests.
Extra: httpbin service not working on macos with apple silicon; now it does
Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
Bug fix, Configuration changes
Description
linux/amd64
, addressing compatibility issues on macOS with Apple Silicon.Changes walkthrough ๐
api_loader.go
Fix domain sorting logic in API loader
gateway/api_loader.go
httpbin.yml
Specify platform for httpbin service in Docker configuration
docker/services/httpbin.yml - Added platform specification for httpbin service.
PR Type
Bug fix, Configuration changes
Description
sortSpecsByListenPath
. The sorting now prioritizes listen path length over domain length and ensures empty domains are sorted to the end.linux/amd64
, addressing compatibility issues on macOS with Apple Silicon.Changes walkthrough ๐
api_loader.go
Refactor domain sorting logic in API loader
gateway/api_loader.go
sortSpecsByListenPath
to handle sorting.length.
httpbin.yml
Specify platform for httpbin service in Docker configuration
docker/services/httpbin.yml
linux/amd64
for the httpbin service.api_loader_test.go
...
gateway/api_loader_test.go ...