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

Generate connectors.md #23367

Merged
merged 6 commits into from
Feb 23, 2023
Merged

Generate connectors.md #23367

merged 6 commits into from
Feb 23, 2023

Conversation

evantahler
Copy link
Contributor

@evantahler evantahler commented Feb 22, 2023

This PR adds an automatically-generated connectors.md file at the root of this directory. It takes the information contained within the actor_definition files and builds a human-readable markdown table any time a connector is added or updated.

This answers the question - "What's the official list of connectors"?

In the future, once all connector metadata lives within this repo, we can add cloud status and additional information. This happens automatically as part of the /publish workflow, keyed as a dependency of :airbyte-config:init:processResources

View the file here

Screenshot 2023-02-22 at 3 44 48 PM

@evantahler evantahler marked this pull request as ready for review February 22, 2023 23:52
Copy link
Contributor

@bnchrch bnchrch left a comment

Choose a reason for hiding this comment

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

Love the spirit and presentation of this. Let merge it in.

For context, in the future this file may take on a different "form" as metadata likely willl:

  1. Make the catalog the primary reference point and the definition yamls will go away.
  2. Move the generation of the catalog outside of CI/CD and not checked into the repository.

Copy link
Contributor

@pedroslopez pedroslopez left a comment

Choose a reason for hiding this comment

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

this is absolutely beautiful

Comment on lines +44 to +45
final List<JsonNode> destinationDefinitionsJson = getSeedJson(seedRoot, SeedConnectorType.DESTINATION.getDefinitionFileName());
final List<JsonNode> sourceDefinitionsJson = getSeedJson(seedRoot, SeedConnectorType.SOURCE.getDefinitionFileName());
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we ok with introducing a new usage of the YAMLs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I very much hope this file one day is built by our metadata service. I view this as a transitionary step - if we can get folks looking here, and not the actor definitions, than the pain of removing them is lessened.

@evantahler evantahler merged commit 9193dd0 into master Feb 23, 2023
@evantahler evantahler deleted the evan/connectors.md branch February 23, 2023 01:47
@subodh1810
Copy link
Contributor

@evantahler the file is breaking CI. It fails the check Ensure no file change from regenerating connector definitions/specs in the connector base build https://github.com/airbytehq/airbyte/actions/runs/4253047335/jobs/7397428169

The timestamp for __Generated will never be the same. We need to ignore the file
cc @sergio-ropero

@evantahler
Copy link
Contributor Author

This PR will catch the problem above in tests for the future #23370

@evantahler
Copy link
Contributor Author

#23372, #23369, #23393, and #23392 are all fixes for this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants