`GetElementProperties` `Feature::type` leaves out the type a feature gets by subsetting when it also has its own typing
Los mantenedores suelen responder en 1 día
@devin-ai-integration ya está trabajando en esto.
Desde el 15/11/2026.
- #2263 de @devin-ai-integration — abierto
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start by running the SysML snippet in the issue through the Python client and comparing element_properties("P::Owner::pBoth", "type") with type_facts.types, then check the A40-040..042 cases in test-suite/data/models/A40.sysml. Find where the GetElementProperties type read stops at the feature's own typing and skips the types inherited through subsetting, and find the Symbol API code that already includes them. Done when type returns [P::V, P::T] for pBoth and the A40 types cases pass in the Go and Python property suites.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This issue was written with AI help. The reproduction was run against the version below.
What happened
Since #2040 (#2007), the Symbol API's type_facts.types gives a feature's derived Feature::type, including the types it gets through subsetting. #2021's closing comment says it equals element_properties(el, "type"). For a feature that has both its own typing and a subsetting, the two answers differ:
package P {
part def T;
part def V;
part def Owner {
part q : T;
part pBoth : V :> q; // typed by V, subsets q : T
}
}
m = opensysml.loads(SRC) # no diagnostics
[t.id for t in m.get("P::Owner::pBoth").type_facts.types] # ['P::V', 'P::T']
m.element_properties("P::Owner::pBoth", "type") # ['P::V']
| Read | P::Owner::pBoth |
|---|---|
Symbol API type_facts.types |
P::V, P::T |
GetElementProperties type |
P::V |
Pilot Feature::type |
P::V, P::T |
ownedTyping and ownedSubsetting each list their one relationship. A feature that only subsets (part pSub :> q;) answers P::T through both reads, so the gap seems to be the combination of the two.
Expected
type is [P::V, P::T]: KerML §8.3.3.3 Feature::type includes the types of the features it subsets. That is the answer of the Symbol API, the Pilot (0.64.0-SNAPSHOT, commit 378a8700c) and sysml-toolkit.
Version
OpenSysML develop at a159469093, bin/sysml-grpc from make build-grpc, Python client from client/python of the same commit.
Found by
The test suite at https://github.com/hideo67/sysmlv2-tests, matrix A40 (test-suite/data/matrices/A40.md, model test-suite/data/models/A40.sysml). pBoth's types fails on the def, through a typing usage and through a usage of a specializing def (A40-040..042), in opensysml-py-props and opensysml-go-props. The six Symbol API suites pass these cases.
- Lenguaje dominante
- Go
- Estrellas
- 59
- Forks
- 20
- Merge medio
- 10 h 23 min
- PR fusionados (30 d)
- 897
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Open-MBEE/OpenSysML
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
A model's parse is still paid cold in every process; the library record cache does not cover itAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
Los mantenedores suelen responder en 1 día
Todos los issues de Open-MBEE/OpenSysML
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
AvengeMedia/DankMaterialShell#4301 · 1 comentario ·
-
priority: p2 type: bug type: docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
googleapis/google-cloud-swift#1641 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
krakenhavoc/cmd_and_ctrl#5853 ·
Los mantenedores suelen responder en 1 día
-
flaky test: TestTRTAsyncPrefillFailures/transport reads the token load before prefillDone has released itPosiblemente ocupada @Jackmeson1 la tomó hoy. Abiertoarea/cicd area/gateway kind/misc
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
vllm-project/aibrix#3488 · 2 comentarios ·
Los mantenedores suelen responder en 1 día