Gina Häußge
bb8fafaacb
💚 mock => unittest.mock
...
We don't have the mock package installed here anymore
2021-01-19 11:52:41 +01:00
Gina Häußge
977e021b36
Merge branch 'maintenance' into devel
2021-01-19 11:44:31 +01:00
Gina Häußge
e9adcddf7f
💚 Fix py2.7 test issue
...
We still need to stay compatible to py2, so
we need to import mock, not unittest.mock.
2021-01-18 17:06:08 +01:00
Gina Häußge
20c0833cbc
✏️ Fix file header
2021-01-18 16:52:33 +01:00
Levi Blaney
1be8c23069
add tests for gcode script events
2021-01-18 16:47:24 +01:00
Gina Häußge
00fb7daecf
Merge branch 'maintenance' into devel
2021-01-14 16:12:30 +01:00
Gina Häußge
6b2485363e
✅ Update e2e dep version
...
Should make dependabot happy about our e2e tests again.
2021-01-11 19:17:39 +01:00
Gina Häußge
d60bb43e07
💚 Fix unit tests testing settings init
...
We now need to explicitly trigger a write to config.yaml to test proper
creation at the right places since we no longer will automatically
generate a global API key - that has been removed.
2020-11-26 12:24:12 +01:00
Gina Häußge
8ef57e2ab7
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/filemanager/storage.py
# src/octoprint/plugins/announcements/__init__.py
2020-11-25 13:19:01 +01:00
Gina Häußge
c12447dca2
♻️ Extract slugify/sanitizing into util method
...
Reduces code duplication
2020-11-23 17:14:57 +01:00
Gina Häußge
90c0675234
Merge branch 'maintenance' into devel
2020-11-17 16:23:15 +01:00
Gina Häußge
a4b44a8b0f
🥅 Do not support pyc plugins
...
A pyc file alone should really never happen anyhow in our plugin setup,
and they would not load under Py3 anyhow as we can't parse the
compatibility information right now.
Simply removing their support altogether as it should not have been
utilized anywhere anyhow as far as I am aware, and never was officially
documented as supported to boot.
2020-11-12 10:11:49 +01:00
Gina Häußge
9a57362602
🥅 Better solution for invalid plugin detection
...
Should be done at plugin manager level, not externally. Ignore pyc files
though as we currently can't parse their metadata (looking into that).
Fix tests while at it.
2020-11-11 18:23:29 +01:00
Gina Häußge
718f89fdbd
Merge branch 'maintenance' into devel
2020-10-23 16:59:02 +02:00
Gina Häußge
dbc012fa4c
🎨 Fix some left over set calls
2020-10-23 16:42:32 +02:00
Gina Häußge
c02c1452e6
♻️ Py3: Some more import & compat stragglers
2020-10-22 16:25:47 +02:00
Gina Häußge
55ddfdd314
💚 Fix tests
2020-10-22 16:22:00 +02:00
Gina Häußge
292aa99543
♻️ Py3: Remove Py2 specific imports
2020-10-21 18:13:39 +02:00
Gina Häußge
61a08d26b2
Merge branch 'maintenance' into devel
2020-10-21 14:35:24 +02:00
Gina Häußge
fd319fc82f
🥅 PiSupport: Warning if run on a zero/zero w
2020-10-21 11:54:46 +02:00
Gina Häußge
100764b03e
🎨 Remove some left-over pragma headers & future imports
2020-10-07 21:37:22 +02:00
Gina Häußge
c715751bc6
Merge branch 'maintenance' into devel
2020-10-07 21:19:05 +02:00
Gina Häußge
d3cf2a8e35
🎨 Some additional pre-commit checks
2020-10-07 21:16:48 +02:00
Gina Häußge
18e6bfc7f8
Merge branch 'maintenance' into devel
...
# Conflicts:
# .github/workflows/build.yml
# docs/conf.py
# docs/development/environment.rst
# docs/sphinxext/codeblockext.py
# docs/sphinxext/onlineinclude.py
# setup.py
# src/octoprint/access/groups.py
# src/octoprint/access/permissions.py
# src/octoprint/access/users.py
# src/octoprint/cli/__init__.py
# src/octoprint/cli/analysis.py
# src/octoprint/cli/client.py
# src/octoprint/cli/config.py
# src/octoprint/cli/plugins.py
# src/octoprint/cli/server.py
# src/octoprint/cli/user.py
# src/octoprint/environment.py
# src/octoprint/events.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/filemanager/analysis.py
# src/octoprint/filemanager/destinations.py
# src/octoprint/filemanager/storage.py
# src/octoprint/filemanager/util.py
# src/octoprint/logging/__init__.py
# src/octoprint/logging/handlers.py
# src/octoprint/plugin/__init__.py
# src/octoprint/plugin/core.py
# src/octoprint/plugins/action_command_notification/__init__.py
# src/octoprint/plugins/action_command_prompt/__init__.py
# src/octoprint/plugins/appkeys/__init__.py
# src/octoprint/plugins/backup/__init__.py
# src/octoprint/plugins/corewizard/__init__.py
# src/octoprint/plugins/corewizard/subwizards.py
# src/octoprint/plugins/discovery/__init__.py
# src/octoprint/plugins/errortracking/__init__.py
# src/octoprint/plugins/gcodeviewer/__init__.py
# src/octoprint/plugins/logging/__init__.py
# src/octoprint/plugins/pi_support/__init__.py
# src/octoprint/plugins/softwareupdate/cli.py
# src/octoprint/plugins/softwareupdate/updaters/single_file_plugin.py
# src/octoprint/plugins/softwareupdate/updaters/sleep_a_bit.py
# src/octoprint/plugins/softwareupdate/version_checks/always_current.py
# src/octoprint/plugins/softwareupdate/version_checks/bitbucket_commit.py
# src/octoprint/plugins/softwareupdate/version_checks/github_release.py
# src/octoprint/plugins/softwareupdate/version_checks/httpheader.py
# src/octoprint/plugins/softwareupdate/version_checks/jsondata.py
# src/octoprint/plugins/softwareupdate/version_checks/never_current.py
# src/octoprint/plugins/softwareupdate/version_checks/pypi_release.py
# src/octoprint/plugins/tracking/__init__.py
# src/octoprint/plugins/virtual_printer/virtual.py
# src/octoprint/printer/__init__.py
# src/octoprint/printer/estimation.py
# src/octoprint/printer/profile.py
# src/octoprint/printer/standard.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/api/system.py
# src/octoprint/server/api/users.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/util/tornado.py
# src/octoprint/server/util/webassets.py
# src/octoprint/settings.py
# src/octoprint/slicing/__init__.py
# src/octoprint/timelapse.py
# src/octoprint/util/__init__.py
# src/octoprint/util/comm.py
# src/octoprint/util/commandline.py
# src/octoprint/util/connectivity.py
# src/octoprint/util/fixes.py
# src/octoprint/util/gcodeInterpreter.py
# src/octoprint/util/jinja.py
# src/octoprint/util/json/__init__.py
# src/octoprint/util/net.py
# src/octoprint_client/__init__.py
# src/octoprint_setuptools/__init__.py
# tests/filemanager/test_filemanager.py
# tests/filemanager/test_localstorage.py
# tests/plugin/test_core.py
# tests/plugin/test_settings.py
# tests/plugin/test_types_blueprint.py
# tests/plugin/test_types_settings.py
# tests/server/api/test_system.py
# tests/server/util/test_flask.py
# tests/server/util/test_tornado.py
# tests/slicing/test_slicingmanager.py
# tests/test_daemon.py
# tests/timelapse/test_timelapse_helpers.py
# tests/util/test_comm.py
# tests/util/test_file_helpers.py
# tests/util/test_pip.py
# tests/util/test_repeated_timer.py
# tests/util/test_resettable_timer.py
# versioneer.py
2020-10-07 21:08:44 +02:00
Gina Häußge
6b44909f21
🎨 Add prettier for js, less, yaml, json, ...
2020-10-07 18:53:49 +02:00
Gina Häußge
8427383b31
🐛 Don't touch BOM test files with pre-commit
2020-10-07 17:25:46 +02:00
Gina Häußge
b5be8f3eae
🎨 Add codemods to pre-commit, fix flake8
2020-10-07 16:27:11 +02:00
Gina Häußge
cae6730ea8
🎨 EOF/trailing whitespace/TOML&YAML check
...
And armed and documented pre-commit
2020-10-07 13:45:49 +02:00
Gina Häußge
fbfb34df58
🎨 Switch to use of isort
2020-10-07 13:15:52 +02:00
Gina Häußge
1f93b2355a
🎨 Switch to black formatting
2020-10-07 13:13:06 +02:00
Gina Häußge
26151b3c42
⚡ ️ Even more aggressive caching of uploads
...
The LocalFileStorage now maintains its own internal cache for all
tracked folders and will only refresh entries if the last modification
of a (sub)folder has changed.
2020-10-01 11:44:50 +02:00
Gina Häußge
67378e1d55
Merge branch 'maintenance' into devel
2020-09-17 15:25:59 +02:00
Gina Häußge
ef8903902c
✨ PMGR: Support version ranges for notices
2020-09-15 18:21:38 +02:00
Gina Häußge
b80826dd0c
Merge branch 'pr/3719' into maintenance
2020-09-14 12:44:02 +02:00
Tobias Frost
e83e2a4467
Hint mkstemp to create directory in the destination directory.
2020-09-07 15:10:50 +02:00
Gina Häußge
99293b9ccf
Merge branch 'maintenance' into devel
...
# Conflicts:
# .versioneer-lookup
2020-08-06 12:43:11 +02:00
Gina Häußge
ffb2a0ed73
Merge branch 'master' into maintenance
2020-08-04 14:24:58 +02:00
Gina Häußge
0364130dd3
⬆️ Upgrade cypress
2020-08-04 14:14:47 +02:00
Gina Häußge
9897fc2d56
Merge branch 'maintenance' into devel
2020-08-03 10:53:31 +02:00
Gina Häußge
e49d0b0c22
💚 Use fixed umask for tests
2020-08-03 10:50:57 +02:00
Gina Häußge
35ae4af868
Merge branch 'maintenance' into devel
...
# Conflicts:
# docs/development/environment.rst
# setup.py
2020-08-03 10:32:57 +02:00
Gina Häußge
a846fd8f83
✅ Add E2E for basic settings dialog behaviour
2020-08-03 10:31:25 +02:00
Gina Häußge
e7e04271fd
💚 Fix tests broken by 894178918
2020-08-03 09:59:56 +02:00
Gina Häußge
95c8902d96
Merge branch 'maintenance' into devel
2020-07-29 12:21:46 +02:00
Gina Häußge
87cd0a88fb
Merge branch 'staging/maintenance' into maintenance
2020-07-22 14:52:41 +02:00
Gina Häußge
6165e5b0f0
💚 Fix flaky connect test
2020-07-22 14:48:15 +02:00
Gina Häußge
4511d8667b
✅ E2E: Add basic upload test
2020-07-22 14:02:36 +02:00
Gina Häußge
b1e2121682
✨ New recovery endpoint & refactoring
...
At /recovery/ there's now a (for now basic) recovery dialog that
currently allows the core functionality from the system command menu, so
shutting down and rebooting the system, restarting OctoPrint and
restarting OctoPrint in safe mode. The most important part here is the
ability to restart in safe mode, as that will allow to get OctoPrint
back into working order if an errant third party plugin or language
pack has made the standard UI non functional.
For that reason, no third party plugins are enabled or utilized on the
recovery dialog, even the theming hook is aggressively error resilient.
In order to still allow to authenticate the user (no one but ADMIN
should be allowed to use the recovery UI) the loginui plugin has been
merged into core as its own endpoint /login/ which coreui and recovery
can redirect to. This is a welcome change considering that the loginui
was absolutely necessary anyhow, and it being a plugin was merely a side
effect of backporting from forcelogin. This has now been cleaned up.
2020-07-20 17:00:31 +02:00
Gina Häußge
1afd7d532c
💚 Fix a test
2020-07-15 16:18:14 +02:00
Gina Häußge
2bb0e0edfc
Merge branch 'maintenance' into devel
2020-07-15 14:22:53 +02:00