Skip to content

Add distinction between "released", "beta", and "user" nodes#3147

Draft
cbentejac wants to merge 15 commits into
developfrom
dev/nodeVersions
Draft

Add distinction between "released", "beta", and "user" nodes#3147
cbentejac wants to merge 15 commits into
developfrom
dev/nodeVersions

Conversation

@cbentejac

Copy link
Copy Markdown
Contributor

Description

This PR introduces a new concept pertaining to the version of nodes, which are now classified into three different types:

  • RELEASED: the node has a version that is at least 1.0.
  • BETA: the node has a version that is below 1.0.
  • USER: the node comes from a user plugin, meaning it is not maintained by Meshroom's core team.

USER nodes are loaded through new environment variables, MESHROOM_USER_PLUGINS_PATH and MESHROOM_USER_REZ_PLUGINS. Once loaded, they appear with a specific icon (and a tooltip) and an easy-to-identify header, both on the node itself and in the Node Editor.

image image

RELEASED nodes appear as they used to, nothing changes when it comes to them.

BETA nodes appear with a specific icon (and a tooltip) indicating their status. Neither the node's nor the Node Editor's header color changes.

image

Features list

  • Add a new NodeVersionType enum for nodes and expose it to the QML engine.
  • Add a new notion of "user plugin".
  • Update the node and panel QML components to visually distinguish user plugins (red-tinted headers) and beta nodes, including new icons and tooltips indicating node version type.

@cbentejac cbentejac added this to the Meshroom 2026.1.0 milestone Jun 22, 2026
@cbentejac cbentejac self-assigned this Jun 22, 2026
@cbentejac cbentejac marked this pull request as draft June 22, 2026 16:50
Comment thread meshroom/core/__init__.py Fixed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for user-contributed plugins and node versioning (Unknown, Released, Beta, User) in Meshroom. It adds environment variables to load user plugins, determines node version types based on plugin origin and module version, and updates the UI to visually differentiate user and beta nodes. The review feedback highlights several robustness improvements, including adding null checks for self.plugin and node properties in Python and QML, as well as handling potential ValueError exceptions during version parsing to prevent crashes.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread meshroom/core/desc/node.py Outdated
Comment thread meshroom/ui/qml/GraphEditor/Node.qml
Comment thread meshroom/ui/qml/GraphEditor/Node.qml
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 73.46939% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.31%. Comparing base (c9d0239) to head (8ccb053).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
meshroom/core/__init__.py 11.11% 24 Missing ⚠️
meshroom/core/desc/node.py 90.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3147      +/-   ##
===========================================
- Coverage    85.34%   85.31%   -0.04%     
===========================================
  Files           73       73              
  Lines        11460    11543      +83     
===========================================
+ Hits          9781     9848      +67     
- Misses        1679     1695      +16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fabiencastan

fabiencastan commented Jun 24, 2026

Copy link
Copy Markdown
Member

USER logo is not ideal.
Orange on BETA and RED on USER.

`NodeVersionType` aims to identify clearly the "type" of node based on the
description's version:
- beta: the version is below 1.0, the node is working but not necessarily
future-proof
- released: the version is at least 1.0, the node has been approved and
is future-proof
- user: the node is not distributed with Meshroom and has been developed
by a user; it may or may not work correctly
- unknown: the node has no version, its status cannot be determined; it
may or may not work correctly
…pe` to QML

This prevents duplicating the enum on the QML side, which makes it harder
to maintain whenever there are changes.
cbentejac added 10 commits June 25, 2026 16:47
…lugin

Plugins with the `isUserPlugin` flag are to be distinguished from "regular"
plugins, which are maintained by the core team.
`MESHROOM_USER_PLUGINS_PATH` and `MESHROOM_USER_REZ_PLUGINS` will load
plugins in the same way as those declared in `MESHROOM_PLUGINS_PATH` and
`MESHROOM8REZ_PLUGINS` but will flag them as "user" plugins.
…gins

In addition to loading plugins declared in `MESHROOM_PLUGINS_PATH` and
`MESHROOM_REZ_PLUGINS`, load those declared in `MESHROOM_USER_PLUGINS_PATH`
and `MESHROOM_USER_REZ_PLUGINS` and flag them as user plugins.
Comment thread meshroom/core/desc/node.py Dismissed
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