Gina Häußge
875fb72fec
🐛 Fix virtual printer & settings
2021-03-17 15:28:42 +01:00
Gina Häußge
306d4f2942
🎨 pre-commit with new settings
2021-03-17 15:11:54 +01:00
Gina Häußge
741fac4396
Merge branch 'devel' into dev/commRefactoringNG
2021-03-16 15:26:42 +01:00
Gina Häußge
262983840a
Merge branch 'maintenance' into devel
2021-03-16 14:35:40 +01:00
Gina Häußge
08922975f3
🐛 Ignore SD messages if sd support is disabled
2021-03-16 12:56:41 +01:00
Gina Häußge
91733d314f
✨ New action commands for SD signaling
2021-03-16 11:34:17 +01:00
Gina Häußge
a24d3f26ae
🐛 Fix caching behaviour on SD card API
...
When `force=true` is supplied, the SD card files should be refreshed.
Also finally documented the `force` parameter in the API docs.
Closes #4051
2021-03-16 11:02:01 +01:00
Gina Häußge
bb2c3273c0
🔥 Remove deprecated thaw_frozendict
2021-03-15 18:05:34 +01:00
Gina Häußge
d8fa8e3029
Merge branch 'maintenance' into devel
...
# Conflicts:
# .github/workflows/build.yml
# .github/workflows/test_install.yml
# setup.py
# src/octoprint/printer/standard.py
# src/octoprint/util/__init__.py
2021-03-15 18:03:51 +01:00
Gina Häußge
3feb8deb8c
💚 Fix unit tests
...
Some day I'll learn to search in src AND tests...
2021-03-15 17:55:25 +01:00
Gina Häußge
aa53344304
👷 Add 3.9 to python test matrix
2021-03-15 17:42:34 +01:00
Gina Häußge
849cea15c1
➕ Use immutabledict instead of frozendict on Py3
...
frozendict appears to be unmaintained and is incompatible to
Python 3.10+
As discussed in #4043
2021-03-15 17:35:34 +01:00
Gina Häußge
ed21f75acf
♻️ Remove py2 stuff
2021-03-15 17:14:39 +01:00
Gina Häußge
d2452c007e
Merge branch 'maintenance' into devel
2021-03-15 17:08:47 +01:00
Gina Häußge
84a6b2bfe1
Merge branch 'pr/4043' into maintenance
2021-03-15 17:06:09 +01:00
Karthikeyan Singaravelan
b9374a2d7f
Import ABC from collections.abc for Python 3.10 compatibility.
2021-03-15 16:42:47 +01:00
Gina Häußge
7d989fd07f
Merge pull request #4050 from thinkyhead/general-patching
2021-03-15 16:26:25 +01:00
Gina Häußge
770492a955
🔒 Make sure to validate log paths for zip bundle
...
Also do the same for timelapses.
For individual files, the LargeResponseHandler takes care of this
validation. For zip downloads however, we need to do it. An earlier
refactoring accidentally applied the same logic to the invididual
downloads as well, though in a broken way, this now fixes behaviour in
both variants.
2021-03-15 14:57:17 +01:00
Gina Häußge
9c33571dc9
Merge branch 'pr/4046' into maintenance
2021-03-15 14:39:14 +01:00
Gina Häußge
46a6c58d49
🐛 Fix file API
...
Was broken when debug logging was disabled due to timeThis decorator.
2021-03-15 14:21:15 +01:00
Gina Häußge
e74721c07a
Merge pull request #4048 from cp2004/improve/swupdate-error
...
Show meaningful message when software update is blocked
2021-03-15 11:07:13 +01:00
Scott Lahteine
9ab2ba29b9
Update temperature message regex
2021-03-14 09:20:53 -05:00
Scott Lahteine
7ea6969e13
Prevent script error in build setup
2021-03-14 09:20:53 -05:00
cp2004
aa9a2335ce
✏️ Show meaningful message when software update is blocked
...
And log when it is undervoltage.
The problem here was twofold: first, a very generic message asking to check the log confused users. Second, there was nothing logged when it said check the logs.
So, this changes that so the message is escaped and displayed in the pnotify and when the update is blocked for undervoltage this is logged.
This does not add logging for other methods, since it seems unnecessary to me.
Closes #4024
2021-03-13 21:36:37 +00:00
cp2004
1c91668194
🐛 Fix log validation
...
`path` in this context is just `octoprint.log`, so the path validation is useless - it will always look in the basedir, because that is where Tornado has been told to look.
No other validators do the same as far as I can see (timelapse and files).
Closes #4045
🎨 Pretty
2021-03-13 17:54:25 +00:00
Gina Häußge
b5b1e8a812
Merge branch 'maintenance' of github.com:OctoPrint/OctoPrint into maintenance
2021-03-12 18:21:01 +01:00
Gina Häußge
f64abb22b3
🐛 Fix file name validation never validating
2021-03-12 18:13:11 +01:00
Gina Häußge
89273598ae
⚡ ️ Don't calculate last modified twice
2021-03-12 18:12:38 +01:00
Gina Häußge
90f1a44c2d
🔊 Increase timings logging
...
Now can also log on entering the decorated function.
2021-03-12 18:11:59 +01:00
GitHub Nightly Merge Action
a6cc6126d6
Merge branch 'master' into maintenance
2021-03-12 00:30:35 +00:00
Gina Häußge
361162aac2
👷 Disable maintenance->devel again
...
Turns out it doesn't trigger the build action, so we'd never see
pre-commit runs on those merges - we really really don't want that.
Manual it is :/
2021-03-11 17:43:55 +01:00
GitHub Nightly Merge Action
9625695467
Merge branch 'maintenance' into devel
2021-03-11 16:40:10 +00:00
GitHub Nightly Merge Action
164b0a5496
Merge branch 'master' into maintenance
2021-03-11 16:40:07 +00:00
Gina Häußge
5355870066
👷 Enable nightly merge maintenance->devel
...
Let's give this a try after all
2021-03-11 17:23:06 +01:00
Gina Häußge
7668afcff7
💚 Fix unit tests
...
io.open is no longer used, mocks needed adjustments
2021-03-11 17:06:04 +01:00
Gina Häußge
fd2ece0f13
🎨 pyupgrade --py37-plus
2021-03-11 16:01:02 +01:00
Gina Häußge
a71f6fcd40
Merge branch 'maintenance' into devel
...
# Conflicts:
# .pre-commit-config.yaml
# setup.py
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/server/api/printer.py
# src/octoprint/server/api/printer_profiles.py
# src/octoprint/server/api/settings.py
# src/octoprint/util/commandline.py
2021-03-11 15:26:46 +01:00
Gina Häußge
f9745515e1
🎨 Add pyupgrade
2021-03-11 14:34:06 +01:00
Gina Häußge
cbb7fe16ff
Merge pull request #4039 from gundalow/patch-1
2021-03-11 08:32:55 +01:00
Gina Häußge
cf2ce1e88b
♻️ Default to JSON api errors for blueprints as well
...
Behaviour can be overwritten via BluePrintPlugin
.get_blueprint_api_prefixes.
2021-03-10 21:54:36 +01:00
Gina Häußge
b1596f30d9
♻️ Use flask.abort where it makes sense
...
And use a custom error handler to return json error responses on API
endpoints.
2021-03-10 21:37:51 +01:00
Gina Häußge
e66497756a
✨ logging: bulk download logs
...
Implements #3746
2021-03-09 16:40:49 +01:00
Gina Häußge
62f03e371f
🥅 Fail fast on invalid file names
2021-03-09 14:47:58 +01:00
Gina Häußge
a441e48906
🥅 Don't return input params in error messages
...
While we always escape errors in the frontend, other clients or plugins
might not and thus this could cause XSS issues.
2021-03-09 14:47:43 +01:00
Gina Häußge
07c1d53a44
🥅 logging: Don't manage anything but .log files
...
You never know what people might do.
2021-03-09 14:47:29 +01:00
Gina Häußge
47cf12e9f3
💚 e2e: fix pmgr endpoint
...
Changed with 084625fe7c
2021-03-09 12:38:59 +01:00
Gina Häußge
ab59bd4421
♻️ Fix a deprecation warning
...
Closes #4030
2021-03-09 11:05:43 +01:00
John R Barker
2883f7f161
Update CONTRIBUTING.md
2021-03-05 12:04:20 +00:00
John R Barker
7f86453f29
Update CONTRIBUTING.md
2021-03-05 12:02:13 +00:00
John R Barker
33bda86918
Contributing.md
...
link to `/issues/new/choose` so people can take advantage of the new issue forms
2021-03-04 18:53:32 +00:00