Skip to content
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

fix: when we fetch inter-service data in can_redeem matters for perf #226

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

iloveagent57
Copy link
Contributor

We should wait to fetch data from enterprise-subsidy until we know we actually need it.

Copy link
Member

@adamstankiewicz adamstankiewicz left a comment

Choose a reason for hiding this comment

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

LGTM. Are there test cases to update/add to account for these changes?

content_key,
)

active_subsidy = subsidy_can_redeem_payload.get('active', False)
Copy link
Member

Choose a reason for hiding this comment

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

[suggestion/nit] Consider adding a code comment that this active refers to a computed property that takes into account start/expiration dates so there's less confusion between the subsidy active value versus the policy's is_active flag?

@iloveagent57 iloveagent57 merged commit dc9fa89 into main Jul 27, 2023
2 checks passed
@iloveagent57 iloveagent57 deleted the aed/reorder-can-redeem-calls branch July 27, 2023 19:52
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.

2 participants