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

Expect entry or source to implement 'container' but not '_container'. #548

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

danielballan
Copy link
Member

Closes #545

This turned out to be an easy fix: just rely on the public API instead of the private one. The intake tests pass without changes. Likewise, the databroker tests pass against this branch with no workarounds. This PR also incidentally enables

Catalog.from_dict({'thing': CSVSource(...)})

without wrapping CSVSource(...) in an Entry, which fits our goal of "Let users never see Entry objects" as @martindurant put it in #490. I added a test to exercise that usage.

@martindurant martindurant merged commit b899870 into intake:master Nov 9, 2020
@martindurant
Copy link
Member

At some point, we can advertise the alternate use of from_dict

@danielballan danielballan deleted the remove-_container-check branch November 9, 2020 16:08
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.

Regression: internals require API that is not always defined
2 participants