Will provide instance stats and some fun achievements, but also
include some calls to action for funding.
One of the steps towards improving OctoPrint's financial support
again.
- error information for errors leading to disconnect or cancelling
will now be persisted in the printer object until reconnect or print
start
- a new REST API endpoint allows fetching that information
- the frontend has be adjusted to fetch that on server connect and
relevant events and show an error icon next to the printer state
which on click opens the modal
- additionally, the modal will be triggered if an error event is raised
Improves #4714
Provides more details incl. log excerpt
and FAQ link, to hopefully help users
diagnose printer issues themselves
instead of assuming OctoPrint caused
them.
Implements #4714
Not setting the _finished flag to True caused the UploadStorage-
FallbackHandler to generate an additional empty text/html response
for every POST/PUT/etc request. If that arrived inside a keep-alive
connection followed by additional requests, it caused the browser
to consider the text/html response to be the response to the follow-up
request, causing all kinds of mayhem.
Otherwise we might run into a race condition in case of long running
commands.
For an example see #4907:
A `G4 S54` triggered a `wait` response, since right after sending the
`ok` the host didn't send a new incoming line fast enough to prevent
that from happening. As a result, combined with several simulated
transmition errors right after, things get so much out of balance that
at some point the incoming queue runs full and an exception gets
triggered, killing the connection with a simulated SerialTimeout.
This fix should close the core cause of #4907
Copied from current tornado.wsgi.WSGIContainer. Seems to solve
to not delete the tmp files too early.
Also turned UploadStorageFallbackHandler async, otherwise
connections would be closed too early, causing issues in E2E
and probably also regular use.
Copied from current tornado.wsgi.WSGIContainer. Seems to solve
#4764. UploadStorageFallbackHandler needed some adjustments
to not delete the tmp files too early.
E.g. if we try to load notifications for a bundled plugin (could
happen in case of identifier clash - normally *shouldn't* but just
did during development, so better safe than sorry)
Instead of customizing an existing tool that does a lot of stuff
that we don't need but lacks what we DO need (branch based virtual
tags), now there's a custom single file implementation that mixes
concepts from versioneer, miniver and the lookup that so far was
implemented in OctoPrint's custom build of versioneer, and does so
with less overhead.
Closes#4685
* Added regex filtering feature
Added new regex setting, new Filtering regex setting UI and filter on the incoming messages.
* Fixed a wrong variable name in the template.
* Changed settings name from 'regex' to 'filter'