-
Notifications
You must be signed in to change notification settings - Fork 19
feat(cdk): handle include_files from configured catalog #512
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
Open
aldogonzalez8
wants to merge
30
commits into
main
Choose a base branch
from
ac8/file-api/handle-include-files
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
a6658e6
connector builder: initial changes to pass file reference info to data
aldogonzalez8 66c1f7d
file-mode-api: refactor classes to independent files
aldogonzalez8 5aaa9fc
Auto-fix lint and format issues
3ff54b7
file-mode-api: fix imports
aldogonzalez8 c568be2
Auto-fix lint and format issues
52abace
file-api: fix mypy typing
aldogonzalez8 6136e2c
Auto-fix lint and format issues
0fbf122
file-api: minor changes to connector builder file uploader
aldogonzalez8 1e61e19
Update airbyte_cdk/sources/declarative/retrievers/file_uploader/noop_…
aldogonzalez8 06e5581
Update unit_tests/sources/declarative/file/test_file_stream.py
aldogonzalez8 5d113ec
file-api: fix coderabbit messing
aldogonzalez8 e860e3f
file-mode-api: fix classes and names to fit our vocabulary.
aldogonzalez8 3ea1674
file-mode-api: run ruff format
aldogonzalez8 2035956
file-mode-api: run ruff check . --fix
aldogonzalez8 aa0a832
file-mode-api: Mock the test instead of messing with Classes
aldogonzalez8 c8e29d1
file-api: run ruff format .
aldogonzalez8 5df84a3
file-mode-api: initial changes to handle include_files selection from…
aldogonzalez8 8e54720
file-mode-api: ruff format .
aldogonzalez8 9933a52
file-mode-api: add more tests and make internal check of include file…
aldogonzalez8 13fac98
Merge branch 'main' into ac8/file-api/connector-builder-support-3
aldogonzalez8 35b293f
Merge branch 'ac8/file-api/connector-builder-support-3' into ac8/file…
aldogonzalez8 1f9522a
file-api: move catalog pass from streams() to ModelToComponentFactory…
aldogonzalez8 d1075e7
file-api: fix problem when catalog is None
aldogonzalez8 9b81b74
file-api: fix lint
aldogonzalez8 bc4c7d6
file-api: remove unused content_extractor
aldogonzalez8 be25429
Merge branch 'ac8/file-api/connector-builder-support-3' into ac8/file…
aldogonzalez8 5fb3f0f
merge from main
aldogonzalez8 a0a2ea6
file-api: remove duplicated test
aldogonzalez8 b2693d2
merge from main
aldogonzalez8 c914bbd
remove unnecesary default object
aldogonzalez8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we need the default value here? Is there usage of
ModelToComponent.__init__
that are public facing?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.
I think we don't, I set it as None.
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.
Or should we make in mandatory?
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.
When you say mandatory you mean something like:
?
I think yes is possible, it will require us to update in different places like here for which probably we just need to pass a self.catalog that we keep.
Also, some need to update unit test that do things like
something = ModelToComponentFactory()
,What are the advantages we get from doing it mandatory? Or have we observed downsides of the default approach we've doing for other fields?
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.
Whenever we reference
catalog
internally, we know it is available and properly populated so easier code to maintain and less cognitive load for the devs.I agree unit tests are annoying to update. How widespread would be the impact?
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.
Yes, we get confused with large context windows.
Ok, probably a few places for UT
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.
For what I see we would also need an update here that is called here where the catalog from
get_config_and_catalog_from_args
is optional.The above has its own test, which will increase the impact.
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.
Ok! As you wish. If you think this is worth, we can fix the test and move forward. Else, I'm fine with the current solution