Repository navigation
Conversation
_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
Contributor
Author
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.
Fixes #108.
Stacked on #107 (
feat/issue-106-description-dialect) because both touchcli/connect.pyandconfig/settings.py; GitHub retargets this to master once#107 merges.
1.
connect addno longer resets what it does not ask forThe command prompts for four values and used to build a fresh
Connectionfromthem, so updating a URL, email or project key silently reset
tempo_enabled,custom_fields,ai_prompt,board_idand 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_idis persisted_serialize_connection()did not includeboard_id, so it was dropped on everysave. 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:
After, with only email and project key changed:
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_idand its omission when unset.