Repository navigation
fix(mdk): Run query reads a parameter's bound value from its FeatureValue - #2506
Merged
Merged
Conversation
…alue Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The "MDK plugin tests" job has failed on
developsince #2042, inPipelineEndToEndTest.v1MdzipRunQueryOfADocGenTableandPipelineEndToEndTest.v2TextualRunQueryPlansParameters. The tag pipeline runs the samemvn -f editors/mdk/pom.xml verifybefore it packagesMagic_MDK.zip, so a release tag fails there too.#2042 moved
GetElementPropertiesonto the symbol-backed structure, and with it a feature's bound value is answered on itsFeatureValue(value), where the metamodel declares it. A feature asked forvaluenow 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.hasValuestill asked the parameter itself forvalue, so Run query planned every defaulted parameter as unbound and would prompt for it. It now reads the parameter'sownedRelationshipand reports a bound value when one of them is aFeatureValue.The service is unchanged: restoring
valueon a feature would reintroduce a property the metaclass does not declare.Other readers:
QueryResolveris the only non-test caller ofelementPropertiesundereditors/andclient/that readsvalue. The SysON integration does not callGetElementPropertiesat all, so it is unaffected.Specification basis
KerML 1.0 § 8.3.4.10.2
FeatureValue: the value expression isFeatureValue::value, owned by the feature through itsownedRelationship;Featuredeclares novalue. No compliance row moves.How it was verified
With
bin/sysml-grpcrebuilt from this branch's base (make build-grpc):mvn -B -f editors/mdk/pom.xml verify -Dopensysml.requireService=truefails with the twoPipelineEndToEndTestfailures CI reports (hasValue=falsewheretrueis expected);BUILD SUCCESS: 13 + 92 + 24 tests, 0 failures,PipelineEndToEndTest15/15.The two existing end-to-end tests are the regression coverage; they assert
hasValuefor 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.pyandgo test ./tests/hygienepass. No Go source changed, somake testandmake lintwere not rerun.Checklist
make testandmake lintpass locally (not run: no Go source changed)changes/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (none moved)F4,K5) in the body, docs, or changelogImplemented in session Triage develop merges for 0.13.0 cut
Review with Devin · Open in Devin Desktop