Gina Häußge
cc5c19dde9
Merge branch 'devel' into dev/commRefactoringNG
...
# Conflicts:
# src/octoprint/filemanager/storage/local.py
2019-03-06 15:12:27 +01:00
Gina Häußge
aab629d80e
🎨 except: => except Exception:
2019-03-06 15:10:38 +01:00
Gina Häußge
4e2afbc170
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/filemanager/storage.py
# src/octoprint/util/__init__.py
# src/octoprint/util/comm.py
2019-03-06 14:49:42 +01:00
Gina Häußge
8668c6200a
✨ Decorator for timing methods
...
Probably mostly helpful during development...
2019-03-06 13:53:53 +01:00
Gina Häußge
e01f391b30
⚡ More intelligent use of copy & deepcopy
...
Improves performance of file manipulation, especially in cases with a
lot of files in the folder, without the added complexity of fully
decoupling metadata file serialization from general processing.
Better fix for #3057
2019-03-06 13:44:45 +01:00
Gina Häußge
92618362e1
💚 Forgot to adjust the tests for d071684
2019-03-05 17:01:10 +01:00
Gina Häußge
d071684d41
♻ Remove old metadata.yaml files
...
Were deprecated and supposed to be removed with 1.3.10, we'll do it with
1.3.11.
2019-03-05 16:53:30 +01:00
Gina Häußge
7d0bd6a339
☔ Remove stale entries from metadata
...
If a file no longer exists on disk for whatever reason it also doesn't
need to be kept in metadata.json.
See also #3057
Cherry-picked from 15d3b2ca
2019-03-05 16:20:13 +01:00
Gina Häußge
f36a6a0409
🐛 Fix missing error field on protocol
2019-03-01 18:09:28 +01:00
Gina Häußge
de8be65be7
🚧 WIP: user action logging, continued
2019-03-01 18:09:13 +01:00
Gina Häußge
780948fe7d
🐛 Fix ok_timeout detection under Py2 as well
...
d291734 only fixed it for Py3 🤦♀️
2019-03-01 16:24:32 +01:00
Gina Häußge
c27936a9db
🐛 Fix print logging
2019-03-01 15:31:36 +01:00
Gina Häußge
caad7a3f60
🐛 tracking: Use correct payload roperty for elapsed time
2019-03-01 13:16:11 +01:00
Gina Häußge
7c75c882d3
♻ Put time into job event payload
2019-03-01 13:15:45 +01:00
Gina Häußge
9594b75b78
Merge branch 'devel' into dev/commRefactoringNG
...
# Conflicts:
# src/octoprint/plugins/tracking/__init__.py
2019-03-01 11:29:14 +01:00
Gina Häußge
3e16f0901a
Merge remote-tracking branch 'origin/maintenance' into maintenance
2019-03-01 11:21:01 +01:00
Gina Häußge
8866ed716d
☔ Better resilience against invalid SD status reports
2019-03-01 11:20:45 +01:00
Gina Häußge
cf16392e18
💚 Ignore vendor path for tests & fix 2.7 tests
2019-02-28 17:05:13 +01:00
Gina Häußge
34e4a20866
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/__init__.py
# src/octoprint/plugins/tracking/__init__.py
2019-02-28 16:40:04 +01:00
Gina Häußge
0f157d3747
♻ Load bundled plugins under octoprint.plugins.*
...
Makes more sense than putting them into sys.modules as <identifier>,
which also can cause conflicts (e.g. in the case of octoprint.plugins
.logging which then suddenly gets found instead of the built-in crucial
logging module).
2019-02-28 16:37:09 +01:00
Gina Häußge
1b3a8acf0d
♻ Work around deprecation of imp
...
After two days of trying to make the plugin loading work completely,
including loading bundled templates etc, using only native importlib
methods, I've finally given up and bundled the (deprecated) imp module
for Python 3+ which relies on importlib but does some magic I've yet to
figure out which makes stuff just work.
Replacing imp completely with something more slim is something for
another day, for now we want to get stuff to work under Py3 with as
little warnings as possible.
2019-02-28 16:07:07 +01:00
Gina Häußge
fdb4e75241
Merge pull request #3066 from fieldOfView/fix_docs_job_state
...
Add missing documentation about state in `jobs` endpoint
2019-02-28 12:34:35 +01:00
Gina Häußge
4dbb24ecd7
📝 state is not a sub data model but a string
2019-02-28 12:26:25 +01:00
fieldOfView
a15e2de251
Fix datamodel structure
2019-02-28 12:17:35 +01:00
fieldOfView
c652bed871
Add missing documentation about state in jobs endpoint
2019-02-28 11:40:22 +01:00
Gina Häußge
1ed6730400
🔊 Improved logging in case of plugin syntax errors
2019-02-27 16:11:00 +01:00
Gina Häußge
dde99736e4
📝 Fix an error in the docs
2019-02-27 14:32:37 +01:00
Gina Häußge
334f2c35f9
✨ Allow to ignore compatibility for plugins
...
Adding a plugin's identifier to the list plugins._forcedCompatible in
config.yaml will make OctoPrint ignore its python compatibility status,
e.g.
plugins:
_forcedCompatible:
- myplugin
This might be helpful for plugin authors during development but should
NOT be used in production!
See also #2722
2019-02-27 14:28:35 +01:00
Gina Häußge
aacd59ae78
☔ Log exceptions while parsing the AST
2019-02-27 13:43:01 +01:00
Gina Häußge
253a38c32d
♻ gcode => printables
2019-02-26 15:31:22 +01:00
Gina Häußge
e08becbb4c
Merge pull request #3055 from AndyQ/show_current_layer
...
Added ability to preview the current layer to be drawn
2019-02-26 13:54:43 +01:00
Gina Häußge
09a043b393
🐛 tracking: fix handling of missing print time
...
See also #3063
2019-02-26 13:50:35 +01:00
Gina Häußge
9eafe9979a
🚧 WIP: user action logging
2019-02-22 19:25:02 +01:00
Gina Häußge
086a2c9f82
Merge branch 'devel' into dev/commRefactoringNG
...
# Conflicts:
# src/octoprint/plugins/virtual_printer/virtual.py
2019-02-22 18:48:10 +01:00
Gina Häußge
058dbd0c2e
🐛 virtual: fix regexes again
2019-02-22 18:46:45 +01:00
Gina Häußge
54c8923087
🐛 virtual: fix some str/bytes issues
...
Threw some type annotations into it while at it. Should make the IDE
become angry at such problems in the future.
2019-02-22 18:29:36 +01:00
Gina Häußge
0c58566789
🐛 Fix on_protocol_job_resumed call
2019-02-22 17:51:34 +01:00
Gina Häußge
d2917346f5
🐛 Fix ok_timeout detection
2019-02-22 17:50:43 +01:00
Gina Häußge
e7f1302f3c
🐛 Fix pausing -> paused
...
Was not waiting for scripts and such to complete before the state
change.
2019-02-22 15:23:28 +01:00
Gina Häußge
eca74233eb
🐛 Fix resume
2019-02-22 14:47:31 +01:00
Gina Häußge
1025f0be43
💚 Revert "🎨 Remove unnecessary import"
...
This reverts commit 295b96f259 .
2019-02-22 13:31:36 +01:00
Gina Häußge
295b96f259
🎨 Remove unnecessary import
...
Already included in the next line
2019-02-22 12:53:18 +01:00
Gina Häußge
adea0db344
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/util/__init__.py
2019-02-22 12:48:52 +01:00
Gina Häußge
0c4f4383e3
♻ Introduce type hints
...
For now we'll only use them to have our IDEs scream at us...
2019-02-22 11:44:45 +01:00
Gina Häußge
36fb7805e5
🐛 Fix type error in case of a resend
2019-02-22 11:33:45 +01:00
Gina Häußge
c7afd7951c
💚 Fix tests (final pass)
2019-02-21 16:58:44 +01:00
Gina Häußge
f489f4ffd1
Merge branch 'devel' into dev/commRefactoringNG
...
# Conflicts:
# .travis.yml
# src/octoprint/util/__init__.py
2019-02-21 15:44:27 +01:00
Gina Häußge
9f2821fe96
👷 ALLOW_UNICODE and custom pretty printer in doctests
...
We could also have set ALLOW_UNICODE globally, but this way we might
catch situations where we definitely do not expect mixed results between
py2 and py3.
2019-02-21 15:36:10 +01:00
Gina Häußge
dcc1148863
👷 Switching from nose to pytest
2019-02-21 15:34:07 +01:00
Gina Häußge
ba96ba8fe8
🚧 WIP: Fixing tests, part 3
2019-02-21 15:29:41 +01:00