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

views update only overwrites existing connections #151

Open
bderrly opened this issue Mar 5, 2024 · 0 comments
Open

views update only overwrites existing connections #151

bderrly opened this issue Mar 5, 2024 · 0 comments

Comments

@bderrly
Copy link
Contributor

bderrly commented Mar 5, 2024

If I have a view:

$ humioctl views show bderrly
   VIEW   | REPOSITORY | QUERY PREFIX  
+---------+------------+--------------+
  bderrly | foo       | bderrly       

and I run humioctl views update bderrly --connection "bar=bderrly"

I see:

$ humioctl views show bderrly
   VIEW   | REPOSITORY | QUERY PREFIX  
+---------+------------+--------------+
  bderrly | bar   | bderrly       

Either the update action should be additive by default or there should be a flag to signal intent to add another connection, e.g. humioctl views update bderrly --add-connection "bar=bderrly".

Of course this opens up the question of how to handle removing a connection. This could be handled with a flag to signal intent to delete the connection, e.g. humioctl views update bderrly --del-connection "foo".

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

No branches or pull requests

1 participant