From 01aeb75b90dd3a040b95af39dac4f579ae278c6f Mon Sep 17 00:00:00 2001 From: Aldo Ortega Date: Thu, 22 Aug 2024 01:03:41 -0400 Subject: [PATCH 1/2] Moved controller method inside lock --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 6d15b4f..cd07b0d 100644 --- a/main.py +++ b/main.py @@ -891,7 +891,7 @@ def on_interface_tags(self, event): ): return self._intfs_tags_updated_at[interface.id] = event.timestamp - self.handle_on_interface_tags(interface) + self.handle_on_interface_tags(interface) def handle_on_interface_tags(self, interface): """Update interface details""" From 063fa4850cf084c1c08289c65eb517e4b17fe834 Mon Sep 17 00:00:00 2001 From: Aldo Ortega Date: Fri, 23 Aug 2024 13:09:16 -0400 Subject: [PATCH 2/2] Updated changelog and version --- CHANGELOG.rst | 7 +++++++ kytos.json | 2 +- setup.py | 6 ++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ce7ae15..013659b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,13 @@ All notable changes to the ``topology`` project will be documented in this file. [UNRELEASED] - Under development ******************************** +[2024.1.1] - 2024-08-23 +*********************** + +Fixed +===== +- Update ``interface_detail`` document in the DB can handle multiple and fast changes. + [2024.1.0] - 2024-07-23 *********************** diff --git a/kytos.json b/kytos.json index 3093ff6..fc6ed1c 100644 --- a/kytos.json +++ b/kytos.json @@ -3,7 +3,7 @@ "username": "kytos", "name": "topology", "description": "Manage the network topology.", - "version": "2024.1.0", + "version": "2024.1.1", "napp_dependencies": ["kytos/of_core", "kytos/of_lldp"], "license": "MIT", "tags": ["topology", "rest"], diff --git a/setup.py b/setup.py index 4069004..1f246ee 100644 --- a/setup.py +++ b/setup.py @@ -97,7 +97,8 @@ class Test(TestCommand): def run(self): """Run tests.""" - cmd = f"python3 -m pytest tests/ {self.get_args()}" + cmd = "python3 -m pytest tests/ --cov-report term-missing" + cmd += f" {self.get_args()}" try: check_call(cmd, shell=True) except CalledProcessError as exc: @@ -113,7 +114,8 @@ class TestCoverage(Test): def run(self): """Run tests quietly and display coverage report.""" - cmd = f"python3 -m pytest --cov=. tests/ {self.get_args()}" + cmd = "python3 -m pytest --cov=. tests/ --cov-report term-missing" + cmd += f" {self.get_args()}" try: check_call(cmd, shell=True) except CalledProcessError as exc: