Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
yes, to be consistent with metadata and may be we should transform metadata as a S7 object :)
I m sure the function was not used ^^ So yes ^^
yes :) |
I have updated based on your comments and added the following:
|
Code coverage
|
Github pagesReview the pkgdown webpage for the PR here |
Summary
Changes
connectors()andnested_connectors()to be S7 classes for more robust creation and use.Also does the same
datasources()as new internal class.Changes Made
connectors()S7 class with built-in validation inheriting fromlistensuring that each Connector is still accessed the same way. Metadata and datasources are available as properties.datasources()are now used as an internal class used to define the@datasourcesproperty inconnectors. This also means that the previous (deprecated)datasources()function has been deleted.nested_connectors()to also be an S7 class inheriting fromlist. Now ensures that all elements are either inheriting fromconnectorsornested_connectors.connect()updated to call the new classes correctly.Questions for reviewer:
I have tried to make as few changes to the user interface as possible, but would it make sense to also do
the below changes?
.datasourcesargument inconnectors()? Since it should always be aligned with the list of Connector objects we could just derive it always in the class (as a getter function).datasources()function? I just thought it would be too annoying having to call the new class something different just because we already had this function.extract_metadata()andwrite_datasources()to be S7 generics? Could also be in a new issue.Testing
connectors()andnested_connectors(), so testing is not so reliant on the integration withconnect().Checklist