Merge branch 'maintenance' into devel

# Conflicts:
#	docs/sphinxext/codeblockext.py
This commit is contained in:
Gina Häußge committed 2020-08-10 16:36:19 +02:00
commit 49b40a4af3
7 files changed
+76 -63

No files matched your search

+4 -4
View File
@@ -18,11 +18,11 @@ prerelease
HEAD
\(detached.*
# maintenance is currently the branch for preparation of maintenance release 1.4.3
# maintenance is currently the branch for preparation of maintenance release 1.5.0
# so are any fix/... and improve/... branches
maintenance 1.4.3 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
fix/.* 1.4.3 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
improve/.* 1.4.3 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
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.4.2 hotfix release
staging/hotfix 1.4.2 3ab84ed7e4c3aaaf71fe0f184b465f25d689f929 pep440-dev
+63 -51
View File
@@ -39,7 +39,7 @@ nothing but ticket management.
[community forum at community.octoprint.org](https://community.octoprint.org) for
such support issues.
- If you are a **developer** that wants to brainstorm a pull request or possible
changes to the plugin system, please get in touch on the
changes to the plugin system, please get in touch on the
[community forum at community.octoprint.org](https://community.octoprint.org/c/development).
- If you need **support**, have a **question** or some **other reason** that
doesn't fit any of the above categories, the issue tracker is not the right place.
@@ -49,7 +49,7 @@ No matter what kind of ticket you create, never mix two or more "ticket reasons"
into one ticket: One ticket per bug, request, brainstorming thread please.
> 👉 **Note**
>
>
> A bot is in place that monitors new tickets, automatically
> categorizes them and checks new bug reports for usage of the provided template.
> That bot will only bother you if you open a ticket that appears to be a bug (no
@@ -71,12 +71,12 @@ following section *completely* and also follow the instructions in the
1. **Make sure you are at the right location**. This is the bug tracker
of the official version of OctoPrint, which is the 3D print server and
corresponding web interface itself.
**OctoPrint doesn't manage your network connection or your webcam nor
can it fix your printer not getting detected as a serial interface** -
if you have any kinds of problems with that, get in touch on the
can it fix your printer not getting detected as a serial interface** -
if you have any kinds of problems with that, get in touch on the
[community forum](https://community.octoprint.org).
**This is not the bug tracker of OctoPi**, which is the preconfigured
Raspberry Pi image including OctoPrint among other things - that one can be found
[here](https://github.com/guysoft/OctoPi). If you have any kind of specific
@@ -125,17 +125,17 @@ following section *completely* and also follow the instructions in the
makes it more difficult due to on top of having to figure out the original problem
there's now also a [red herring](https://en.wikipedia.org/wiki/Red_herring) interfering - so please be
very diligent here!
If in doubt about any of the above - get in touch on the [community forum](https://community.octoprint.org)
instead of opening a ticket here. If you are actually running into a bug, we'll figure it out together
instead of opening a ticket here. If you are actually running into a bug, we'll figure it out together
there.
### What should I include in a bug report?
First of all make sure your use **a descriptive title**. "It doesn't work"
and similar unspecific complaints are NOT descriptive titles.
**Always use the following template, even if only adding a "me too" to an
**Always use the following template, even if only adding a "me too" to an
existing ticket**:
```
@@ -152,7 +152,7 @@ or request features within OctoPrint (not OctoPi, not any OctoPrint
plugins and not unofficial OctoPrint versions).
Do not seek support here ("I need help with ...", "I have a
question ..."), that belongs on the community forum at
question ..."), that belongs on the community forum at
community.octoprint.org, NOT here.
Mark requests with a "[Request]" prefix in the title please. For bug
@@ -172,7 +172,7 @@ Thank you!
#### What were you doing?
<!--
<!--
Please be as specific as possible here. The maintainers will need to
reproduce your issue in order to fix it and that is not possible if they
don't know what you did to get it to happen in the first place.
@@ -195,7 +195,7 @@ to also include a link to a file with which to reproduce the problem.
#### Did the same happen when running OctoPrint in safe mode?
<!--
<!--
Test if you can reproduce your problem in safe mode. You can find information
on how to enable safe mode in the Contribution Guidelines.
@@ -288,7 +288,7 @@ See [How to open the Javascript Console in different browsers](https://webmaster
## Setting up a development environment
See [the corresponding chapter in the documentation](http://docs.octoprint.org/en/master/development/index.html#setting-up-a-development-environment).
This also includes information on how to run the test suite and how to build
This also includes information on how to run the test suite and how to build
the documentation.
## Pull requests
@@ -301,7 +301,7 @@ the documentation.
the discussion going on how best to solve *this* in OctoPrint's plugin
system - maybe that's the actual PR you have been waiting for to contribute :)
2. If you plan to make **any large or otherwise disruptive changes to the
code or appearance, please get in touch on the
code or appearance, please get in touch on the
[forums](https://community.octoprint.org/c/development)** first so
that we can determine if it's a good time for your specific pull
request. It might be that we're currently in the process of making
@@ -310,11 +310,13 @@ the documentation.
just cause unnecessary work and frustration for everyone or
possibly get the PR rejected.
3. Create your pull request **from a custom branch** on your end (e.g.
`dev/myNewFeature`)[1].
`improve/myNewFeature`)[1].
4. Create your pull request **only against the `maintenance` or `devel` branch**:
* if it's a bug fix for a bug in the current stable version, an improvement of existing functionality or a
*small* new feature (e.g. a new hook, a new config flag, ...): `maintenance` branch
* otherwise: `devel` branch
* if it's a bug fix for a bug in the current stable version, an improvement of existing functionality or a
*small* backwards compatible new feature (e.g. a new hook, a new config flag, ...): `maintenance` branch
* if it's a bigger backwards compatible new feature: please [get in touch](https://community.octoprint.org/c/development) first to avoid
wasting work that doesn't match the current direction of the project or implement as a plugin.
* if it's any breaking backwards incompatible change: `devel` branch. In case of big changes, [get in touch](https://community.octoprint.org/c/development) first.
5. Create **one pull request per feature/bug fix**.
6. Make sure there are **only relevant changes** included in your PR. No
changes to unrelated files, no additional files that don't belong (e.g.
@@ -333,15 +335,15 @@ the documentation.
from experiments).
8. Ensure your changes **pass the existing unit tests**. PRs that break
those cannot be accepted. You can run the unit tests locally (after
[initial development environment setup with "develop" dependencies](http://docs.octoprint.org/en/master/development/index.html#setting-up-a-development-environment))
[initial development environment setup with "develop" dependencies](http://docs.octoprint.org/en/master/development/index.html#setting-up-a-development-environment))
by running
```
nosetests --with-doctest
pytest
```
in the OctoPrint checkout folder. A [travis build](https://travis-ci.org/foosel/OctoPrint)
is also setup so that if the tests should fail, your PR will be marked
in the OctoPrint checkout folder. An [automatic build workflow](https://github.com/OctoPrint/OctoPrint/actions?query=workflow%3ABuild)
is also setup so that if the tests should fail, your PR will be marked
accordingly.
9. **Test your changes thoroughly**. That also means testing with usage
scenarios you don't normally use, e.g. if you only use access control, test
@@ -378,11 +380,10 @@ Template to use for Pull Request descriptions:
There are three main branches in OctoPrint:
* `master`: The master branch always contains the current stable release. It
is *only* updated on new releases. Will have a version number following
the scheme `<x>.<y>.<z>` (e.g. `1.2.9`) or - if it's absolutely necessary to
add a commit after release to this branch - `<x>.<y>.<z>.post<commits since x.y.z>`
(e.g. `1.2.9.post1`).
* `master`: The master branch always contains the current stable release plus any changes
since made to *documentation*, *CI related tests* or *Github meta files*. OctoPrint's actual
code will only be modified on new releases. Will have a version number following
the scheme `<x>.<y>.<z>` (e.g. `1.5.1`).
* `maintenance`: Improvements and fixes of the current release that make up
the next release go here. More or less continuously updated. You can consider
this a preview of the next release version. It should be very stable at all
@@ -390,34 +391,40 @@ There are three main branches in OctoPrint:
next stable release, so if you want to help out development, running the
`maintenance` branch and reporting back anything you find is a very good way
to do that. Will usually have a version number following the scheme
`<x>.<y>.<z+1>.dev<commits since increase of z>` for an OctoPrint version of `<x>.<y>.<z>`
(e.g. `1.2.10.dev12`).
* `devel`: Ongoing development of new features that will go into the next bigger
release (MINOR version number increases) will happen on this branch. Usually
kept stable, sometimes stuff can break though or lose backwards compatibility
temporarily. Can be considered the "bleeding edge". All PRs should target
*this* branch. Important improvements and fixes from PRs here are backported to
`maintenance` as needed. Will usually have a version number following the
scheme `<x>.<y+1>.0.dev<commits since increase of y>` for a current OctoPrint version
of `<x>.<y>.<z>` (e.g. `1.3.0.dev123`).
`<x>.<y+1>.<0>.dev<commits since increase of y>` for an OctoPrint version of `<x>.<y>.<z>`
(e.g. `1.5.0.dev114`).
* `devel`: Ongoing development of what will go into the next big
release (MAJOR version number increases) will happen on this branch. Usually
kept stable, sometimes stuff can break though. Backwards incompatible changes will
be encountered here. Can be considered the "bleeding edge". Will usually have a version
number following the scheme `<x+1>.<0>.0.dev<commits since increase of y>` for a current
OctoPrint version of `<x>.<y>.<z>` (e.g. `2.0.0.dev123`).
There are couple more RC and staging branches that see regular use:
* `staging/hotfix`: Any preparation for potential hotfix releases takes place here.
Version number follows the scheme `<x>.<y>.<z+1>` (e.g. `1.5.1`) for a current release
of `<x>.<y>.<z>`.
* `rc/maintenance`: This branch is reserved for future releases that have graduated from
the `maintenance` branch and are now being pushed on the "Maintenance"
pre release channel for further testing. Version number follows the scheme
`<x>.<y>.<z>rc<n>` (e.g. `1.2.9rc1`).
`<x>.<y>.<z>rc<n>` (e.g. `1.5.0rc1`).
* `staging/maintenance`: Any preparation for potential follow-up RCs takes place here.
Version number follows the scheme `<x>.<y>.<z>rc<n+1>.dev<commits since increase of n>` (e.g.
`1.2.9rc1.dev3`) for a current Maintenance RC of `<x>.<y>.<z>rc<n>`.
`1.5.0rc2.dev3`) for a current Maintenance RC of `<x>.<y>.<z>`.
* `rc/devel`: This branch is reserved for future releases that have graduated from
the `devel` branch and are now being pushed on the "Devel" pre release channel
for further testing. Version number follows the scheme `<x>.<y+1>.0rc<n>` (e.g. `1.3.0rc1`)
for further testing. Version number follows the scheme `<x+1>.0.0rc<n>` (e.g. `2.0.0rc1`)
for a current stable OctoPrint version of `<x>.<y>.<z>`.
* `staging/devel`: Any preparation for potential follow-up Devel RCs takes place
here. Version number follows the scheme `<x>.<y>.0rc<n+1>.dev<commits since increase of n>` (e.g.
`1.3.0rc1.dev12`) for a current Devel RC of `<x>.<y>.0rc<n>`.
here. Version number follows the scheme `<x>.0.0rc<n+1>.dev<commits since increase of n>` (e.g.
`2.0.0rc2.dev12`) for a current Devel RC of `<x>.0.0rc<n>`.
Additionally, from time to time you might see other branches pop up in the repository.
Those usually have one of the following prefixes:
* `hotfix/...`: Hotfixes under development that are to be merged into the `staging/hotfix`
and later the `master` branch.
* `fix/...`: Fixes under development that are to be merged into the `maintenance`
and `devel` branches.
* `improve/...`: Improvements under development that are to be merged into the
@@ -432,15 +439,15 @@ older development branches that are slowly being migrated or deleted.
OctoPrint follows the [semantic versioning scheme](http://semver.org/) of **MAJOR.MINOR.PATCH**.
The **PATCH** version number is the one increasing most often due to OctoPrint's maintenance releases.
Releases that only change the patch number indicate that they contain bug fixes and small improvements
of existing functionality. Example: 1.2.8 to 1.2.9.
The **PATCH** version number will increase in case of hotfix releases [3].
Releases that only change the patch number indicate that they only contain bug fixes, and usually
only hotfixes at that. Example: 1.5.0 to 1.5.1.
The **MINOR** version number increases with releases that add a lot of new functionality and
large features. Example: 1.2.x to 1.3.0.
The **MINOR** version number increases with releases that add new functionality while maintaining
backwards compatibility. Example: 1.4.x to 1.5.0.
Finally, the **MAJOR** version number increases if there are breaking API changes that concern any of the
documented interfaces (REST API, plugin interfaces, ...). So far this hasn't happened. Example: 1.x.y to 2.0.0.
documented interfaces (REST API, plugin interfaces, ...). Example: 1.x.y to 2.0.0.
OctoPrint's version numbers are automatically generated using [versioneer](https://github.com/warner/python-versioneer)
and depend on the selected git branch, nearest git tag and commits. The generated version number
@@ -477,6 +484,7 @@ the local version identifier to allow for an exact determination of the active c
* 2018-03-29: "Where to find version numbers" is now located on the FAQ
* 2018-10-18: Allow PRs against `maintenance` branch for improvements and small
new features, suggest getting in touch on the forum for larger changes
* 2020-08-10: Update versioning scheme and PR instructions
## Footnotes
* [1] - If you are wondering why, the problem is that anything that you add
@@ -488,3 +496,7 @@ the local version identifier to allow for an exact determination of the active c
it now would make the history and especially `git blame` completely
unusable, so for now we'll have to deal with it (this decision might be
revisited in the future).
* [3] - Up until 1.4.2, the PATCH version segment was the one increasing most often
due to OctoPrint's maintenance releases but with 1.5.0 this will *fully* adhere
to the concepts in semantic versioning mandating only bug fixes in patch releases.
Maintenance releases will henceforth increase the MINOR segment.
+1 -2
View File
@@ -205,9 +205,8 @@ class PygmentsBridgeExt(object):
with whitespace(sphinx.highlighting.lexers["none"]) as l:
hlsource = highlight(source, l, formatter)
# /MODIFIED
if self._bridge.dest == 'html':
return hlsource
return hlsource
class whitespace_highlighter(object):
"""
+1 -1
View File
@@ -445,7 +445,7 @@ def _saveSettings(data):
if "timeoutConnection" in data["serial"]: s.setFloat(["serial", "timeout", "connection"], data["serial"]["timeoutConnection"], min=1.0)
if "timeoutDetectionFirst" in data["serial"]: s.setFloat(["serial", "timeout", "detectionFirst"], data["serial"]["timeoutDetectionFirst"], min=1.0)
if "timeoutDetectionConsecutive" in data["serial"]: s.setFloat(["serial", "timeout", "detectionConsecutive"], data["serial"]["timeoutDetectionConsecutive"], min=1.0)
if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunicationFirst"], min=1.0)
if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunication"], min=1.0)
if "timeoutCommunicationBusy" in data["serial"]: s.setFloat(["serial", "timeout", "communicationBusy"], data["serial"]["timeoutCommunicationBusy"], min=1.0)
if "timeoutTemperature" in data["serial"]: s.setFloat(["serial", "timeout", "temperature"], data["serial"]["timeoutTemperature"], min=1.0)
if "timeoutTemperatureTargetSet" in data["serial"]: s.setFloat(["serial", "timeout", "temperatureTargetSet"], data["serial"]["timeoutTemperatureTargetSet"], min=1.0)
+1 -1
View File
@@ -999,7 +999,7 @@ class LargeResponseHandler(RequestlessExceptionLoggingMixin,
def should_use_precompressed(self):
return (self._is_pre_compressed
and "gzip" in self.request.headers.get("Accept-Encoding"))
and "gzip" in self.request.headers.get("Accept-Encoding", ""))
def get(self, path, include_body=True):
if self._access_validation is not None:
+5 -3
View File
@@ -132,7 +132,7 @@ def _add_additional_assets(hook):
def login():
from flask_login import current_user
redirect_url = request.args.get("redirect", url_for("index"))
redirect_url = request.args.get("redirect", request.script_root + url_for("index"))
permissions = sorted(filter(lambda x: x is not None and isinstance(x, OctoPrintPermission),
map(lambda x: getattr(Permissions, x.strip()),
request.args.get("permissions", "").split(","))),
@@ -165,7 +165,9 @@ def login():
@app.route("/recovery/")
def recovery():
if not Permissions.ADMIN.can():
return redirect(url_for("login", redirect=request.full_path, permissions=Permissions.ADMIN.key))
return redirect(url_for("login",
redirect=request.script_root + request.full_path,
permissions=Permissions.ADMIN.key))
render_kwargs = dict(theming=[])
@@ -234,7 +236,7 @@ def index():
and userManager.has_been_customized():
if not (Permissions.STATUS.can() and Permissions.SETTINGS_READ.can()):
return redirect(url_for("login",
redirect=request.full_path,
redirect=request.script_root + request.full_path,
permissions=",".join([Permissions.STATUS.key,
Permissions.SETTINGS_READ.key])))
+1 -1
View File
@@ -420,7 +420,7 @@ default_settings = {
},
"useFrozenDictForPrinterState": True,
"showLoadingAnimation": True,
"sockJsConnectTimeout": 10
"sockJsConnectTimeout": 30
}
}
"""The default settings of the core application."""