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

feat: Ignore Catalog Cache #8518

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

feat: Ignore Catalog Cache #8518

wants to merge 15 commits into from

Conversation

andyoneal
Copy link

closes #6919

  • Adds no_catalog_cache to config extras, so that a single plugin can be run every time without the catalog cache.
  • Adds --catalog-refresh option to meltano select and meltano el

Adding a new extra seems extreme, but I don't know how else to implement this where it could be used as part of a job for any tap. If there's a better way to do it, I'm happy to adjust this based on feedback.

Copy link

netlify bot commented Apr 29, 2024

Deploy Preview for meltano ready!

Name Link
🔨 Latest commit d36e3c5
🔍 Latest deploy log https://app.netlify.com/sites/meltano/deploys/664d31b6e942d000078976aa
😎 Deploy Preview https://deploy-preview-8518--meltano.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@edgarrmondragon
Copy link
Collaborator

Thanks @andyoneal! I'll make some time to review :D

@edgarrmondragon edgarrmondragon self-assigned this Apr 29, 2024
Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.02%. Comparing base (cc33c16) to head (d36e3c5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8518      +/-   ##
==========================================
+ Coverage   91.83%   92.02%   +0.19%     
==========================================
  Files         245      246       +1     
  Lines       19337    19410      +73     
  Branches     2152     2157       +5     
==========================================
+ Hits        17758    17862     +104     
+ Misses       1306     1272      -34     
- Partials      273      276       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@edgarrmondragon edgarrmondragon left a comment

Choose a reason for hiding this comment

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

Thanks @andyoneal!

Can we add this to the documentation for the "run" command? https://docs.meltano.com/reference/command-line-interface#run

src/meltano/cli/select.py Outdated Show resolved Hide resolved
src/meltano/core/plugin/singer/tap.py Show resolved Hide resolved
src/meltano/cli/elt.py Show resolved Hide resolved
src/meltano/cli/elt.py Show resolved Hide resolved
tests/meltano/core/plugin/singer/test_tap.py Outdated Show resolved Hide resolved
src/meltano/core/select_service.py Show resolved Hide resolved
@edgarrmondragon
Copy link
Collaborator

Adding a new extra seems extreme, but I don't know how else to implement this where it could be used as part of a job for any tap. If there's a better way to do it, I'm happy to adjust this based on feedback.

The new extra is probably fine, and it's a nice way for users to tell Meltano to always use a fresh catalog.

andyoneal and others added 2 commits April 30, 2024 10:45
Co-authored-by: Edgar Ramírez Mondragón <16805946+edgarrmondragon@users.noreply.github.com>
@edgarrmondragon
Copy link
Collaborator

@andyoneal
Copy link
Author

@andyoneal I think files in https://github.com/meltano/meltano/tree/42405debc9369235c64c2f5a0ad8fbd9a1e61a35/integration/meltano-manifest/expected-manifests need to be updated so the integration tests can pass

was wondering where those were coming from. will update.

@@ -185,6 +185,9 @@ class SingerTap(SingerPlugin): # noqa: WPS214
value_processor="nest_object",
),
SettingDefinition(name="_select_filter", kind=SettingKind.ARRAY, value=[]),
SettingDefinition(
name="_no_catalog_cache", kind=SettingKind.BOOLEAN, value=False
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit that came up while checking this out during Office Hours:

What do you think of making this _catalog_cache instead and default it to True?

Copy link
Member

Choose a reason for hiding this comment

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

All else being equal, avoiding a double negative would be nice

@edgarrmondragon edgarrmondragon removed the request for review from sbalnojan May 22, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Discussed
Development

Successfully merging this pull request may close these issues.

feature: Add a --refresh option for meltano select to refresh a new copy of the discovered catalog
3 participants