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

Add unleash flag to skip trino tag matched get logic #5436

Merged
merged 5 commits into from
Jan 7, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
flag move
lcouzens committed Jan 7, 2025
commit 415e59024b4303ed93b547be6356c27b77a278a7
14 changes: 7 additions & 7 deletions koku/masu/processor/__init__.py
Original file line number Diff line number Diff line change
@@ -70,13 +70,6 @@ def is_ocp_on_cloud_summary_disabled(account): # pragma: no cover
return res


def is_tag_processing_disabled(account): # pragma: no cover
"""Flag the customer as tag processing disabled."""
account = convert_account(account)
context = {"schema": account}
return UNLEASH_CLIENT.is_enabled("cost-management.backend.is_tag_processing_disabled", context)


def is_rate_limit_customer_large(account): # pragma: no cover
"""Flag the customer as large and to be rate limited."""
account = convert_account(account)
@@ -188,3 +181,10 @@ def is_customer_cost_model_large(account): # pragma: no cover
account = convert_account(account)
context = {"schema": account}
return UNLEASH_CLIENT.is_enabled("cost-management.backend.large-customer-cost-model", context)


def is_tag_processing_disabled(account): # pragma: no cover
"""Flag the customer as tag processing disabled."""
account = convert_account(account)
context = {"schema": account}
return UNLEASH_CLIENT.is_enabled("cost-management.backend.is_tag_processing_disabled", context)