Skip to content

[CLI] Add a --trigger-mode full|delta flag to mental-models update - #3513

Open
mdbenito wants to merge 1 commit into
vectorize-io:mainfrom
mdbenito:cli/mental-model-update-mode-flag
Open

[CLI] Add a --trigger-mode full|delta flag to mental-models update#3513
mdbenito wants to merge 1 commit into
vectorize-io:mainfrom
mdbenito:cli/mental-model-update-mode-flag

Conversation

@mdbenito

Copy link
Copy Markdown
Contributor

This PR adds --trigger-mode full|delta to hindsight mental-model update, propagating it to the trigger.mode field of the PATCH endpoint.

Note that passing a trigger flag replaces the stored trigger configuration, so that unspecified trigger settings reset to their API defaults. I found this to be more consistent with the rest of the cli. Also, working around this behaviour of the PATCH endpoint would require a GET first.

The new flag composes with the existing --trigger-refresh-after-consolidation.

This PR also adds some test coverage for trigger override construction and serialization, a live round-trip integration test, and updates the OpenAPI coverage note.

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.

1 participant