-
Notifications
You must be signed in to change notification settings - Fork 145
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: Feature flag to disable calls to Hub and discovery.yml
outside of add
and discover
#7097
Conversation
✅ Deploy Preview for meltano canceled.
|
@edgarrmondragon - I think we have to hold this until 3.0, if it would break existing users (and there are a lot) who have not yet locked their plugin files. Can you confirm? |
@aaronsteers yes, invoking a plugin that isn't locked would result in a failure with this approach |
9c1716d
to
6812278
Compare
@aaronsteers Perhaps this can be introduced earlier behind a feature flag? |
Great idea! Maybe something like I also considered a generic for: As someone noted in Slack, a possible mechanism for this could be forcing
That generic solve to restrict network connectivity would break new plugin additions though, so I ruled it out as a good solve here. The ideal state in 3.0, I think, is that you wouldn't be able to run plugins unless they had a local definition file. Making an opt-in flag now for this requirement is nice, because we can start recommending this flag as a best practice, and when we get close to 3.0 we can recommend it as a pre-upgrade step. |
Sounds good to me.
@edgarrmondragon @aaronsteers We could also make not having it enabled a lint issue: |
c15d599
to
45a5013
Compare
Codecov Report
@@ Coverage Diff @@
## main #7097 +/- ##
==========================================
+ Coverage 89.38% 89.40% +0.02%
==========================================
Files 294 294
Lines 21658 21684 +26
Branches 2422 2426 +4
==========================================
+ Hits 19358 19387 +29
+ Misses 1939 1938 -1
+ Partials 361 359 -2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
cdb6e39
to
ad430a8
Compare
add
and discover
discovery.yml
outside of add
and discover
Not a high priority per se, but I've updated the PR description to reflect the feature flag-based scope discussed above, which enables this to ship before 3.0 without breaking existing users. |
9d66585
to
8262163
Compare
2c0c37b
to
9afee75
Compare
9afee75
to
7f6131b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor docs change, otherwise approving.
Co-authored-by: Taylor A. Murphy <taylor@meltano.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I have one request, but aside from that this looks good to go
Closes #7095