Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DataCatalog2.0]: Move pattern resolution logic to the separate compo…
…nent (#4123) * Added a skeleton for AbstractDataCatalog and KedroDataCatalog Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Removed from_config method Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Implemented _init_datasets method Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Implemented get dataset Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Started resolve_patterns implementation Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Implemented resolve_patterns Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed credentials resolving Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated match pattern Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Implemented add from dict method Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated io __init__ Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added list method Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Implemented _validate_missing_keys Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added datasets access logic Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added __contains__ and comments on lazy loading Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Renamed dataset_name to ds_name Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated some docstrings Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed _update_ds_configs Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed _init_datasets Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Implemented add_runtime_patterns Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed runtime patterns usage Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Moved pattern logic out of data catalog, implemented KedroDataCatalog Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * KedroDataCatalog updates Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added property to return config Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added list patterns method Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Renamed and moved ConfigResolver Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Renamed ConfigResolver Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Cleaned KedroDataCatalog Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Cleaned up DataCatalogConfigResolver Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Docs build fix attempt Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Removed KedroDataCatalog Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated from_config method Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated constructor and add methods Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated _get_dataset method Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated __contains__ Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated __eq__ and shallow_copy Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added __iter__ and __getitem__ Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Removed unused imports Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added TODO Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated runner.run() Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated session Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added confil_resolver property Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated catalog list command Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated catalog create command Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated catalog rank command Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated catalog resolve command Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Remove some methods Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Removed ds configs from catalog Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed lint Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed typo Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Added module docstring Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Removed None from Pattern type Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed docs failing to find class reference Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed docs failing to find class reference Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated Patterns type Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fix tests (#4149) * Fix most tests Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Fix most tests Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> --------- Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Returned constants to avoid breaking changes Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Minor fix Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated test_sorting_order_with_other_dataset_through_extra_pattern Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Removed odd properties Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated tests Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Removed None from _fetch_credentials input Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Renamed DataCatalogConfigResolver to CatalogConfigResolver Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Renamed _init_configs to _resolve_config_credentials Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Moved functions to the class Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Refactored resolve_dataset_pattern Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed refactored part Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Changed the order of arguments for DataCatalog constructor Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Replaced __getitem__ with .get() Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Updated catalog commands Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Moved warm up block outside of the try block Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Fixed linter Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> * Removed odd copying Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> --------- Signed-off-by: Elena Khaustova <ymax70rus@gmail.com> Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> Co-authored-by: Ankita Katiyar <110245118+ankatiyar@users.noreply.github.com>
- Loading branch information