Skip to content

[APP-15326] Add config_json to RobotPart and UpdateRobotPartRequest#821

Open
tgritter wants to merge 3 commits intomainfrom
APP-15326/robot-config-json-field-order
Open

[APP-15326] Add config_json to RobotPart and UpdateRobotPartRequest#821
tgritter wants to merge 3 commits intomainfrom
APP-15326/robot-config-json-field-order

Conversation

@tgritter
Copy link
Member

@tgritter tgritter commented Mar 9, 2026

Add config_json field to RobotPart and UpdateRobotPartRequest to support preserving user-defined JSON field ordering in machine configs. BSON does not guarantee map key order on read-back, so the app layer uses this field to store and return the raw JSON exactly as written.

Links

@github-actions github-actions bot added the safe to test committer is a member of this org label Mar 9, 2026
@tgritter tgritter changed the title [APP-15326] Add config_json to RobotPart and UpdateRobotPartRequest [APP-15326] Add config_json to RobotPart and UpdateRobotPartRequest Mar 9, 2026
@tgritter tgritter added the ready-for-protos add this when you want protos to compile on every commit label Mar 9, 2026
@tgritter tgritter marked this pull request as ready for review March 12, 2026 13:25
optional google.protobuf.Timestamp last_known_update = 4;
// config_json is the raw JSON string of the robot config, preserving user-defined key order.
// When set, this takes precedence over robot_config for storage purposes.
string config_json = 5;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string config_json = 5;
optional string robot_config_json = 5;

Couple things:

  • Prefix with robot_ to align it with the related protobuf struct name.
  • I think this should be optional based on the "when set" phrase? I think that's more idiomatic for protos than handling it as an empty string.

@tgritter tgritter force-pushed the APP-15326/robot-config-json-field-order branch from 9f3ebc7 to 6dc6090 Compare March 13, 2026 17:32
@tgritter tgritter force-pushed the APP-15326/robot-config-json-field-order branch from 775cb54 to eb55464 Compare March 13, 2026 18:59
@tgritter tgritter force-pushed the APP-15326/robot-config-json-field-order branch from 0626bf9 to 070d0f6 Compare March 18, 2026 21:43
@tgritter tgritter requested a review from edobranov March 18, 2026 23:32
@tgritter tgritter added safe to test committer is a member of this org and removed safe to test committer is a member of this org labels Mar 18, 2026
Copy link
Member

@edobranov edobranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-protos add this when you want protos to compile on every commit safe to test committer is a member of this org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants