Query: add `symbolKind` and requirement `text` to the queryable property set
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 56/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- go, grpc
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 59
- 派生
- 20
- 平均合并
- 10 小时 23 分钟
- 30 天内合并 PR
- 897
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Open-MBEE/OpenSysML 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 28/100
维护者通常 1 天内回复
查看 Open-MBEE/OpenSysML 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
krakenhavoc/cmd_and_ctrl#5853 ·
维护者通常 1 天内回复
-
flaky test: TestTRTAsyncPrefillFailures/transport reads the token load before prefillDone has released it可能已有人在做 @Jackmeson1 今天认领。 未关闭area/cicd area/gateway kind/misc
难度 2/5 1-3 小时 新手友好度 85/100
vllm-project/aibrix#3488 · 2 条评论 ·
维护者通常 1 天内回复
-
Type: Bug
难度 2/5 1-3 小时 新手友好度 82/100
projectdiscovery/httpx#2735 ·
维护者通常 1 天内回复
-
NuGet registry builds every URL from ROOT_URL, ignoring the host the client used可能已有人在做 @gritse 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复