Skip to content
Snippets Groups Projects
Commit 7c6b7cc2 authored by Release Webservice's avatar Release Webservice
Browse files

Finished release 0.88.

parents e85f3328 3e285eb7
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [0.88] - 2022-06-22
- DBOARD3-596: Only include contacts with populated mail value
- LG-46: Showing 'in-service' routers only
## [0.87] - 2022-06-15 ## [0.87] - 2022-06-15
- POL1-526: added bgp all peerings endpoint for msr - POL1-526: added bgp all peerings endpoint for msr
- POL1-526: return list of BRIAN dashboard info (one for each customer) - POL1-526: return list of BRIAN dashboard info (one for each customer)
......
...@@ -111,13 +111,13 @@ def get_customer_service_emails(ds: IMS): ...@@ -111,13 +111,13 @@ def get_customer_service_emails(ds: IMS):
customer_contacts = defaultdict(set) customer_contacts = defaultdict(set)
for x in ds.get_filtered_entities( for x in ds.get_filtered_entities(
'customerrelatedcontact', 'customerrelatedcontact',
"contact.plannedworkmail != ''", "contact.plannedworkmail != '' | contact.mail != ''",
CUSTOMER_RELATED_CONTACT_PROPERTIES['Contact'] CUSTOMER_RELATED_CONTACT_PROPERTIES['Contact']
): ):
customer_contacts[x['customerid']].add(x['contact']['mail']) customer_contacts[x['customerid']].add(x['contact']['mail'])
for x in ds.get_filtered_entities( for x in ds.get_filtered_entities(
'customerrelatedcontact', 'customerrelatedcontact',
"contact.troubleticketMail != ''", "contact.troubleticketMail != '' | contact.mail != ''",
CUSTOMER_RELATED_CONTACT_PROPERTIES['Contact'] CUSTOMER_RELATED_CONTACT_PROPERTIES['Contact']
): ):
customer_contacts[x['customerid']].add(x['contact']['mail']) customer_contacts[x['customerid']].add(x['contact']['mail'])
...@@ -437,7 +437,9 @@ def lookup_lg_routers(ds: IMS): ...@@ -437,7 +437,9 @@ def lookup_lg_routers(ds: IMS):
pattern = re.compile("vpn-proxy|vrr|taas", re.IGNORECASE) pattern = re.compile("vpn-proxy|vrr|taas", re.IGNORECASE)
def _matching_node(node_): def _matching_node(node_):
if InventoryStatus(node_['inventorystatusid']) in STATUSES_TO_IGNORE: # [LG-46]
if InventoryStatus(node_['inventorystatusid']) \
!= InventoryStatus.IN_SERVICE:
return False return False
if pattern.match(node_['name']): if pattern.match(node_['name']):
...@@ -462,7 +464,8 @@ def lookup_lg_routers(ds: IMS): ...@@ -462,7 +464,8 @@ def lookup_lg_routers(ds: IMS):
for node in nodes: for node in nodes:
if not _matching_node(node): if not _matching_node(node):
continue continue
if node['inventorystatusid'] in STATUSES_TO_IGNORE: # [LG - 46]
if node['inventorystatusid'] != InventoryStatus.IN_SERVICE.value:
continue continue
site = ds.get_entity_by_id('Site', node['siteid'], site_nav_props, site = ds.get_entity_by_id('Site', node['siteid'], site_nav_props,
......
...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages ...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name='inventory-provider', name='inventory-provider',
version="0.87", version="0.88",
author='GEANT', author='GEANT',
author_email='swd@geant.org', author_email='swd@geant.org',
description='Dashboard inventory provider', description='Dashboard inventory provider',
......
...@@ -266,8 +266,8 @@ def test_lookup_lg_routers(mocker): ...@@ -266,8 +266,8 @@ def test_lookup_lg_routers(mocker):
'Name like MX', 'Name like MX',
inventory_provider.db.ims.EQUIP_DEF_PROPERTIES['Nodes']) inventory_provider.db.ims.EQUIP_DEF_PROPERTIES['Nodes'])
assert ds.get_entity_by_id.call_count == 36 assert ds.get_entity_by_id.call_count == 35
assert len(res) == 36 assert len(res) == 35
pop = { pop = {
'name': 'pop name', 'name': 'pop name',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment