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

V5 #66

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft

V5 #66

wants to merge 19 commits into from

Conversation

joloppo
Copy link
Contributor

@joloppo joloppo commented Dec 5, 2023

No description provided.

joloppo and others added 19 commits March 27, 2023 13:45
* feat: v5 example

* pylint

* refactor: Change environment.py to keyed.py and change to abs imports

* feat: Make inject return self and implement for keyed resource

* feat: Change injection logic slightly and simplify injection code

* feat: Add more tests, add InjectionError

* feat: make keyed resource immutable.

* feat: Make file resources leaner

* feat: Remove pylint from tests
* feat: v5 example

* pylint

* refactor: Change environment.py to keyed.py and change to abs imports

* feat: Make inject return self and implement for keyed resource

* feat: Change injection logic slightly and simplify injection code

* feat: Add more tests, add InjectionError

* feat: Add S3 resources

* docs: Add attributes

* feat: make keyed resource immutable.

* feat: Make file resources leaner

* feat: Remove pylint from tests

* fix: HDF File resource

* refactor: use static methods for file handlers

* feat: Make S3 file resources leaner & refactor

* feat: Add test for pandera validations

* fix: Tests & refactor

* refactor: Parquet test

* feat: Add file tests for all file-types

* refactor: Only use mocked class for base file test

* refactor: Clean up & simplify file tests

* feat: Add basic tests for s3 files

* feat: Add s3 hdf test

* refactor: Improve injection

* feat: Add postgres handler and tests

* feat: Add kafka resource and tests

* refactor: Parametrise file tests

* refactor: Parametrise s3 tests

* feat: Add more injections and test for postgres

* refactor: Minimal

* refactor: Add docstrings

* docs: Xor

* refactor: no_disk_space -> force_read_to_memory

* feat: Add postgres schema definition to postgres resource

* feat: Restructure to use config+handlers >>> no inheritance

* refactor: Minor inject changes

* refactor: Ignore R0801 for now

* fix: Postgres write with schema, add demos

* feat: Add tests for keyedresource

* refactor: handlers module to io and Handlers classes to Resource
* feat: Adding '---' to the beginning of yaml files generated by cli (#48)

* feat: Adding '---' to the beginning of yaml files generated by cli

* feat: renaming variable

* feat: add resource migration script

* feat: Add migration cli

* feat: add schema migration script

* feat: Working migration command for schemas

* Add capability to convert both schemas and resources

---------

Co-authored-by: Christiano <[email protected]>
Co-authored-by: Artur Krochin <[email protected]>
* feat: Adding '---' to the beginning of yaml files generated by cli (#48)

* feat: Adding '---' to the beginning of yaml files generated by cli

* feat: renaming variable

* feat: add resource migration script

* feat: Add migration cli

* feat: add schema migration script

* feat: Working migration command for schemas

* Add capability to convert both schemas and resources

* Add uhura & serde for file resources

* Correct typehint

* Change hdf extension

* Add uhura tests & fix missing test_path attributes

* Add uhura for s3 resources (& tests)

* Fix migration script confirm prompt

* Add injections and checking in all relevant places

* Add postgres + uhura resource

* Add missing check_injections to postgres

* Correct postgres cache key and test

* Add kafka + uhura resource

* Remove dead code

* Remove dead code

* Add and improve tests

* Fix test writing to files

* Remove dead code

* Format code

* Add kafka inject tests

* Format code

* Add tests for serde and change serde init signature

* Add resource test_path inject test

* Update migration scripts to work for new uhura based resources

* Add brackets

---------

Co-authored-by: Christiano <[email protected]>
Co-authored-by: Artur Krochin <[email protected]>
* feat: Adding application name option

* chore: update make file and requirements
* feat: Adding '---' to the beginning of yaml files generated by cli (#48)

* feat: Adding '---' to the beginning of yaml files generated by cli

* feat: renaming variable

* feat: add resource migration script

* feat: Add migration cli

* feat: add schema migration script

* feat: Working migration command for schemas

* Add capability to convert both schemas and resources

* feat: add support for has_no_nulls validation

* feat: add support for is_in validator

* feat: add support for uniqueness validator

* feat: add support for greater than validation

* fix: fix issue with empty normalized col names

* feat: add validator for greater than or equals

* feat: add validator for is between

* fix: remove scaffolding

* fix: optimise imports

* feat: add note about custom validations

* feat: Add demo files

* feat: Correct demo files

* feat: Add less than and less equals to schema migration cli

* feat: Add migration schema match_all warning

---------

Co-authored-by: Christiano <[email protected]>
Co-authored-by: Artur Krochin <[email protected]>
Overview
Refactor according after discussions with @matteo-pallini last month.
I had to add the custom inject back in, rather than using .format as .format requires all variables to be formatted (could use std templates but that would change the syntax to $).
Validation now happens in the attached serde.
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.

3 participants