`GetElementProperties` `Feature::type` leaves out the type a feature gets by subsetting when it also has its own typing
Maintainer thường phản hồi trong vòng 1 ngày
@devin-ai-integration đang làm issue này rồi.
Từ ngày 15/11/2026.
- #2263 của @devin-ai-integration — đang mở
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 59
- Fork
- 20
- Merge trung bình
- 10 giờ 23 phút
- Pull request đã merge (30 ngày)
- 897
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Open-MBEE/OpenSysML
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
A model's parse is still paid cold in every process; the library record cache does not cover itĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Open-MBEE/OpenSysML
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
AvengeMedia/DankMaterialShell#4301 · 1 bình luận ·
-
priority: p2 type: bug type: docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
googleapis/google-cloud-swift#1641 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
krakenhavoc/cmd_and_ctrl#5853 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flaky test: TestTRTAsyncPrefillFailures/transport reads the token load before prefillDone has released itCó thể đã có người làm @Jackmeson1 đã nhận hôm nay. Đang mởarea/cicd area/gateway kind/misc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
vllm-project/aibrix#3488 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày