From 84b61e01f4e401c93958df7184bdef5ffaa0472d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 4 Dec 2020 12:02:02 +0100 Subject: [PATCH 1/6] =?UTF-8?q?=F0=9F=94=96=20staging/hotfix=20is=20now=20?= =?UTF-8?q?1.5.2.dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .versioneer-lookup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.versioneer-lookup b/.versioneer-lookup index 4cfcae8ff..d01104036 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -24,8 +24,8 @@ maintenance 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev fix/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev improve/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev -# staging/hotfix is the branch for preparation of the 1.5.1 hotfix release -staging/hotfix 1.5.1 f67c15a9a47794a68be9aed4f2d5a12a87e70179 pep440-dev +# staging/hotfix is the branch for preparation of the 1.5.2 hotfix release +staging/hotfix 1.5.2 38256815ef6d6dd602e0fac949a17fbf8f30f838 pep440-dev # staging/maintenance is currently the branch for preparation of 1.5.0rc4 # so is regressionfix/... From a2d4fc08a5cdfacb6f7e351aded286082120d128 Mon Sep 17 00:00:00 2001 From: Charlie Powell <31997505+cp2004@users.noreply.github.com> Date: Sat, 5 Dec 2020 16:41:33 +0000 Subject: [PATCH 2/6] :pencil: Document new virtual printer options in 1.5.0 --- docs/development/virtual_printer.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/development/virtual_printer.rst b/docs/development/virtual_printer.rst index 2ff4f2323..5e7a31e4d 100644 --- a/docs/development/virtual_printer.rst +++ b/docs/development/virtual_printer.rst @@ -200,6 +200,31 @@ There many configuration options via ``config.yaml`` for the virtual printer tha # Simulated ambient temperature in °C ambientTemperature: 21.3 + + # Response to M105 when there is a target + # Placeholders: + # - heater: The heater id (eg. T0, T1, B) + # - actual: The actual temperature of the heater + # - target: The target temperature of heater + m105TargetFormatString: {heater}:{actual:.2f}/ {target:.2f} + + # Response to M105 when there is no target + # Placeholders: + # - heater: The heater id (eg. T0, T1, B) + # - actual: The actual temperature of the heater + m105NoTargetFormatString: {heater}:{actual:.2f} + + # Enable virtual EEPROM + # If enabled, a file `eeprom.json` will be created in the plugin data folder + # to enable settings persistence across connections. Enables M500/1/2/4 commmands + # And a selection of other settings commands. Responses modeled on Marlin 2.0 + enable_eeprom: true + + # Support M503 + support_m503: true + + # Resend ratio to simulate noise on the line + resend_ratio: 0 .. _sec-development-virtual-printer-log: From 424dc0a13dbafb73448879ca5f34200cbe278fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 10 Dec 2020 12:12:59 +0100 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=93=8C=20Pin=20watchdog=20to=200.10.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New version 0.10.5 restricts upper Python version limit to <=3.6. That won't work for Python 3 OctoPrint installs out there, so we stick to the (for us) perfectly working 0.10.4 Dear library maintainers, please don't push breaking changes on patch releases... --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 31efb1135..70c64ab12 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ INSTALL_REQUIRES = [ "PyYAML>=5.3.1,<6", "pyserial>=3.4,<4", "netaddr>=0.7.19,<1", - "watchdog>=0.10.2,<1", + "watchdog==0.10.4", # watchdog dropped Py>3.6 on 0.10.5 point release... "sarge==0.1.5post0", "netifaces>=0.10.9,<1", "pylru>=1.2,<2", From 12d6de51da2d30a6088e80ff64ff262081714e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 7 Dec 2020 16:46:53 +0100 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=90=9B=20Replace=20=5F.merge=20with?= =?UTF-8?q?=20object=20only=20deepMerge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It turns out _.merge will also merge arrays, which in turn will re-add anything we've just removed from a setting that happens to be an array, thus as blocked commands or temperature presets. Fixes #3855 Fixes #3867 --- src/octoprint/static/js/app/helpers.js | 24 +++++++++++++++++++ .../static/js/app/viewmodels/settings.js | 6 ++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/octoprint/static/js/app/helpers.js b/src/octoprint/static/js/app/helpers.js index cc2d7fc34..16ff6cd14 100644 --- a/src/octoprint/static/js/app/helpers.js +++ b/src/octoprint/static/js/app/helpers.js @@ -1592,3 +1592,27 @@ var loadFromLocalStorage = function (key) { } return current; }; + +var deepMerge = function (target, source) { + /** + * Implements an object deep merge, which contrary to _.merge doesn't try to + * merge arrays. + */ + if (!_.isObject(target)) { + return target; + } + + _.forOwn(source, function (value, key) { + if ( + target.hasOwnProperty(key) && + _.isPlainObject(target[key]) && + _.isPlainObject(value) + ) { + target[key] = deepMerge(target[key], value); + } else { + target[key] = value; + } + }); + + return target; +}; diff --git a/src/octoprint/static/js/app/viewmodels/settings.js b/src/octoprint/static/js/app/viewmodels/settings.js index 8a4c341bc..c81556e15 100644 --- a/src/octoprint/static/js/app/viewmodels/settings.js +++ b/src/octoprint/static/js/app/viewmodels/settings.js @@ -1142,7 +1142,7 @@ $(function () { // process all key-value-pairs here _.forOwn(data, function (value, key) { var observable = key; - if (keyPrefix != undefined) { + if (keyPrefix !== undefined) { observable = keyPrefix + "_" + observable; } @@ -1161,7 +1161,7 @@ $(function () { mapping && mapping[key] ? mapping[key] : undefined, observable ); - if (subresult != undefined) { + if (subresult !== undefined) { // we only set something on our result if we got something back result[key] = subresult; flag = true; @@ -1179,7 +1179,7 @@ $(function () { // map local observables based on our existing data var dataFromObservables = mapFromObservables(data, specialMappings); - data = _.merge(data, dataFromObservables); + data = deepMerge(data, dataFromObservables); return data; }; From e46e8fa17a1553cd0c228a4fa4cfd93e2a9bce7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 10 Dec 2020 12:34:21 +0100 Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=94=96=20Preparing=20release=20of=201?= =?UTF-8?q?.5.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SUPPORTERS.md | 2 +- src/octoprint/plugins/errortracking/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SUPPORTERS.md b/SUPPORTERS.md index aebbe465b..0f64dedea 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -69,4 +69,4 @@ thanks to everyone who contributed! * Sven Mueller * Ulrich Kempken -and 2118 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)! +and 2147 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)! diff --git a/src/octoprint/plugins/errortracking/__init__.py b/src/octoprint/plugins/errortracking/__init__.py index 5a9ce56a3..44e8f1ae5 100644 --- a/src/octoprint/plugins/errortracking/__init__.py +++ b/src/octoprint/plugins/errortracking/__init__.py @@ -21,10 +21,10 @@ from octoprint.util.version import ( ) SENTRY_URL_SERVER = ( - "https://09f22353fe6b4b9785e33bf76613ed83@o118517.ingest.sentry.io/1373987" + "https://1e1cfca4b230430b82ce56b1fe802437@o118517.ingest.sentry.io/1373987" ) SENTRY_URL_COREUI = ( - "https://5ec92c365d914fb6a0dd3a3f1a51b502@o118517.ingest.sentry.io/1374096" + "https://1c5aadba206f46cea250f3ef5066e253@o118517.ingest.sentry.io/1374096" ) SETTINGS_DEFAULTS = { From d42c703e6e7be4dc97e871a9a3868235493fbfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 10 Dec 2020 14:13:21 +0100 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=94=96=20staging/hotfix=20is=20now=20?= =?UTF-8?q?1.5.3.dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .versioneer-lookup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.versioneer-lookup b/.versioneer-lookup index d01104036..9d6b84025 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -24,8 +24,8 @@ maintenance 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev fix/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev improve/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev -# staging/hotfix is the branch for preparation of the 1.5.2 hotfix release -staging/hotfix 1.5.2 38256815ef6d6dd602e0fac949a17fbf8f30f838 pep440-dev +# staging/hotfix is the branch for preparation of the 1.5.3 hotfix release +staging/hotfix 1.5.3 e46e8fa17a1553cd0c228a4fa4cfd93e2a9bce7b pep440-dev # staging/maintenance is currently the branch for preparation of 1.5.0rc4 # so is regressionfix/...