Repository navigation
Atlas 0.4.0: enum labels on Cypher tables, every record row and static properties in Current - #2
Merged
Merged
Conversation
A Cypher table column is only a name, so enumeration-bound properties showed raw keys (53 instead of "Axis servo fault") and dashboards needed hand-made value mappings. The plugin now reads the query text: node patterns give each variable its type, and RETURN items that are plain property reads (p.Prop, p.Prop.Value, optional AS alias) are looked up against the domain's enumerations. Matching columns get the same value mappings the Data view attaches. Anything else is left as returned. Live-checked on the local cesmii-workshop domain: AlarmCode, Program and ControllerMode columns carry their labels; FeedRate and entityId do not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two gaps kept dashboards on hand-written Cypher: - A multi-row record (MaintainX LiveOpenWorkOrders) showed one work order per machine. Atlas's node read returns one row, and so does an UNWIND over an untyped (n); MATCH (n:Type) ... UNWIND returns every current row (live-checked: CNC03 #21, #27, #30, as in MaintainX). Current now re-reads record properties that way and gives one table row per record row (Columns), ordered by the row's SequentialId, or numbered parts (Rows). - Static properties (Specialty, SerialNumber) were neither offered in the tree nor read for type and nested picks. The tree resource now lists them per instance; the Data editor shows them, marked "fixed value", in Current mode only, and expandPicks accepts them for Current. Trend is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d static properties in Current Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three changes that let dashboards use picker selections instead of hand-written Cypher, and Atlas enumerations instead of hand-made value mappings.
RETURN p.AlarmCode.Value AS Alarmshowed53LiveOpenWorkOrdersshowed one work order per machineSpecialty,SerialNumbercould not be picked, and type or nested picks dropped themWhy the record fix reads with a typed UNWIND
Atlas's node read (
MATCH (n) ... RETURN n) returns one row of a multi-row record, and so doesUNWINDover an untyped(n).MATCH (n:CNCMachine) ... UNWIND n.LiveOpenWorkOrdersreturns every current row. Live-checked on Atlas 2.0.1 against MaintainX: CNC03 gives #21, #27, #30, the same open work orders as MaintainX.Testing
go vet,go test ./pkg/...(new tests:cypherenums_test.go,records_test.go), gofmt clean.withStatictest), production build.cesmii-workshopdomain: AlarmCode, Program, ControllerMode and AlarmActive columns labelled from Atlas enums; 12 open work orders across CNC01–CNC05 matching MaintainX; Technician Specialty read through a type selection. The CESMII workshop dashboard now uses selections for every panel except the cross-type attention list.Version bumped to 0.4.0 (package.json, package-lock.json, CHANGELOG). After merge, tagging
atlas-v0.4.0publishes the pre-release.🤖 Generated with Claude Code