Loading services/TS29222_CAPIF_Events_API/capif_events/core/notifications.py +3 −2 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ class Notifications(): event_filter=None if event in ["SERVICE_API_AVAILABLE", "SERVICE_API_UNAVAILABLE"]: current_app.logger.debug(event_filter) if event_filter: api_ids_list = event_filter.get("api_ids", None) if api_ids_list and event_detail_redis.get('apiIds', None)[0] in api_ids_list: Loading @@ -64,7 +65,7 @@ class Notifications(): elif event in ["SERVICE_API_UPDATE"]: if event_filter: api_ids_list = event_filter.get("api_ids", None) if api_ids_list and event_detail_redis.get('apiIds', None)[0] in api_ids_list: if api_ids_list and event_detail_redis.get('serviceAPIDescriptions', {})[0].get('apiId') in api_ids_list: event_detail["serviceAPIDescriptions"]=event_detail_redis.get('serviceAPIDescriptions', None) elif event in ["API_INVOKER_ONBOARDED", "API_INVOKER_OFFBOARDED", "API_INVOKER_UPDATED"]: if event_filter: Loading @@ -77,7 +78,7 @@ class Notifications(): if event_filter: invoker_ids_list = event_filter.get("api_invoker_ids", None) api_ids_list = event_filter.get("api_ids", None) if invoker_ids_list and (event_detail_redis.get('apiInvokerIds', None)[0] in invoker_ids_list or event_detail_redis.get('apiIds', None)[0] in api_ids_list): if invoker_ids_list and (event_detail_redis.get('apiInvokerIds', None)[0] in invoker_ids_list or event_detail_redis.get('api_ids', None)[0] in api_ids_list): event_detail["accCtrlPolList"]=event_detail_redis.get('accCtrlPolList', None) else: event_detail["accCtrlPolList"]=event_detail_redis.get('accCtrlPolList', None) Loading Loading
services/TS29222_CAPIF_Events_API/capif_events/core/notifications.py +3 −2 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ class Notifications(): event_filter=None if event in ["SERVICE_API_AVAILABLE", "SERVICE_API_UNAVAILABLE"]: current_app.logger.debug(event_filter) if event_filter: api_ids_list = event_filter.get("api_ids", None) if api_ids_list and event_detail_redis.get('apiIds', None)[0] in api_ids_list: Loading @@ -64,7 +65,7 @@ class Notifications(): elif event in ["SERVICE_API_UPDATE"]: if event_filter: api_ids_list = event_filter.get("api_ids", None) if api_ids_list and event_detail_redis.get('apiIds', None)[0] in api_ids_list: if api_ids_list and event_detail_redis.get('serviceAPIDescriptions', {})[0].get('apiId') in api_ids_list: event_detail["serviceAPIDescriptions"]=event_detail_redis.get('serviceAPIDescriptions', None) elif event in ["API_INVOKER_ONBOARDED", "API_INVOKER_OFFBOARDED", "API_INVOKER_UPDATED"]: if event_filter: Loading @@ -77,7 +78,7 @@ class Notifications(): if event_filter: invoker_ids_list = event_filter.get("api_invoker_ids", None) api_ids_list = event_filter.get("api_ids", None) if invoker_ids_list and (event_detail_redis.get('apiInvokerIds', None)[0] in invoker_ids_list or event_detail_redis.get('apiIds', None)[0] in api_ids_list): if invoker_ids_list and (event_detail_redis.get('apiInvokerIds', None)[0] in invoker_ids_list or event_detail_redis.get('api_ids', None)[0] in api_ids_list): event_detail["accCtrlPolList"]=event_detail_redis.get('accCtrlPolList', None) else: event_detail["accCtrlPolList"]=event_detail_redis.get('accCtrlPolList', None) Loading