-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pyclient): add support for GraphQL API to 'get' method (#4558)
* started creating parse function for GraphQL query from schema metadata * * moved 'parse_query' to Client class * added column types to new constants.py * started creating 'get_pkeys' for metadata.py * * created function 'parse_nested_pkeys' * finished '_parse_get_table_query' method * * implemented 'columns' filter in `get` * * added check for None columns * * split filter method results for CSV and GraphQL API * * fixed logging issues * * added dtype conversion to DataFrame output * * fixed column type float to decimal * * fixed column type float to decimal * added remaining types * * fixed server URL ending with '/' * * updated dev script for catalogue model * * implemented truncate * * fixed imports * * fixed truncate GraphQL url * * created `ReferenceException` * * refactored table names 'Collections', 'Cohorts' to 'Resources' * * small fixes * * fixed examples in dev.py * * updated README.md * * updated README.md * * removed redundant script * * fixed GraphQL query for column type FILE * * added parser for ontology columns, top-level only * * implemented parser for ontology columns nested in ref/ref_array/refback columns * * fixed as_df=False return empty list instead of None in case of empty table * * improved parsing for cases where ref columns reference ontology tables * * fixed referencing tables in other schemas * * replaced dtype 'bool' by 'boolean' for data type BOOL * * added data type LONG for conversion * * fixed issue with rounding of numeric values in string type columns * * moved get 'GraphQL' option to separate method 'get_graphql' * restored previous behaviour of get(as_df=False) * * fixed error in parsing datatime data type * * updated docs * * corrected docstrings * updated documentation * updated changelog
- Loading branch information
Showing
10 changed files
with
540 additions
and
118 deletions.
There are no files selected for viewing
This file contains 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 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.