Skip to content

connectors-insights: fix generation for non manifest connector #43430

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

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Aug 9, 2024

What

Insights generation is broken:

  • for non low-code connectors: a function tried to read the manifest file but it does not always exists.
  • access to schema directory was not working as the Connector.code_path attribute does not exists.

Connector insights generation now works again.

Copy link

vercel bot commented Aug 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2024 3:41pm

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alafanechere and the rest of your teammates on Graphite Graphite

@alafanechere alafanechere force-pushed the augustin/08-09-connectors-insights_fix_generation_for_non_manifest_connector branch from c52fe25 to e15223d Compare August 9, 2024 15:20
@alafanechere alafanechere marked this pull request as ready for review August 9, 2024 15:24
@alafanechere alafanechere requested a review from a team August 9, 2024 15:24
@alafanechere alafanechere force-pushed the augustin/08-09-connectors-insights_fix_generation_for_non_manifest_connector branch from e15223d to c7e9220 Compare August 9, 2024 15:26
@alafanechere alafanechere force-pushed the augustin/08-09-connectors-insights_fix_generation_for_non_manifest_connector branch from c7e9220 to 3ff6048 Compare August 9, 2024 15:40
@alafanechere alafanechere enabled auto-merge (squash) August 9, 2024 15:47
@natikgadzhi
Copy link
Contributor

Oh noes, did I break it?

Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

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

Dammit this is embarrasing. Thank you a lot for fixing this! TIL.

manifest = connector.manifest_path.read_text()

schemas_directory = connector.code_path / connector.technical_name.replace("-", "_") / "schemas"
schemas_directory = connector.code_directory / connector.technical_name.replace("-", "_") / "schemas"
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait up, did I mess it up and it never worked? How did I manage that without failing a test? Or does code_path exist, but does a different thing? What's the difference between them?

@alafanechere alafanechere merged commit 02d0201 into master Aug 9, 2024
31 checks passed
@alafanechere alafanechere deleted the augustin/08-09-connectors-insights_fix_generation_for_non_manifest_connector branch August 9, 2024 19:23
@alafanechere
Copy link
Contributor Author

Oh noes, did I break it?

Yes but that's the cost of not writing tests ahah

LouisAuneau pushed a commit to LouisAuneau/airbyte that referenced this pull request Aug 13, 2024
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.

2 participants