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

fix: support connection lookup by ID #548

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Conversation

adityathebe
Copy link
Member

@moshloop
Copy link
Member

Isn't this already done via https://github.com/flanksource/duty/blob/main/connection.go#L67 ? or maybe we just need to handle the connection:// prefix ?

@adityathebe
Copy link
Member Author

@moshloop ya duty already handles it. However, incident commander was returning nil if the connection name didn't have connection:// prefix.

@moshloop
Copy link
Member

@adityathebe I think then lets add the support for the prefix in duty

@moshloop moshloop closed this Sep 12, 2023
@adityathebe
Copy link
Member Author

@moshloop This PR is still needed though. Otherwise, HydrateConnection will never hit duty when a UUID is provided.

@moshloop moshloop reopened this Sep 12, 2023
@moshloop
Copy link
Member

@adityathebe - ok but then the handling of nils and uuid's should still be in duty which should accept either a uuid or a connection string

@adityathebe
Copy link
Member Author

Related: flanksource/duty#275

@moshloop moshloop merged commit 98d9197 into main Sep 13, 2023
5 checks passed
@moshloop moshloop deleted the fix/connection-lookup-by-id branch September 13, 2023 11:56
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