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
workspaceId should be part of spec request #12112
Conversation
| @@ -28,17 +29,19 @@ function useGetService(): DestinationDefinitionSpecificationService { | |||
|
|
|||
| export const useGetDestinationDefinitionSpecification = (id: string): DestinationDefinitionSpecification => { | |||
| const service = useGetService(); | |||
| const workspaceId = useCurrentWorkspace().workspaceId; | |||
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.
| const workspaceId = useCurrentWorkspace().workspaceId; | |
| const { workspaceId } = useCurrentWorkspace(); |
| }; | ||
|
|
||
| export const useGetDestinationDefinitionSpecificationAsync = ( | ||
| id: string | null | ||
| ): QueryObserverResult<DestinationDefinitionSpecification, Error> => { | ||
| const service = useGetService(); | ||
| const workspaceId = useCurrentWorkspace().workspaceId; |
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.
| const workspaceId = useCurrentWorkspace().workspaceId; | |
| const { workspaceId } = useCurrentWorkspace(); |
| @@ -28,17 +29,19 @@ function useGetService(): SourceDefinitionSpecificationService { | |||
|
|
|||
| export const useGetSourceDefinitionSpecification = (id: string): SourceDefinitionSpecification => { | |||
| const service = useGetService(); | |||
| const workspaceId = useCurrentWorkspace().workspaceId; | |||
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.
| const workspaceId = useCurrentWorkspace().workspaceId; | |
| const { workspaceId } = useCurrentWorkspace(); |
| }; | ||
|
|
||
| export const useGetSourceDefinitionSpecificationAsync = ( | ||
| id: string | null | ||
| ): QueryObserverResult<SourceDefinitionSpecification, Error> => { | ||
| const service = useGetService(); | ||
| const workspaceId = useCurrentWorkspace().workspaceId; |
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.
| const workspaceId = useCurrentWorkspace().workspaceId; | |
| const { workspaceId } = useCurrentWorkspace(); |
FE code looks good to me awaiting some minor code style improvements. Haven't tested locally.
I had to refactor a bit the CLI because it's using the endpoint that was modified in this PR and some signatures in the generated API client changed.


Issue : #12139