-
Notifications
You must be signed in to change notification settings - Fork 536
feat: add NangoConnection<I> extractor for nango-powered integration routes #3962
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
Merged
+670
−188
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
caafc50
feat: add NangoConnection<I> extractor for nango-powered integration …
devin-ai-integration[bot] 90966be
fix: add on_conflict param for PostgREST upsert on nango_connections
devin-ai-integration[bot] cb2b63c
fix: check success flag before deleting nango connection on webhook
devin-ai-integration[bot] c95f899
fix: URL-encode query params in PostgREST requests
devin-ai-integration[bot] 57d2c4d
refactor: extract Supabase DB operations into supabase.rs
devin-ai-integration[bot] 45d8b73
fix: resolve merge conflict with main (stt/llm rate-limit refactor)
devin-ai-integration[bot] 68c1bb5
fix: return 500 on transient DB failures in webhook, add deletion suc…
devin-ai-integration[bot] b174123
fix: remove duplicate supabase_service_role_key, gracefully handle mi…
devin-ai-integration[bot] 8625fde
Merge remote-tracking branch 'origin/main' into devin/1771044867-nang…
devin-ai-integration[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,6 @@ | ||
| mod config; | ||
| mod error; | ||
| mod openapi; | ||
| mod routes; | ||
| mod state; | ||
|
|
||
| pub use config::CalendarConfig; | ||
| pub use openapi::openapi; | ||
| pub use routes::router; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,24 @@ | ||
| use hypr_api_env::NangoEnv; | ||
| use hypr_api_env::{NangoEnv, SupabaseEnv}; | ||
|
|
||
| #[derive(Clone)] | ||
| pub struct NangoConfig { | ||
| pub nango: NangoEnv, | ||
| pub supabase_url: String, | ||
| pub supabase_anon_key: String, | ||
| pub supabase_service_role_key: Option<String>, | ||
| } | ||
|
|
||
| impl NangoConfig { | ||
| pub fn new(nango: &NangoEnv) -> Self { | ||
| pub fn new( | ||
| nango: &NangoEnv, | ||
| supabase: &SupabaseEnv, | ||
| supabase_service_role_key: Option<String>, | ||
| ) -> Self { | ||
| Self { | ||
| nango: nango.clone(), | ||
| supabase_url: supabase.supabase_url.clone(), | ||
| supabase_anon_key: supabase.supabase_anon_key.clone(), | ||
| supabase_service_role_key, | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.