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

refactor: introduce ConnectorIntegrationNew and add default implementation for each Connector #4989

Conversation

hrithikesh026
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Introduced ConnectorIntegrationNew and added default implementation for each Connector using macros

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Checked if code compiles successfully

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@hrithikesh026 hrithikesh026 added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed C-refactor Category: Refactor labels Jun 13, 2024
@hrithikesh026 hrithikesh026 added this to the May 2024 Release milestone Jun 13, 2024
@hrithikesh026 hrithikesh026 self-assigned this Jun 13, 2024
@hrithikesh026 hrithikesh026 requested review from a team as code owners June 13, 2024 06:16
Base automatically changed from introduce-router-data-new-and-flow-specific-data-models to main June 14, 2024 07:20
…mmyConnector inside a different module with dummy_connector feature flag

use std::{marker::PhantomData, ops::Deref};

pub use flow_common_types::*;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Can we avoid the glob imports everywhere (among all new imports added in this PR)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.
What is the advantage of doing this?

Copy link
Member

Choose a reason for hiding this comment

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

The primary reason I'd like not having glob imports is better code navigation. Sure, Ctrl/Cmd + clicking on the type name does take us to the relevant type when we're within the IDE, but if we're quickly checking code outside the IDE, or without rust-analyzer available, such as within the GitHub web UI, finding out where a type is made available from becomes quite difficult.

@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Jun 20, 2024
Merged via the queue into main with commit 84bed81 Jun 20, 2024
11 checks passed
@Gnanasundari24 Gnanasundari24 deleted the introduce-connector-integration-new-and-add-default-implementation-for-each-connector branch June 20, 2024 10:39
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-refactor Category: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants