The Wayback Machine - https://web.archive.org/web/20220501111415/https://github.com/airbytehq/airbyte/pull/12112
Skip to content
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

Merged
merged 11 commits into from Apr 22, 2022
Merged

Conversation

Copy link
Contributor

@subodh1810 subodh1810 commented Apr 18, 2022

Issue : #12139

@subodh1810 subodh1810 self-assigned this Apr 18, 2022
@github-actions github-actions bot added area/api area/documentation area/frontend area/platform area/server labels Apr 18, 2022
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 18, 2022 Inactive
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 18, 2022 Inactive
@subodh1810 subodh1810 marked this pull request as ready for review Apr 19, 2022
@subodh1810 subodh1810 requested a review from as a code owner Apr 19, 2022
@subodh1810 subodh1810 requested review from edgao and tuliren Apr 19, 2022
@@ -28,17 +29,19 @@ function useGetService(): DestinationDefinitionSpecificationService {

export const useGetDestinationDefinitionSpecification = (id: string): DestinationDefinitionSpecification => {
const service = useGetService();
const workspaceId = useCurrentWorkspace().workspaceId;
Copy link
Collaborator

@timroes timroes Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const workspaceId = useCurrentWorkspace().workspaceId;
const { workspaceId } = useCurrentWorkspace();
};

export const useGetDestinationDefinitionSpecificationAsync = (
id: string | null
): QueryObserverResult<DestinationDefinitionSpecification, Error> => {
const service = useGetService();
const workspaceId = useCurrentWorkspace().workspaceId;
Copy link
Collaborator

@timroes timroes Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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;
Copy link
Collaborator

@timroes timroes Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const workspaceId = useCurrentWorkspace().workspaceId;
const { workspaceId } = useCurrentWorkspace();
};

export const useGetSourceDefinitionSpecificationAsync = (
id: string | null
): QueryObserverResult<SourceDefinitionSpecification, Error> => {
const service = useGetService();
const workspaceId = useCurrentWorkspace().workspaceId;
Copy link
Collaborator

@timroes timroes Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const workspaceId = useCurrentWorkspace().workspaceId;
const { workspaceId } = useCurrentWorkspace();
Copy link
Collaborator

@timroes timroes left a comment

FE code looks good to me awaiting some minor code style improvements. Haven't tested locally.

@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 19, 2022 Inactive
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 19, 2022 Inactive
@grishick grishick linked an issue Apr 19, 2022 that may be closed by this pull request
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 21, 2022 Inactive
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 21, 2022 Inactive
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 21, 2022 Inactive
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 21, 2022 Inactive
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 21, 2022 Inactive
@subodh1810 subodh1810 temporarily deployed to more-secrets Apr 21, 2022 Inactive
@subodh1810 subodh1810 requested a review from alafanechere Apr 21, 2022
@alafanechere alafanechere temporarily deployed to more-secrets Apr 22, 2022 Inactive
@alafanechere alafanechere temporarily deployed to more-secrets Apr 22, 2022 Inactive
@alafanechere alafanechere temporarily deployed to more-secrets Apr 22, 2022 Inactive
@alafanechere alafanechere temporarily deployed to more-secrets Apr 22, 2022 Inactive
@alafanechere alafanechere temporarily deployed to more-secrets Apr 22, 2022 Inactive
Copy link
Contributor

@alafanechere alafanechere left a comment

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.

@subodh1810 subodh1810 merged commit 405bf4d into master Apr 22, 2022
30 checks passed
@subodh1810 subodh1810 deleted the workspace-id-part-of-spec-call branch Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api area/documentation area/frontend area/platform area/server
5 participants