Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Query: report the elementId Convert writes, so results join a converted graph

クローズ
#733 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

Start with Query's selectable-property handling and QueryResultElement.id, then trace Convert to api-json using the supplied ParseSources example. Make elementId selectable and verify it returns the declared, derived qualified-form, or normative library id that Convert writes, so Query and Convert results can be joined without client-side derivation.

索引モデルが issue の本文から書いたものです。

説明

A Query result can't be matched to the element Convert writes for it. Each reports a different identity, and the id Convert writes is not a queryable property.

// lib.sysml
package Lib { part def Engine { attribute mass : ScalarValues::Real; } }
// app.sysml
package App { private import Lib::*; part e : Engine; }

After ParseSources of both documents (develop 62f2442c3):

element Query (select: ["@id", "qualifiedName"]) Convert to api-json, @id
Lib Lib Lib
Lib::Engine Lib::Engine Lib__Engine
Lib::Engine::mass Lib::Engine::mass Lib__Engine__mass
App::e App::e App__e
ScalarValues::Real (scope: ["ScalarValues::Real"]) ScalarValues::Real 14c0aa22-5489-59b5-b438-ded26e83ba31 (normative id)

QueryResultElement.id is documented as the qualified name, "the identity this service reports", so this is by design. But select: ["elementId"] is refused (unknown query property "elementId"), and the qualified name maps to the written @id only through the writer's escaping. For a library element it doesn't map at all, since that id is a hash. A declared ElementId or -id uuid also changes the written id.

Request. Make elementId a queryable (selectable) property. It would report the id Convert writes for the element under the same id form: the declared id, the derived qualified-form id, or a library element's normative id. The two answers can then be joined without re-deriving ids on the client.

主要言語
Go
スター
33
フォーク
8
平均マージ
10時間 10分
マージ済み PR(30日)
634

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Open-MBEE/OpenSysML のほかの issue

Open-MBEE/OpenSysML の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。