-
Notifications
You must be signed in to change notification settings - Fork 9
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
v0.2.0 #84
v0.2.0 #84
Conversation
@alexluong I much prefer:
Over
I also think we should support the following:
|
Can we look into the root cause as to why
|
👍 Make sense to only display the one that can generate events |
Yes, this is on my TODO list. I think it has something to do with the Cobra package or how Go flags work but haven't looked further. It's pretty hard to Google tho 😅 |
See https://stackoverflow.com/a/2755803/39904 for the reasoning behind the *. User's can do |
Thanks @leggetter! How would you suggest we go about this then? |
@leggetter @alexbouchardd I pushed some new commits that addressed your feedback, just have the |
Right |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving but waiting on final updates
The code should already work with both of these! @leggetter please feel free to QA and merge whenever you're ready. I'm happy with where things are so we should be good to move forward here. |
e7099c7
to
2bc54c5
Compare
@alexluong I still think this will confuse people, but we can publish and share see what feedback we have. One last question. When I run
All connected. However, I only get the first two. Why is that? I can see we have a temp limit on the sources we query when it feels like we should impose that on the number of sources we can listen to. |
@leggetter That's fair. What do you think is a better DX though? We can potentially have a more "elaborate" mode where we showcase the process:
The current logic is we query 10 sources with Hookdeck's default sort & filter logic. Most likely that request yielded you the 10 sources, 8 of which without a CLI destination. Unfortunately, we can't query something like "give me 10 sources with connections to CLI destination", I don't think. |
@alexluong, is there any reason we can't query 100 sources but restrict the number of Sources we connect to the first 10 we find? Is the problem here that we'll potentially be making 101 requests? 1 to request the sources and potentially 100 to filter through the connections with CLI destinations. |
@leggetter yes, that is essentially the case. The only difference is we'll make 101 requests, 100 request to query for sources (because we can only send 1 name) and 1 request to query for connections. |
Adds --cli-path and changes behavior to remove connection name and path terminal interactivity
@alexluong - would you mind giving the updates on the merge of #92 into this a review and update? |
@leggetter yes, I'll take a deeper look tomorrow. Is there anything you'd like me to update? |
Nothing functionally. So:
|
@leggetter Got it, so moreso code polishing & making sure there's no issue and just keep the functionality the same as laid out in #92. |
Yes, 👍 Thank you! |
Adds support for:
Listening on multiple sources #70
Notes: Based on the way our CLI processes argument, when running
hookdeck listen 1234 *
, it will pass every files in the directory as arguments, causing a validation issue. Therefore, we need to dohookdeck listen 1234 '*'
for it to work. Curious what yall think about this. It may make more sense to change it to a flag likehookdeck listen 1234 --all
orhookdeck listen 1234 --all-source
.Defaults for optional
listen
commandconnection
andpath
argumentsThis removes the interactivity prompts for the connection "label" and "path".
See #92.
Ability to set the CLI Path using
--cli-path
flagSee #92.