Skip to content

Octoprint 2.0.0 fixes#37

Open
jacopotediosi wants to merge 6 commits into
OctoPrint:masterfrom
jacopotediosi:octoprint-2.0.0-fixes
Open

Octoprint 2.0.0 fixes#37
jacopotediosi wants to merge 6 commits into
OctoPrint:masterfrom
jacopotediosi:octoprint-2.0.0-fixes

Conversation

@jacopotediosi
Copy link
Copy Markdown
Member

@jacopotediosi jacopotediosi commented May 4, 2026

Hi, I'm an active contributor to OctoPrint core. I helped ship OctoPrint 2.0.0rc1 and I'm now helping plugins stay compatible with the new and upcoming OctoPrint releases, which is why you're receiving this PR.


What this PR does

This PR fixes the compatibility issues preventing this plugin from being installed on OctoPrint 2.0.0rc1.

In particular:

  • Removes user_permission, which doesn't exist anymore in OctoPrint 2.0.0 (ref) and replaces it with a proper Permissions check.
  • Migrates the installation method to pyproject (ref). This has been done via the octoprint dev plugin:migrate-to-pyproject command, with minor manual adjustments to the generated files.
  • Implements is_api_protected (ref).
  • Implements TemplatePlugin autoescape (ref).

Minor improvements are also applied: removal of unused imports, formatting with Ruff.

Testing:

I tested the installation on both OctoPrint 2.0.0rc1 and the latest stable release 1.11.7, and everything appears to work correctly.

Screenshots:

New custom permissions image
Sidebar button is disabled if the user has no ENABLE permission image
Abort button is correctly shown if the user has the ABORT permission image
Abort button is correctly hidden if the user has not the ABORT permission image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants