[PR #1169] [CLOSED] fix: always serialize empty params in procedure export #9271

Closed
opened 2026-05-03 05:27:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/moghtech/komodo/pull/1169
Author: @litlmike
Created: 2/8/2026
Status: Closed

Base: mainHead: fix-issue-672


📝 Commits (1)

  • 1b3115b fix: always serialize empty params in procedure export

📊 Changes

7 files changed (+17 additions, -1 deletions)

View changed files

📝 bin/core/src/sync/toml.rs (+5 -1)
📝 client/core/rs/src/api/execute/action.rs (+1 -0)
📝 client/core/rs/src/api/execute/build.rs (+1 -0)
📝 client/core/rs/src/api/execute/deployment.rs (+2 -0)
📝 client/core/rs/src/api/execute/procedure.rs (+1 -0)
📝 client/core/rs/src/api/execute/repo.rs (+3 -0)
📝 client/core/rs/src/api/execute/stack.rs (+4 -0)

📄 Description

When serializing procedure stages to TOML, empty string fields (like pattern) were dropped by toml_pretty's skip_empty_string option. This caused params to be empty/missing, failing deserialization with missing field params.

Two fixes:

  1. Disable skip_empty_string when serializing procedure stages so fields like pattern = "" are preserved in TOML output.
  2. Add #[serde(default)] to pattern fields on all Batch* execution structs as defense-in-depth.

Closes #672


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/moghtech/komodo/pull/1169 **Author:** [@litlmike](https://github.com/litlmike) **Created:** 2/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-issue-672` --- ### 📝 Commits (1) - [`1b3115b`](https://github.com/moghtech/komodo/commit/1b3115bd9638cfb47fd54979332df2a3b99246f0) fix: always serialize empty params in procedure export ### 📊 Changes **7 files changed** (+17 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `bin/core/src/sync/toml.rs` (+5 -1) 📝 `client/core/rs/src/api/execute/action.rs` (+1 -0) 📝 `client/core/rs/src/api/execute/build.rs` (+1 -0) 📝 `client/core/rs/src/api/execute/deployment.rs` (+2 -0) 📝 `client/core/rs/src/api/execute/procedure.rs` (+1 -0) 📝 `client/core/rs/src/api/execute/repo.rs` (+3 -0) 📝 `client/core/rs/src/api/execute/stack.rs` (+4 -0) </details> ### 📄 Description When serializing procedure stages to TOML, empty string fields (like `pattern`) were dropped by toml_pretty's `skip_empty_string` option. This caused params to be empty/missing, failing deserialization with `missing field params`. Two fixes: 1. Disable `skip_empty_string` when serializing procedure stages so fields like `pattern = ""` are preserved in TOML output. 2. Add `#[serde(default)]` to `pattern` fields on all Batch* execution structs as defense-in-depth. Closes #672 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-03 05:27:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#9271