Skip to content

Conversation

@alrosca
Copy link
Collaborator

@alrosca alrosca commented Jan 9, 2026

Updated the entitlements endpoint

if err != nil {
return nil, err
}
entitlements := map[string]interface{}{}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this whole section get dropped? This provided expired and false filtering that skipped any entitlement from an expired product and ignored flags that were false or 0. By deleting it, the new implementation returns the map verbatim. Does the endpoint guarantee it only serves up active, true entries? I apologize since I missed the business logic ask. But how are we guarding against disabled entitlements?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that's why the test for testing expired and false entitlements were removed as well?

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.

3 participants