laurent
09/09/2021, 9:05 PMtap-github
to add the repo list, and I think I caught a bug in the sdk, but wanted to check with you if I'm using it correctly:
tap1 = TapGitHub(config=REPO_LIST_CONFIG)
tap1.run_discovery()
catalog = tap1.catalog_dict
set_catalog_stream_selected(catalog, "issue_comments", selected=False)
# now I expect catalog to contain "selected": false for the issue_comments stream, but it doesn't
tap2 = TapGitHub(config=REPO_LIST_CONFIG, catalog=catalog)
tap2.sync_all()
# I would expect tap2 to NOT sync the issue_comments stream
set_catalog_stream_selected
seems to modify a copy of a part of the original catalog, and not the object passed, meaning it seems to have no effect. Is my code above correct (or is the bug in here)?laurent
09/09/2021, 9:11 PMaaronsteers
09/09/2021, 9:36 PMaaronsteers
09/09/2021, 9:38 PMaaronsteers
09/09/2021, 9:39 PMaaronsteers
09/09/2021, 9:41 PM_
are somewhat more raw and untested, hence the private module naming convention. In general, you should avoid calling those directly because they may be removed/refactored without warning. However, with @edgar_ramirez_mondragon's latest update, we agreed in that MR that we should start moving towards what the public and stable method signatures should be.laurent
09/09/2021, 9:44 PMdeselect_all_streams
for instance. I think exposing some of them at least for that purpose would be nice.aaronsteers
09/09/2021, 9:44 PMaaronsteers
09/09/2021, 9:45 PMaaronsteers
09/09/2021, 9:46 PMaaronsteers
09/09/2021, 9:46 PMlaurent
09/09/2021, 9:48 PM