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

Add connection list filtering to the frontend based on a set of sources or destinations #21119

Conversation

krishnaglick
Copy link
Contributor

@krishnaglick krishnaglick commented Jan 6, 2023

What

Implements the connections list filtering for a set of sources or destinations.
Resolves #21162

How

Where appropriate, passes in a set of destination or source id's to the connection list call.

@krishnaglick krishnaglick requested a review from a team as a code owner January 6, 2023 17:09
@octavia-squidington-iv octavia-squidington-iv added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Jan 6, 2023
Base automatically changed from gosusnp/21024-extend-connection-list-filtering to master January 9, 2023 21:42
@gosusnp gosusnp requested a review from a team as a code owner January 9, 2023 21:42
@octavia-squidington-iv octavia-squidington-iv removed the area/platform issues related to the platform label Jan 9, 2023
@krishnaglick krishnaglick self-assigned this Jan 9, 2023
@krishnaglick krishnaglick enabled auto-merge (squash) January 18, 2023 18:40
…ion-list-filtering-on-source-or-destination-list-pages
Copy link
Contributor

@teallarson teallarson left a comment

Choose a reason for hiding this comment

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

lgtm

const connectionsWithDestination = connections.filter(
({ destination: { destinationId } }) => destinationId === destination.destinationId
);
const { connections: connectionsWithDestination } = useConnectionList({ destinationId: [destination.destinationId] });
Copy link
Contributor

Choose a reason for hiding this comment

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

Weird to me that these are prop-drilled in for the Source Settings.

Should probably choose one pattern or the other, but that's outside this PR :)

@krishnaglick krishnaglick merged commit 5654ef6 into master Jan 18, 2023
@krishnaglick krishnaglick deleted the kc/connection-list-filtering-on-source-or-destination-list-pages branch January 18, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp team/platform-move
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement connection list filtering on the source and destination list pages
4 participants