Closed tolgaOzen closed 1 month ago
The changes in this pull request involve modifications to the LookupEngine
class in internal/engines/lookup.go
, specifically updating the LookupSubject
method's conditional logic, simplifying continuous token handling, and adjusting return statements. Additionally, a new test case is introduced in internal/engines/lookup_test.go
to validate pagination functionality in permission lookups. These updates streamline the method's logic and enhance the test suite.
File | Change Summary |
---|---|
internal/engines/lookup.go | - Updated conditional logic in LookupSubject method to check for ALL instead of wildcard <> . |
- Simplified continuous token handling; removed manual decoding. | |
- Adjusted return statements to clarify pagination logic. | |
internal/engines/lookup_test.go | - Added new test case "Weekday Sample: Case 3 pagination" to validate permission lookup with pagination. |
LookupSubject
method in lookup.go
, specifically addressing the handling of the wildcard <>
, which is directly related to the conditional logic update in the main PR that focuses on the ALL
identifier.In the engine's heart, a change so bright,
With logic refined, it takes to flight.
Pagination dances, permissions align,
A test case added, all works divine.
Hopping through code, like a rabbit in spring,
Celebrating changes, oh what joy they bring! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
ALL
identifier.Tests