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
af60fd6428
🎨 Change dict constructors to literals
2020-10-06 14:57:47 +02:00
Gina Häußge
c0495d22c9
🐛 Remove default submit from settings forms
...
We only want explicitly defined form behaviour.
Otherwise stuff might be triggered by hitting
the enter key that should not be triggered.
Closes #3740
2020-09-23 11:25:32 +02:00
Gina Häußge
cac1e4b0bd
🐛 PMGR: Ensure log notification is actually visible
...
Caused by a change while analysing/solving #3729
2020-09-21 13:07:54 +02:00
Gina Häußge
9e5d1e9ad6
♻️ PMGR: Further limitation of concurrent requests
...
Prevent multiple concurrent enabling/disabling actions and use central
promise for regular data updates from the backend.
Related to #3729
2020-09-16 13:36:59 +02:00
Gina Häußge
6ea2caa770
🐛 PMGR: Fix saving of plugin settings
2020-09-15 18:51:23 +02:00
Gina Häußge
0b92c63734
🐛 PMGR: Fix display of affected version
...
If we use pluginversions instead of versions for matching those should
also be the ones made available to the frontend.
2020-09-15 18:43:14 +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
9f289a0e9c
🥅 PMGR: Make sure we only fire off one request at a time
...
Possibly related to #3729
2020-09-15 16:08:48 +02:00
Gina Häußge
80f2ab86c1
♻️ PMGR: Reuse notification
...
So far we were constantly removing and recreating a notification on each
plugin manager log event. We now only create the notification once and
then reuse/update it.
Potentially related to #3729
2020-09-15 16:07:16 +02:00
Gina Häußge
ec4e2c7193
🔥 PMGR: Get rid of unused code
2020-09-15 16:04:44 +02:00
Gina Häußge
4cf2a673c8
🐛 pmgr: turn install API command fully async
...
Fixes #3668
2020-09-07 17:11:11 +02:00
Gina Häußge
6132f481ce
🐛 Better fix for #3701
...
Use the url encoded path_url for installing, don't shell quote under
windows.
2020-09-04 10:22:16 +02:00
Gina Häußge
e72aab3448
🐛 Fix plugin installation under Windows
...
If the temporary file contained characters blacklisted by
sarge.shell_quote, e.g. a ~, the shell quote would break the install
path on windows.
Considering that the path will now always be a temporary path as
generated by Tempfile, we just get rid of shell_quote altogether as it
doesn't seem to really serve any purpose now anymore.
Closes #3701
2020-09-03 17:24:27 +02:00
cp2004
bd7ed94b4a
🐛 Fix detection of tar.gz plugins as archive type
2020-08-27 22:08:43 +01:00
Gina Häußge
5a33ecf63b
🐛 pmgr: fix max upload size
...
Closes #3674
2020-08-05 12:20:01 +02:00
Gina Häußge
ab8ad72bc3
🥅 PMGR: Ensure validity of latest release data
...
Closes #3661
2020-07-28 19:33:48 +02:00
Gina Häußge
f1cc40a87c
🐛 PMGR: Fix single file plugins under Py2.7
...
filetype dependency requires paths as str, so we need to make sure
we provide what will be identified as a native str type under both
py2 and 3.
Closes #3630
2020-07-06 18:31:30 +02:00
Gina Häußge
eac45562f8
♻ logger.warn => logger.warning
...
`warn` is deprecated
2020-06-24 15:19:45 +02:00
Gina Häußge
5b022a7321
💄 PMGR: Move author & homepage under title
...
Just like in the repository browser
2020-06-22 10:12:36 +02:00
Gina Häußge
987b2e858f
💄 PGMR: Use birthday cake icon for pubdate
2020-06-19 14:21:31 +02:00
Gina Häußge
6396d5ede0
🔥 PGMR: Remove "new installs"
...
It doesn't really add that much information and the UI is already
crowded.
2020-06-19 14:18:59 +02:00
Gina Häußge
6d8a131c6d
💄 PMGR: More space for the repo browser
2020-06-19 14:07:13 +02:00
Gina Häußge
a4eb739a95
✨ PMGR: Display more stats from plugin repo
...
We now also include publication date, last push date, release & release
date and github stars in the UI (if available), allow sorting by all
that and also visually highlight abandoned/disabled/incompatible
plugins. Also there's a now a filter to hide abandoned plugins and an
indicator of how many plugins of all available ones are being shown with
the currently active filters and search.
Implements #3606
2020-06-19 13:16:50 +02:00
Gina Häußge
1903a7a319
🐛 Backport TemporaryDirectory to Py2
2020-06-16 11:42:39 +02:00
Gina Häußge
5dd1b19373
🐛 PGMR: Fix affected version list in notices
2020-06-15 11:59:28 +02:00
Gina Häußge
37526800c1
♻ Move download_file into octoprint.util.net
...
We can use it elsewhere.
2020-06-10 15:16:00 +02:00
Gina Häußge
eef51b1cb9
🐛 Mark all bundled plugins py3 compatible
...
That somehow got forgotten. Wasn't needed since bundled always get
loaded, however now that we display that kind of information in the
plugin manager it should reflect reality.
2020-06-10 15:02:46 +02:00
Gina Häußge
8e662fea9e
✨ PMGR: single file validation & install from upload
2020-06-10 14:38:27 +02:00
Gina Häußge
4c73774104
💚 Fix flake8
2020-06-09 19:05:28 +02:00
Gina Häußge
b675ec6137
✨ PMGR: allow installing single file plugins
...
Only throw URL for now though.
2020-06-09 18:53:01 +02:00
Gina Häußge
65a66b11eb
✨ pgmr: include recent installs in repo browser
...
Also allow sorting by it.
2020-05-20 20:05:37 +02:00
Gina Häußge
052f81275b
🚸 pgmr: Dedicated error message on general failure
...
If we can't load stuff from the backend, don't get stuck in "pip not
available" mode (which confuses people terribly) but instead show a
dedicated error.
2020-05-19 17:50:40 +02:00
Gina Häußge
e0a5751d9f
💄 pgmr: Slight restyling of repository browser
...
Make sure icons don't get separated from their text and reduce
amount of unused space.
2020-05-19 17:36:24 +02:00
Gina Häußge
8a18963a72
✨ pgmr: Add sort by plugin popularity
...
Uses data from the anonymous usage tracking pulled from the repo.
2020-05-19 17:34:57 +02:00
Gina Häußge
b763c0516d
Merge branch 'pr/3566' into maintenance
2020-05-15 13:13:50 +02:00
Gina Häußge
6367ab8bf9
✨ pgmr: Display installation stats from repo
...
Based on tracking data, coming full circle here.
2020-05-14 00:18:40 +02:00
Shawn Bruce
1d2e82644c
Use global_remove instead of global_set in octoprint.plugins.pluginmanager._cleanup_settings.
...
SeenWizards plugin data should be removed during cleanup.
2020-05-12 15:46:35 -04:00
Gina Häußge
0da0e6cf8b
✨ pmgr: Add Python version to plugin list
2020-04-03 16:59:12 +02:00
Gina Häußge
453ef0cb97
♻ Remove implicit blueprint protection in favour of explicit one
2020-02-25 17:03:29 +01:00
Gina Häußge
a75c641c18
♻ Implement login dialog through UiPlugin
...
Otherwise alternative UIs might still be wide open, and caching and such
was also really painful to solve before.
The LoginUI Plugin is pretty much just a distilled ForceLogin plugin.
Also declared it as hidden so it won't show up/be manageable by the
plugin manager.
2020-02-25 15:33:42 +01:00
Gina Häußge
10079b8d9d
🐛 PGMR: Fix UI representation of incompatible plugins
...
Second part of fixing #3442
2020-02-04 15:53:56 +01:00
Gina Häußge
d8c3063813
⬆️ Update 3rd party deps
2019-11-20 15:30:36 +01:00
Gina Häußge
6d7721f8f5
✨ PMGR: More cleanup options
...
Additional "clean up all leftovers" feature to clean up anything left
over by plugins already uninstalled.
Also takes care of entries in the disabled plugin list now.
See also #3299
2019-11-15 16:28:27 +01:00
Gina Häußge
e3ae71eabd
🐛 PMGR: Apparently mtime can sometimes still be None
...
Handle that.
See https://community.octoprint.org/t/plugins-pip-error-on-fresh-octopi-0-17-0-install/13466
for an example.
2019-11-15 10:43:34 +01:00
Gina Häußge
e88041c59e
🐛 PMGR: Remove access attempts on removed field
2019-11-15 10:43:34 +01:00
Gina Häußge
7f2eb470e4
Merge branch 'maintenance' into devel
2019-11-08 14:52:20 +01:00