From 0753c1ef6fd81026a5026c00dc2c1071525e7b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 23 May 2023 10:28:35 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=96=20staging/bugfix=20is=20now=20?= =?UTF-8?q?1.9.1.dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .versioneer-lookup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.versioneer-lookup b/.versioneer-lookup index fc69115ad..0a747c543 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -24,10 +24,10 @@ maintenance 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev fix/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev improve/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev -# staging/bugfix is the branch for preparation of the 1.8.7 bugfix release +# staging/bugfix is the branch for preparation of the 1.9.x bugfix releases # so are any bug/... branches -staging/bugfix 1.8.8 8e4c1f5246c4245b839ccdcdabf2beee671b08d7 pep440-dev -bug/.* 1.8.8 8e4c1f5246c4245b839ccdcdabf2beee671b08d7 pep440-dev +staging/bugfix 1.9.1 93e495f921ea445d69ef51a1415f304b85ad3577 pep440-dev +bug/.* 1.9.1 93e495f921ea445d69ef51a1415f304b85ad3577 pep440-dev # staging/maintenance is currently the branch for preparation of 1.9.0rc6 # so is regressionfix/... From 2397867d28071ea12734588e993c3a7f94c04914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 1 Jun 2023 17:13:35 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20Fix=20treating=20of=20`None`?= =?UTF-8?q?=20sorting=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `None` values were converted to an empty string by sv, leading to comparison issues with (correct) integers. Using the default order value for sv fixes that. Closes #4818 --- src/octoprint/plugin/core.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/octoprint/plugin/core.py b/src/octoprint/plugin/core.py index ad66d87a2..297386e4a 100644 --- a/src/octoprint/plugin/core.py +++ b/src/octoprint/plugin/core.py @@ -577,7 +577,9 @@ class PluginInfo: self._version if self._version is not None else self._get_instance_attribute( - ControlProperties.attr_version, default=self._version, incl_metadata=True + ControlProperties.attr_version, + default=self._version, + incl_metadata=True, ) ) @@ -959,7 +961,9 @@ class PluginManager: if self.plugin_folders: try: added, found = self._find_plugins_from_folders( - self.plugin_folders, existing, ignored_uninstalled=ignore_uninstalled + self.plugin_folders, + existing, + ignored_uninstalled=ignore_uninstalled, ) result_added.update(added) result_found += found @@ -1791,7 +1795,10 @@ class PluginManager: plugin_hooks = plugin.hooks.keys() return any( - map(lambda hook: PluginManager.hook_matches_hooks(hook, *hooks), plugin_hooks) + map( + lambda hook: PluginManager.hook_matches_hooks(hook, *hooks), + plugin_hooks, + ) ) @staticmethod @@ -2168,7 +2175,7 @@ class PluginManager: plugin_info = self.get_plugin_info(impl[0], require_enabled=False) return ( - sv(sorting_value), + sv(sorting_value, default_value=self.default_order), not plugin_info.bundled if plugin_info else True, sv(impl[0]), )