-
Notifications
You must be signed in to change notification settings - Fork 2
Switch connectors over to using GQL
#1949
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
Open
travjenkins
wants to merge
32
commits into
main
Choose a base branch
from
travjenkins/gql/connectors_v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
7e09fcc
Initial switching over to use GQL for connectors on the card list page
travjenkins e6b270f
Switching over to storing the connector stuff in context
travjenkins f2de20c
Formatting to GQL format of UUIDs
travjenkins d10afa2
Starting to clean up when we allowed connector to be changed
travjenkins 6b957cf
We do not need to enable setting this as we force the option to be se…
travjenkins c86d33a
formatting stuff
travjenkins e63dc70
Wiring back up the check for unsupported connectors
travjenkins c820b09
Merge remote-tracking branch 'origin/main' into travjenkins/gql/conne…
travjenkins 4550725
Cleaning up old code/approach
travjenkins 92c4708
fetching binding stuff from new context
travjenkins e4003be
cleaning up the valid connector check - the backend checks this and the
travjenkins 58a9118
cleaning up some typing
travjenkins 7a152b2
Cleaning up stuff we should not need anymore
travjenkins 8b8f4dc
Removing the old details hydrator for details as only test page used it
travjenkins 3621d53
Cleaning up a lot of code just for the test json forms page
travjenkins a93da55
Adding a bit more error handling
travjenkins b00508f
Updating query so we fetch the image tag if available
travjenkins 326faa2
I think we are good to remove this - gonna test it out
travjenkins b21977f
We can remove this as it was only around for test/jsonforms page and …
travjenkins 3aabcde
jsonforms test page will help connector team with quicker testing and it
travjenkins abc5ea2
Cleaning up some old code to move towards using the new context
travjenkins f03eca2
Some final cleanup of hanging code
travjenkins 1244c83
Merge remote-tracking branch 'origin/main' into travjenkins/gql/conne…
travjenkins 679d56b
Post merge codegen run
travjenkins 2bc46b3
Cleaning up some old stuff
travjenkins c2d3084
More cleanup
travjenkins 1314862
Hook no longer needed
travjenkins 44a1427
No clue why I thought we could remove this
travjenkins 90bbaa6
Adding support check wrapper around json test forms
travjenkins ee2a6c5
Hook not needed anymore
travjenkins 13f2697
This is not needed for the test pages
travjenkins 23997df
some formatting issues and ignoring storybook
travjenkins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| import type { ConnectorsGridQuery } from 'src/gql-types/graphql'; | ||
|
|
||
| import { graphql } from 'src/gql-types'; | ||
|
|
||
| export type ConnectorGridNode = | ||
| ConnectorsGridQuery['connectors']['edges'][number]['node']; | ||
|
|
||
| // TODO (GQL:Connector) - fine for now but this ignores pagination and just | ||
| // fetches 500 all at once | ||
| export const CONNECTORS_QUERY = graphql(` | ||
| query ConnectorsGrid($filter: ConnectorsFilter, $after: String) { | ||
| connectors(first: 500, after: $after, filter: $filter) { | ||
| edges { | ||
| cursor | ||
| node { | ||
| id | ||
| imageName | ||
| logoUrl | ||
| title | ||
| recommended | ||
| shortDescription | ||
| connectorTag(orDefault: true) { | ||
| id | ||
| connectorId | ||
| imageTag | ||
| documentationUrl | ||
| protocol | ||
| } | ||
| } | ||
| } | ||
| pageInfo { | ||
| hasNextPage | ||
| endCursor | ||
| } | ||
| } | ||
| } | ||
| `); | ||
|
|
||
| export const CONNECTOR_BY_ID_QUERY = graphql(` | ||
| query SingleConnector($id: Id!, $imageTag: String) { | ||
| connector(id: $id) { | ||
| id | ||
| imageName | ||
| logoUrl | ||
| title | ||
| connectorTag(imageTag: $imageTag, orDefault: true) { | ||
| id | ||
| connectorId | ||
| imageTag | ||
| defaultCaptureInterval | ||
| disableBackfill | ||
| documentationUrl | ||
| endpointSpecSchema | ||
| resourceSpecSchema | ||
| protocol | ||
| } | ||
| } | ||
| } | ||
| `); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since we prevented users from changing the connector awhile ago I think this is totally safe to remove.