-
Notifications
You must be signed in to change notification settings - Fork 115
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
[content-nodes] Fill provider_visibility
in data_source_nodes
from connectors
-> api/v1
#9988
Conversation
provider_visibility
in data_source_nodes
provider_visibility
in data_source_nodes
from connectors
-> api/v1
|
4fdf933
to
b7371f8
Compare
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.
LGTM; nit on deriving type from the schema
@@ -56,6 +56,7 @@ export type ConnectorType = { | |||
*/ | |||
export type ConnectorPermission = "read" | "write" | "read_write" | "none"; | |||
export type ContentNodeType = "file" | "folder" | "database" | "channel"; | |||
export type ProviderVisibility = "public" | "private"; |
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.
nit: if you have a schema, the type should be derived from the schema
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.
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.
kinda feel like we have to duplicate out of consistency
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.
Indeed the SDK declares it's own types and they should not be used outside of the SDK itself : they define the public API contract.
By checking that internal types keeps matching the public types (because they are used as output of v1/ enpoints), we ensure that we don't break anything.
Does that make sense ?
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.
yes very clear, thanks!
b7371f8
to
1d6e1ba
Compare
1d6e1ba
to
beabc90
Compare
tagged @Fraggle because I got a scary dangerJs regarding sdks js |
That's fine IMO because you're acting on an undocumented endpoint that should not be used, even by the extension You can merge, we can get Fraggle's opinion after and course correct--which I'm confident we won't have to & I'm taking responsibility |
It's double fine:
|
Description
providerVisibility
, passing fromconnectors
to/api/v1
and ultimately tocore
(which already supports it in its API).types
instead of using"private" | "public"
repeatedly.Risk
Deploy Plan