diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37ced9f93..4a219563a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: name: 🧪 Unit tests strategy: matrix: - python: ["3.7", "3.8", "3.9"] + python: ["3.7", "3.8", "3.9", "3.10"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -70,7 +70,7 @@ jobs: needs: build strategy: matrix: - python: ["3.7", "3.8", "3.9"] + python: ["3.7", "3.8", "3.9", "3.10"] installable: ["wheel", "sdist"] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index 40a89ba60..3e5b9e016 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -109,6 +109,11 @@ jobs: issue_number: context.issue.number, }) const comment = comments.data.find(c => c.user.login === "github-actions[bot]" && c.body.includes(marker)); + if (comment) { + console.log("Found comment, id=" + comment.id); + } else { + console.log("No comment found"); + } if (!labels.includes("triage") || labels.includes("approved")) { console.log("Deleting comment if it exists..."); @@ -127,20 +132,20 @@ jobs: if (!found) { console.log("No bundle found, posting/updating reminder"); const text = REMINDER + "\n" + marker; - if (comment && comment.body !== text) { - await github.rest.issues.updateComment({ - owner: context.repo.owner, - repo: context.repo.repo, - comment_id: comment.id, - body: text - }); - } else { + if (!comment) { await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, body: text }); + } else if (comment.body !== text) { + await github.rest.issues.updateComment({ + owner: context.repo.owner, + repo: context.repo.repo, + comment_id: comment.id, + body: text + }); } } else if (found && comment) { console.log("Bundle found, saying thanks"); diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index aae343c08..37e64bc49 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest"] - python: ["3.7", "3.8", "3.9"] + python: ["3.7", "3.8", "3.9", "3.10"] branch: ["master"] runs-on: ${{ matrix.os }} steps: @@ -49,7 +49,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest"] - python: ["3.7", "3.8", "3.9"] + python: ["3.7", "3.8", "3.9", "3.10"] runs-on: ${{ matrix.os }} steps: - name: 👀 Determine latest release diff --git a/AUTHORS.md b/AUTHORS.md index 211070883..16a42ce8d 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -154,6 +154,9 @@ date of first contribution): * [Bryan Kenote](https://github.com/bryankenote) * [Quinn Damerell](https://github.com/QuinnDamerell) * [Sven Samoray](https://github.com/thelastWallE) + * [Christian Würthner](https://github.com/crysxd) + * [Maciej Urbański](https://github.com/rooterkyberian) + * [Adam Wolf](https://github.com/adamwolf) * [Carey Metcalfe](https://github.com/pR0Ps) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 51c1e7d19..89706c7cf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -97,7 +97,7 @@ following section *completely* and also follow the instructions in the **safe mode**, either by selecting "Restart OctoPrint in safe mode" from the "System" menu, or by starting OctoPrint from the command line with `octoprint serve --safe`. Then try to reproduce your issue. Find out - more about safe mode in the [docs](http://docs.octoprint.org/en/master/features/safemode.html). + more about safe mode in the [docs](https://docs.octoprint.org/en/master/features/safemode.html). You might also want to try the current development version of OctoPrint (if you aren't already). Refer to the [FAQ](https://faq.octoprint.org) diff --git a/README.md b/README.md index 62cd644d9..e4ade6a0c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
OctoPrint provides a snappy web interface for controlling consumer 3D printers. It is Free Software -and released under the [GNU Affero General Public License V3](http://www.gnu.org/licenses/agpl.html). +and released under the [GNU Affero General Public License V3](https://www.gnu.org/licenses/agpl-3.0.html). Its website can be found at [octoprint.org](https://octoprint.org/?utm_source=github&utm_medium=readme). @@ -27,7 +27,7 @@ An invite to the Discord server can be found at [discord.octoprint.org](https:// The FAQ can be accessed by following [faq.octoprint.org](https://faq.octoprint.org/?utm_source=github&utm_medium=readme). -The documentation is located at [docs.octoprint.org](http://docs.octoprint.org). +The documentation is located at [docs.octoprint.org](https://docs.octoprint.org). The official plugin repository can be reached at [plugins.octoprint.org](https://plugins.octoprint.org/?utm_source=github&utm_medium=readme). @@ -38,14 +38,14 @@ If you enjoy OctoPrint, please consider becoming a regular supporter!** You are currently looking at the source code repository of OctoPrint. If you already installed it (e.g. by using the Raspberry Pi targeted distribution [OctoPi](https://github.com/guysoft/OctoPi)) and only -want to find out how to use it, [the documentation](http://docs.octoprint.org/) might be of more interest for you. You might also want to subscribe to join +want to find out how to use it, [the documentation](https://docs.octoprint.org/) might be of more interest for you. You might also want to subscribe to join [the community forum at community.octoprint.org](https://community.octoprint.org) where there are other active users who might be able to help you with any questions you might have. ## Contributing Contributions of all kinds are welcome, not only in the form of code but also with regards to the -[official documentation](http://docs.octoprint.org/), debugging help +[official documentation](https://docs.octoprint.org/), debugging help in the [bug tracker](https://github.com/OctoPrint/OctoPrint/issues), support of other users on [the community forum at community.octoprint.org](https://community.octoprint.org) or [the official discord at discord.octoprint.org](https://discord.octoprint.org) @@ -140,7 +140,7 @@ which is located at `~/.octoprint` on Linux, at `%APPDATA%/OctoPrint` on Windows at `~/Library/Application Support/OctoPrint` on MacOS. A comprehensive overview of all available configuration settings can be found -[in the docs](http://docs.octoprint.org/en/master/configuration/config_yaml.html). +[in the docs](https://docs.octoprint.org/en/master/configuration/config_yaml.html). Please note that the most commonly used configuration settings can also easily be edited from OctoPrint's settings dialog. diff --git a/docs/api/push.rst b/docs/api/push.rst index 5210ad599..a9796b663 100644 --- a/docs/api/push.rst +++ b/docs/api/push.rst @@ -50,7 +50,70 @@ Clients must ignore any unknown messages. The data model of the attached payloads is described further below. -OctoPrint's SockJS socket also accepts two commands from the client to the server. +OctoPrint's SockJS socket also accepts three commands from the client to the server. + + * ``subscribe`` (since 1.8.0): With the ``subscribe`` message, clients may selectively + subscribe to certain message types. The payload should be a dict of message types with + supported keys as follows: + + * ``state``: Either a boolean value indicating whether to generally receive state updates (``current`` and ``history``) + or not, or a dict with further options for received state updates. Currently the following options are recognized here: + + * ``logs``: A boolean value whether to include all log lines (``True``, default) or not (``False``). Alternatively a string with + a regex pattern can be provided, in which case only log lines matching the pattern will be returned. + * ``messages``: Like ``logs`` but for the returned message lines. + + * ``plugins``: Either a boolean value indicating whether to generally receive plugin messages, or a list of plugin + identifiers to receive plugin messages for. + * ``events``: Either a boolean value indicating whether to generally receive event messages, or a list of event + types to receive event messages for. + + If you send a ``subscribe`` message, OctoPrint will default the connection to not subscribe you to anything you did't explicitly + request. ``subscribe`` messages do replace previous ones. + + Example for a ``subscribe`` message subscribing only to updates from plugin ``example`` but neither state nor events: + + .. sourcecode:: javascript + + { + "subscribe": { + "plugins": ["example"] + } + } + + Example for a ``subscribe`` message subscribing to state, event and plugin updates, + but filtering logs in state updates to only contain lines matching ``^Recv: Cap`` and also + filtering out all messages: + + .. sourcecode:: javascript + + { + "subscribe": { + "state": { + "logs": "^Recv: Cap", + "messages": false + }, + "events": true, + "plugins": true + } + } + + Example for a ``subscribe`` message subscribing only to events of type ``PrintFailed``: + + .. sourcecode:: javascript + + { + "subscribe": { + "events": ["PrintFailed"] + } + } + + .. note:: + + Per default, OctoPrint will subscribe connecting clients to all state, event and plugin updates + without any filtering in place. If you wish to have your more selective subscription active + right from the start of your socket session, be sure to send the ``subscribe`` message + **before** the ``auth`` message. * ``auth`` (since 1.3.10): With the ``auth`` message, clients may associate an existing user session with the socket. That is of special importance to receive diff --git a/docs/development/environment.rst b/docs/development/environment.rst index 2e5000959..4234cbed5 100644 --- a/docs/development/environment.rst +++ b/docs/development/environment.rst @@ -134,7 +134,7 @@ Open the Git Bash you just installed and in that: cd /c/Devel git clone https://github.com/OctoPrint/OctoPrint.git cd OctoPrint - virtualenv --python=C:\Python38\python.exe venv + virtualenv --python=C:/Python3/python.exe venv3 source ./venv/Scripts/activate python -m pip install --upgrade pip python -m pip install -e '.[develop,plugins,docs]' @@ -394,7 +394,7 @@ Visual Studio Code (vscode) } ] } - + In the terminal install the python extension by running this command: .. code-block:: bash @@ -414,7 +414,7 @@ Visual Studio Code (vscode) * Your terminal inside vscode uses the virtual python environment * Saving a file will run an auto formatter and import sort - + * ``Ctrl+Shift+B`` can be used to run the ``build docs`` task to rebuild the documentation - + diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst index 62a548768..1c3ee2583 100644 --- a/docs/features/accesscontrol.rst +++ b/docs/features/accesscontrol.rst @@ -184,6 +184,7 @@ further down there's also a dedicated list of steps for OctoPi specifically. autologinAs: "{% trans %} + The access request has been processed. You may now close this tab. + {% endtrans %}
+{% trans %} + Something went wrong while processing the access request. You may now close this tab. + {% endtrans %}
+{% trans %} + The server has gone offline. You may now close this tab. + {% endtrans %}
+| + | {{ _('Name') }} | {{ _('Actions') }} |
|---|---|---|
| + + |
()
@@ -151,6 +166,7 @@
|
| - + | @@ -126,6 +129,17 @@ |
{% trans %}Please always share a Systeminfo Bundle when requesting support on the forums or - when opening a new bug report:{% endtrans %}
+{% trans %}Sharing a Systeminfo Bundle when requesting support on the forums or + when opening a new bug report is mandatory!{% endtrans %}
+ +{% trans %}Download the bundle and share as provided. Do not rename, unpack, + repack or otherwise modify, provide exactly as downloaded.{% endtrans %}
{{ _('Download Systeminfo Bundle') }}
-{% trans %}You can view Systeminfo Bundles at bundleviewer.octoprint.org{% endtrans %}
+{% trans %}You can view Systeminfo Bundles at bundleviewer.octoprint.org{% endtrans %}