Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Allow updates to the default profile #452

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

nicoloboschi
Copy link
Member

Currently it's not possible to update the default profile. This is not very handy. There's no strong reason to block the update
Changes:

  • Now the default profile can be modified with update and import. It still cannot be deleted

@@ -42,7 +42,8 @@ public class ImportProfileCmd extends BaseProfileCmd {

@CommandLine.Option(
names = {"-u", "--update"},
description = "Allow updating the profile if it already exists")
description =
"Allow updating the profile if it already exists. Note that the configuration will be overwritten and NOT merged")
Copy link
Member

Choose a reason for hiding this comment

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

what do you mean with "merged" ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I mean that all fields will be overwritten even if they are blank.
If the profile has a token set and you import with the same name but with a blank string, it will override the token with the blank string

Copy link
Member

Choose a reason for hiding this comment

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

can't we make it more "merge" like ?
it seems awkward,
it should be easy to implement, as you already have the previous version of the profile

Copy link
Member Author

Choose a reason for hiding this comment

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

this is "import", you can use update for that

@nicoloboschi nicoloboschi reopened this Sep 20, 2023
@eolivelli eolivelli merged commit 6701aae into main Sep 20, 2023
15 of 16 checks passed
@eolivelli eolivelli deleted the allow-default-profile-changes branch September 20, 2023 13:55
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
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.

None yet

2 participants