Skip to content

Add constraint property graph mutation#488

Merged
vish-cs merged 1 commit intodatacommonsorg:masterfrom
vish-cs:doc
Mar 17, 2026
Merged

Add constraint property graph mutation#488
vish-cs merged 1 commit intodatacommonsorg:masterfrom
vish-cs:doc

Conversation

@vish-cs
Copy link
Contributor

@vish-cs vish-cs commented Mar 13, 2026

Add a new MCF transformation to add constraint properties in McfMutator where we already do quantity range and lat-long transformations.
Updated various test files required due to the added logic

@gemini-code-assist

This comment was marked as outdated.

Copy link
Contributor

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

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 a mutation to generate constraintProperties for StatisticalVariable nodes and refactors several areas to handle node IDs for optimization purposes. The primary logic resides in McfMutator. My review has identified a critical issue in the constraintProperties generation that produces malformed DCIDs, along with several opportunities for improving code maintainability and performance. I've also included a comment regarding potential code duplication that would benefit from clarification.

@vish-cs vish-cs force-pushed the doc branch 2 times, most recently from dfbb8e3 to 4e63144 Compare March 13, 2026 13:08
@vish-cs vish-cs requested a review from n-h-diaz March 13, 2026 13:30
Copy link
Contributor

@n-h-diaz n-h-diaz left a comment

Choose a reason for hiding this comment

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

Thank you!

@vish-cs vish-cs merged commit 8a6f55a into datacommonsorg:master Mar 17, 2026
6 checks passed
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