-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Connector validation #4016
Connector validation #4016
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
error_msg = str(e) | ||
queue.put(error_msg) # Send the exception to the parent process | ||
|
||
sys.exit(256) # use 256 to indicate a connector validation error |
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.
this ties the job client to connectors ... is there a way to separate this? Also the 256 is an issue as mentioned earlier.
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.
Updated to be more in line with what we'd expect here!
@@ -283,6 +287,7 @@ function Main({ ccPairId }: { ccPairId: number }) { | |||
status={ccPair.last_index_attempt_status || "not_started"} | |||
disabled={ccPair.status === ConnectorCredentialPairStatus.PAUSED} | |||
isDeleting={isDeleting} | |||
isInvalid={ccPair.status === ConnectorCredentialPairStatus.INVALID} |
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.
Should isDeleting and isInvalid be part of a single enum?
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.
Think this is fair generally- lots of re-use across the board
: isDisabled | ||
? "Connector must be re-enabled before indexing" | ||
: undefined | ||
isInvalid |
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.
Do we like this pattern? I find it hard to read.
17a68ed
to
090c7c0
Compare
090c7c0
to
3cfeb16
Compare
0743681
to
d46bc78
Compare
907a0d3
to
8ea54e1
Compare
Description
Adds connector validation for ccpair creation / credential swapping.
New enum for ccpair status:
invalid
- marks ccpairs which have an invalid configuaitonScreen.Recording.2025-02-16.at.5.58.02.PM.mov
How Has This Been Tested?
[Describe the tests you ran to verify your changes]
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.