Merge branch 'maintenance' into devel

This commit is contained in:
Gina Häußge committed 2020-12-10 14:14:22 +01:00
commit 97ec0493d1
11 files changed
+95 -16

No files matched your search

+31 -3
View File
@@ -4,16 +4,44 @@ on:
types:
- released
- prereleased
push:
branches:
- maintenance
- devel
jobs:
trigger:
dispatch_releases:
runs-on: ubuntu-latest
if: github.repository == 'OctoPrint/OctoPrint'
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name != 'push'
steps:
- name: 🚀 Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: github.event.action
event-type: ${{ github.event_name }}
client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}'
dispatch_canary:
runs-on: ubuntu-latest
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/maintenance'
steps:
- name: 🚀 Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "canary"
client-payload: '{"tag_name": "${{ github.sha }}"}'
dispatch_bleeding:
runs-on: ubuntu-latest
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/devel'
steps:
- name: 🚀 Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "bleeding"
client-payload: '{"tag_name": "${{ github.sha }}"}'
+2 -2
View File
@@ -24,8 +24,8 @@ maintenance 1.6.0 b7a45b79bf86339f0b28177ac1eaebb56d00ea37 pep440-dev
fix/.* 1.6.0 b7a45b79bf86339f0b28177ac1eaebb56d00ea37 pep440-dev
improve/.* 1.6.0 b7a45b79bf86339f0b28177ac1eaebb56d00ea37 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.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/...
+1 -1
View File
@@ -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)!
+4 -2
View File
@@ -205,8 +205,10 @@ Retrieve information about the current job
},
"estimatedPrintTime": 8811,
"filament": {
"length": 810,
"volume": 5.36
"tool0": {
"length": 810,
"volume": 5.36
}
}
},
"progress": {
+25
View File
@@ -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:
+1 -1
View File
@@ -42,7 +42,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",
+1 -1
View File
@@ -37,7 +37,7 @@ def _set_helper(settings, path, value, data_type=None):
if name is not None:
method = getattr(settings, name)
method(path, value)
method(path, value, force=True)
settings.save()
@@ -18,10 +18,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 = {
@@ -87,7 +87,7 @@ class SoftwareUpdatePlugin(
self._environment_ready = threading.Event()
self._storage_sufficient = True
self.storage_info = {}
self._storage_info = {}
self._console_logger = None
+24
View File
@@ -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;
};
@@ -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;
};