Query: add `symbolKind` and requirement `text` to the queryable property set
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 56/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, grpc
- Lĩnh vực
- backend-api-design, databases
Hướng nghiên cứu
Start with internal/semantic/query/properties.go and the query property tests to see how row properties are resolved; then check internal/frontend/grpc/query_test.go and docs/reference/wire-contract.md. Add tests for requirement text, symbolKind on a transition and anonymous action, and continued rejection of unknown properties. Done means the query results and documented closed property list match the acceptance criteria.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Disclaimer, this issue was detected and written by an AI
Summary
Two browsing/metrics projections are forced onto N+1 work or text scraping because
the query property set is closed and lacks them:
- no
symbolKind, so a listing that has a row's@type(the metaclass) still
needs oneLookupSymbolper row to learn the symbol kind, and a positional
…::@1id cannot be looked up at all; - no requirement
text, so sentence metrics parse report output instead of
querying the requirement's owntextfeature.
documentation and textualRepresentation are not substitutes: they are the
KerML doc/rep bodies, not RequirementUsage::text.
Current state
internal/semantic/query/properties.gohas nosymbolKindand notextcase.docs/reference/wire-contract.md:1044states the closed set:
@id, @type, body, declaredName, declaredShortName, documentation, elementId, general, isAbstract, isIndividual, language, locale, multiplicityLower, multiplicityUpper, name, owner, payloadArgument, qualifiedName, receiverArgument, satisfiedRequirement, satisfyingFeature, senderArgument, shortName, textualRepresentation, type.SymbolInfo.Kindexists onGetSymbol(api.md:491), so the fact is known;
only the query projection is missing.
Proposal
symbolKind— theSymbolKindname aGetSymbolanswers (PartDefinition,
StateUsage, …), for every row@typecannot distinguish (a TransitionUsage,
an anonymous ActionUsage). Same value for every metaclass; empty only where the
service genuinely has no symbol.text— the requirement's declaredtextvalue as a string, on
RequirementDefinition/RequirementUsagerows; absent when the requirement
states none. Keepdocumentation/textualRepresentationunchanged.
Both are additive: the closed list grows, unknown property answers stay for
everything else.
Tests
internal/semantic/queryproperty tests: a requirement with
text = "…"and one without; atransitionand an anonymous action in a
state machine answersymbolKind(TransitionUsage/ActionUsage) without a
LookupSymbol.internal/frontend/grpc/query_test.go: the two properties over a fixture,
andunknown propertystill refuses a name not in the set.docs/reference/wire-contract.md: extend the closed list.
Acceptance
- A scoped query selecting
symbolKindnames every row's kind, including
rows whose id is positional. -
textanswers requirement text and is absent otherwise. - The wire-contract property list and its refusal test match the code.
- 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
-
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
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
projectdiscovery/httpx#2735 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
NuGet registry builds every URL from ROOT_URL, ignoring the host the client usedCó thể đã có người làm @gritse đã nhận hôm nay. Đang mở
Độ 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