Skip to content

fix(mdk): Run query reads a parameter's bound value from its FeatureValue - #2506

Merged
HuiJun merged 1 commit into
developfrom
fix/element-properties-bound-value
Nov 22, 2026
Merged

HuiJun merged 1 commit into
developfrom
fix/element-properties-bound-value

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

The "MDK plugin tests" job has failed on develop since #2042, in PipelineEndToEndTest.v1MdzipRunQueryOfADocGenTable and PipelineEndToEndTest.v2TextualRunQueryPlansParameters. The tag pipeline runs the same mvn -f editors/mdk/pom.xml verify before it packages Magic_MDK.zip, so a release tag fails there too.

#2042 moved GetElementProperties onto the symbol-backed structure, and with it a feature's bound value is answered on its FeatureValue (value), where the metamodel declares it. A feature asked for value now answers <Metaclass> declares no property value. That is the documented behaviour of #2042 (changes/unreleased/element-properties-symbol-structure.changed.md), and the Python client's test was moved to the new read in that PR; Magic MDK was not.

QueryResolver.hasValue still asked the parameter itself for value, so Run query planned every defaulted parameter as unbound and would prompt for it. It now reads the parameter's ownedRelationship and reports a bound value when one of them is a FeatureValue.

The service is unchanged: restoring value on a feature would reintroduce a property the metaclass does not declare.

Other readers: QueryResolver is the only non-test caller of elementProperties under editors/ and client/ that reads value. The SysON integration does not call GetElementProperties at all, so it is unaffected.

Specification basis

KerML 1.0 § 8.3.4.10.2 FeatureValue: the value expression is FeatureValue::value, owned by the feature through its ownedRelationship; Feature declares no value. No compliance row moves.

How it was verified

With bin/sysml-grpc rebuilt from this branch's base (make build-grpc):

  • before the change, mvn -B -f editors/mdk/pom.xml verify -Dopensysml.requireService=true fails with the two PipelineEndToEndTest failures CI reports (hasValue=false where true is expected);
  • after it, the same command is BUILD SUCCESS: 13 + 92 + 24 tests, 0 failures, PipelineEndToEndTest 15/15.

The two existing end-to-end tests are the regression coverage; they assert hasValue for a redefined parameter with a bound default and for a migrated DocGen query, and for an unbound parameter beside them.

python3 scripts/changelog.py check, python3 scripts/check-doc-ids.py and go test ./tests/hygiene pass. No Go source changed, so make test and make lint were not rerun.

Checklist

  • make test and make lint pass locally (not run: no Go source changed)
  • Tests added or updated for the change (covered by the two existing end-to-end tests this turns green)
  • Documentation extended where it already covers the surface (see CONTRIBUTING.md)
  • Changelog entry added as changes/unreleased/<slug>.<section>.md, not as an edit to CHANGELOG.md
  • baselines regenerated and make docs-counts run if a gate count moved (none moved)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

Release Management opened this PR for Jason
Implemented in session Triage develop merges for 0.13.0 cut
Review with Devin · Open in Devin Desktop


…alue

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@HuiJun
HuiJun added this pull request to the merge queue Nov 22, 2026
Merged via the queue into develop with commit ad25987 Nov 22, 2026
114 of 168 checks passed
@HuiJun
HuiJun deleted the fix/element-properties-bound-value branch November 22, 2026 07:01
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.

1 participant