Skip to content

rust(fix): allow partial sift-cli config updates#556

Merged
wei-qlu merged 4 commits into
mainfrom
rust/individual-config-update
May 12, 2026
Merged

rust(fix): allow partial sift-cli config updates#556
wei-qlu merged 4 commits into
mainfrom
rust/individual-config-update

Conversation

@wei-qlu
Copy link
Copy Markdown
Contributor

@wei-qlu wei-qlu commented May 11, 2026

Summary

sift-cli config update with a subset of --grpc-uri / --rest-uri / --api-key individually printed "Nothing to update." and exited. is_update_empty joined the three "missing flag" checks with || instead of &&, firing the early return whenever any flag was absent. Flipped the operator and added unit tests for the empty / partial / full cases.

Validation

Unit and manual tests

image image

@wei-qlu wei-qlu marked this pull request as ready for review May 11, 2026 21:11
Copy link
Copy Markdown
Collaborator

@solidiquis solidiquis left a comment

Choose a reason for hiding this comment

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

move test to separate file

@wei-qlu wei-qlu requested a review from solidiquis May 11, 2026 23:44
@wei-qlu wei-qlu force-pushed the rust/individual-config-update branch from fca02af to 75ae414 Compare May 12, 2026 00:11
solidiquis
solidiquis previously approved these changes May 12, 2026
@solidiquis solidiquis changed the title Rust(fix): allow partial sift-cli config updates rust(fix): allow partial sift-cli config updates May 12, 2026
@wei-qlu wei-qlu merged commit f45a797 into main May 12, 2026
20 checks passed
@wei-qlu wei-qlu deleted the rust/individual-config-update branch May 12, 2026 00:23
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