Skip to content

[ui] Attribute: Refacto of the validation process, using the new validation paradigm#1875

Open
nicolas-lambert-tc wants to merge 1 commit intodevelopfrom
feature/node-valididy-check
Open

[ui] Attribute: Refacto of the validation process, using the new validation paradigm#1875
nicolas-lambert-tc wants to merge 1 commit intodevelopfrom
feature/node-valididy-check

Conversation

@nicolas-lambert-tc
Copy link
Copy Markdown

@nicolas-lambert-tc nicolas-lambert-tc commented Jun 4, 2025

Description

Use the new validation paradigm and remove the validValue/errorMessages attributes.

meshroom related PR

Comment thread meshroom/aliceVision/LdrToHdrSampling.py Outdated
Comment thread meshroom/aliceVision/common.py Outdated
Copy link
Copy Markdown
Member

@fabiencastan fabiencastan left a comment

Choose a reason for hiding this comment

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

minor adjustments needed

@nicolas-lambert-tc nicolas-lambert-tc force-pushed the feature/node-valididy-check branch from 073e6a3 to e2ea36b Compare June 16, 2025 16:14
@fabiencastan fabiencastan modified the milestones: 3.3.0, 3.4.0 Jun 18, 2025
Copilot AI review requested due to automatic review settings April 29, 2026 13:19
@nicolas-lambert-tc nicolas-lambert-tc force-pushed the feature/node-valididy-check branch from e2ea36b to 17cd0d7 Compare April 29, 2026 13:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors several Meshroom UI nodes to use the newer attribute validation paradigm (validators returning success()/error()) instead of legacy validValue/errorMessage fields.

Changes:

  • Added a shared HDR bracket-count validator (NbOfBracketsShouldBeAMultipleOfNbOfImages) in a new common module.
  • Updated LdrToHdr nodes (Sampling/Merge/Calibration) to use the shared validator instead of errorMessage and removed legacy validValue handling.
  • Updated KeyframeSelection output extension validation to the new validators API.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
meshroom/aliceVision/ldrToHdrCommon.py Introduces a reusable validator for bracket/image-count consistency.
meshroom/aliceVision/LdrToHdrSampling.py Replaces legacy errorMessage validation with validators; adjusts update() logic.
meshroom/aliceVision/LdrToHdrMerge.py Replaces legacy errorMessage validation with validators; adjusts update() logic.
meshroom/aliceVision/LdrToHdrCalibration.py Replaces legacy errorMessage validation with validators; adjusts update() logic.
meshroom/aliceVision/KeyframeSelection.py Migrates outputExtension validation from validValue/errorMessage to validators.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread meshroom/aliceVision/LdrToHdrSampling.py Outdated
Comment thread meshroom/aliceVision/LdrToHdrCalibration.py
Comment thread meshroom/aliceVision/ldrToHdrCommon.py
Comment thread meshroom/aliceVision/LdrToHdrMerge.py Outdated
Comment thread meshroom/aliceVision/LdrToHdrCalibration.py Outdated
Comment thread meshroom/aliceVision/LdrToHdrSampling.py
Comment thread meshroom/aliceVision/LdrToHdrMerge.py
Comment thread meshroom/aliceVision/KeyframeSelection.py
Comment thread meshroom/aliceVision/ldrToHdrCommon.py Outdated
@nicolas-lambert-tc nicolas-lambert-tc force-pushed the feature/node-valididy-check branch from 17cd0d7 to d6ecc4f Compare April 30, 2026 07:37
@sonarqubecloud
Copy link
Copy Markdown

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants