From 8b4f961c78965494e6eb4743f2cf96955c1984c4 Mon Sep 17 00:00:00 2001 From: Aleksandr Komissarov Date: Tue, 12 Dec 2023 12:52:18 +0100 Subject: [PATCH] LITE-29206 After fix of tier account visibility you still can get preview tier configurations, but without TA. With this fix, such previews will not reach the report. --- reports/ms_cooper/entrypoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reports/ms_cooper/entrypoint.py b/reports/ms_cooper/entrypoint.py index b328f55..1e07637 100644 --- a/reports/ms_cooper/entrypoint.py +++ b/reports/ms_cooper/entrypoint.py @@ -248,8 +248,9 @@ def get_param_value(params, param_id): return param['value'] if 'value' in param else '-' return '-' + def init_product_tc_cache(product, client): - rql = R().product.id.eq(product) & R().status.eq('active') & R().tier_level.eq(1) + rql = R().product.id.eq(product) & R().status.eq('active') & R().tier_level.eq(1) & R().connection.type.ne('null()') tcs = client.ns('tier').collection('configs').filter(rql).select( '-configuration', '-connection',