-
Notifications
You must be signed in to change notification settings - Fork 8
Connection validation and making expires_at optional #244
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
👍 Looks good to me! Reviewed everything up to 40a6400 in 2 minutes and 24 seconds
More details
- Looked at
89
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. packages/api/proxyHandler.ts:17
- Draft comment:
Theexpires_at
field is now optional in thezOauthCredentials
schema, but this code assumes it is always present. Consider handling the case whereexpires_at
is undefined to avoid potential runtime errors. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_z30jVbX9rgx38nUV
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
❌ Changes requested. Incremental review on a0e3eaa in 39 seconds
More details
- Looked at
63
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_9zSk6wCSJgv6MEqP
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@@ -205,15 +208,16 @@ export function makeDBService({ | |||
return zRaw.pipeline.parse(pipe) | |||
}) | |||
|
|||
const getConnectionExpandedOrFail = (id: Id['conn']) => | |||
const getConnectionExpandedOrFail = (id: Id['conn'], skipValidation = false) => | |||
getConnectionOrFail(id).then(async (conn) => { |
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.
The getConnectionExpandedOrFail
function should pass the skipValidation
parameter to getConnectionOrFail
to ensure consistent behavior.
getConnectionOrFail(id).then(async (conn) => { | |
getConnectionOrFail(id, skipValidation) |
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.
👍 Looks good to me! Incremental review on d069ddc in 35 seconds
More details
- Looked at
122
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. packages/engine-backend/services/dbService.ts:213
- Draft comment:
TheskipValidation
parameter should be passed togetConnectionOrFail
to ensure consistent behavior when validation is skipped. Please update the call togetConnectionOrFail(id, skipValidation)
. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_dWBk4LFDjqFUIECl
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Enhances connection validation by introducing optional
expires_at
in OAuth credentials and adding askipValidation
parameter for flexible schema validation.zOauthCredentials
schema inoauthConnector.ts
to handle optionalexpires_at
in OAuth credentials.proxyHandler.ts
to check for optionalexpires_at
in credentials.connectionRouter.ts
to passtrue
forskipValidation
ingetConnectionOrFail()
andgetConnectionExpandedOrFail()
.skipValidation
parameter togetConnectorConfigOrFail()
,getIntegrationOrFail()
,getConnectionOrFail()
,getPipelineOrFail()
,getConnectionExpandedOrFail()
, andgetPipelineExpandedOrFail()
indbService.ts
.skipValidation
to bypass schema validation when necessary.oauthConnector.ts
to usezOauthCredentials
inoauthBaseSchema
.proxyHandler.ts
forcredentialsExpired
check.This description was created by
for d069ddc. It will automatically update as commits are pushed.