Skip to content

fix(connect): stop discarding connection configuration on update - #111

Merged
f3rdy merged 2 commits into
masterfrom
fix/issue-108-connection-write-path
Aug 13, 2026
Merged

f3rdy merged 2 commits into
masterfrom
fix/issue-108-connection-write-path

Conversation

@f3rdy

@f3rdy f3rdy commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #108.

Replaces #109, which GitHub closed when its base branch was deleted on merge.

1. connect add no longer resets what it does not ask for

The command prompts for four values and used to build a fresh Connection from
them, so updating a URL, email or project key silently reset tempo_enabled,
custom_fields, ai_prompt, board_id and the cache settings to their defaults -
on the only supported edit path, and precisely on the connections carrying the most
configuration.

The stored connection is now carried forward and merged with the values that were
actually given, then validated by Pydantic as before.

2. board_id is persisted

_serialize_connection() did not include board_id, so it was dropped on every
save. It now round-trips like the other optional fields: written when set, omitted
when unset.

Verification

Before, on an isolated config, updating a fully configured connection produced:

tempo_enabled = false   # ai_prompt, custom_fields, board_id gone

After, with only email and project key changed:

email = "new@example.com"
project_key = "NEW"
tempo_enabled = true
board_id = 42
ai_prompt = "house rules"

[connections.custom_fields.system]
field_id = "customfield_10001"

992 tests pass. New regression tests: a CLI update of a fully configured connection
asserting the untouched fields survive, plus a save/load round-trip for board_id
and its omission when unset.

f3rdy added 2 commits August 13, 2026 16:40
_serialize_connection() never wrote board_id, so a board configured for
sprint operations was dropped on every save. It now round-trips like the
other optional fields: written when set, omitted when unset.

Refs #108
"connect add" rebuilt the connection from the four values it prompts for, so
updating a URL, email or project key silently reset Tempo, custom fields, the
board, the AI prompt and the cache settings to their defaults. The stored
connection is now carried forward and only the given values are changed.

Fixes #108
@f3rdy
f3rdy merged commit a04e3ee into master Aug 13, 2026
5 checks passed
@f3rdy
f3rdy deleted the fix/issue-108-connection-write-path branch August 13, 2026 16:53
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.

connect add on an existing connection discards configured fields; board_id is never persisted

1 participant