Repository navigation
M2B: canonical indexed DataSets with bounded inline DO/DA engineering inspection - #160
Conversation
…xpansion Index canonical DO/DA references during model creation for O(1) average FC-qualified lookup instead of scanning all IED nodes for each DataSet row. Render a dense DataSet member list with single-click selection, exactly one FC tag, lazy bounded (64) inline DO→DA expansion, and no automatic MMS traffic. Show only measured/configured data already in canonical model. Correct Data Model detail role fallback and extend 60k-node + QML contract QA.
Index IEC LD/LN.DO.DA references alongside MMS LD/LN$FC$DO$DA without duplicating canonical nodes. Propagate genuine MMS read-value change notifications into visible DataSet rows and currently expanded FC-matched attributes. Add reference-alias and value authority regressions.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3e31a9157
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| readonly property var parts: root.memberParts(modelData) | ||
| readonly property var resolved: root.memberNode(parts.reference) |
There was a problem hiding this comment.
Preserve the FC when resolving whole-DO values
When a whole-DO member is qualified with an FC such as [CF], this call discards parts.fc before resolving the node. nodeForReference consequently returns the DO's generic projection, whose summary selects stVal, mag, or another preferred child without FC filtering; once that child has been read, the row can display an ST/MX value that is not part of the DataSet even though the expanded children are correctly filtered to CF. Resolve the summary using the member FC, or display unknown rather than a value from another constraint.
AGENTS.md reference: AGENTS.md:L304-L307
Useful? React with 👍 / 👎.
| const int limit = std::min(64, maximumChildren); | ||
| for (const int nodeIndex : found.value()) { | ||
| const auto& object = nodes_.at(nodeIndex); | ||
| if (object.kind != NodeKind::dataObject) continue; | ||
| result.reserve(std::min(limit, int(object.children.size()))); | ||
| for (const int child : object.children) { | ||
| const auto& attribute = nodes_.at(child); | ||
| if (!fc.isEmpty() && | ||
| attribute.functionalConstraint.compare(fc, Qt::CaseInsensitive) != 0) | ||
| continue; | ||
| result.push_back(nodeMap(child)); | ||
| if (result.size() >= limit) return result; |
There was a problem hiding this comment.
Report when FCDA expansion is truncated
When a whole-DO member contains more than 64 attributes matching the selected FC, this unconditional limit returns only the first 64 while the QML renders them as a complete expansion and provides no truncation indicator. Valid later attributes are therefore silently hidden from engineering inspection; keep the bound, but return total/truncated metadata and show that the projection is incomplete.
AGENTS.md reference: AGENTS.md:L112-L116
Useful? React with 👍 / 👎.
Milestone target
Direct follow-up to integrated M2A PR #159 (
main6081df2). Improve the native Qt Workbench DataSets/Data Model engineering workflow toward the supplied IEDScout reference without introducing a second MMS/SCL semantic tree.Implementation
MmsLiveTreeModel: canonical reference index built once and cleared on document lifecycle;nodeForReferencenow indexed rather than a full 60k-node scan for every visible DataSet row.[FC]suffixes, maintaining exact DO/DA identity; FC filtering of expanded canonical DO children.dataSetChildrenForReferencewith hard cap of 64 children per expansion; reference is canonical and no network read is made on navigation.BrowserDataSetPane: dense member list, one FC tag, single-click overview selection, in-place expandable DO→DA and actual current-value/unknown display, and lazy payload creation only for the selected expanded member.childCountrole usage in Data Model QML.Engineering-data rules
—for missing value. Do not fabricate IEC 61850q,t, validity flags, timestamps, or engineering units.[ST], show only child DAs with matching FC; do not pretend unselected attributes belong to that DataSet.Acceptance
CI discipline
One atomic commit; avoid repeated small pushes and unrelated workflows. Follow-on quality/timestamp bit-level rendering requires typed evidence and is not claimed in M2B-1.