Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Jan 30, 2026

The updateDeploymentMetadata endpoint now properly merges incoming fields with existing metadata instead of replacing the entire object. This prevents accidental data loss when updating only specific fields like credential_id or networking settings.

  • Parse raw JSON to detect which fields were actually sent
  • Only update fields that are present in the request
  • Preserve existing values for fields not included in the update
  • Add comprehensive tests for merge behavior

Copy link

@sourceant sourceant bot left a comment

Choose a reason for hiding this comment

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

Review complete. No specific code suggestions were generated. See the overview comment for a summary.

The updateDeploymentMetadata endpoint now properly merges incoming
fields with existing metadata instead of replacing the entire object.
This prevents accidental data loss when updating only specific fields
like credential_id or networking settings.

- Parse raw JSON to detect which fields were actually sent
- Only update fields that are present in the request
- Preserve existing values for fields not included in the update
- Add comprehensive tests for merge behavior

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the fix/metadata-update-partial-merge branch from 9236d54 to 5f52195 Compare January 30, 2026 14:52
Copy link

@sourceant sourceant bot left a comment

Choose a reason for hiding this comment

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

Review complete. No specific code suggestions were generated. See the overview comment for a summary.

@nfebe nfebe merged commit de2d479 into main Jan 30, 2026
5 checks passed
@nfebe nfebe deleted the fix/metadata-update-partial-merge branch January 30, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants