-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor of get chart data endpoint (#139)
* Refactor of get chart data endpoint * Comment cleanup * light coverage
- Loading branch information
1 parent
042c129
commit 7e72e89
Showing
15 changed files
with
1,127 additions
and
338 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[sqlfluff] | ||
templater = jinja | ||
dialect = athena | ||
sql_file_exts = .sql,.sql.jinja | ||
exclude_rules= | ||
# these rule overfires on athena nested arrays | ||
references.from, | ||
structure.column_order, | ||
aliasing.unused, | ||
# this rule interferes with FHIR naming conventions | ||
capitalisation.identifiers | ||
max_line_length = 90 | ||
|
||
[sqlfluff:rules:layout.long_lines] | ||
ignore_comment_lines = true | ||
|
||
[sqlfluff:rules:capitalisation.keywords] | ||
capitalisation_policy = upper | ||
|
||
|
||
[sqlfluff:templater:jinja] | ||
load_macros_from_path = src/dashboard/get_chart_data/templates | ||
|
||
[sqlfluff:templater:jinja:context] | ||
data_column = 'foo' | ||
stratifier_column= 'bar' | ||
count_columns=['cnt'] | ||
schema='schema' | ||
data_package_id='study__table__001' | ||
coalesce_columns=['baz','foobar'] | ||
inline_configs=[ | ||
[ | ||
{'data':'foo','type': 'matches': 'a'}, | ||
{'data':'foo','type': 'matches': 'b'} | ||
], | ||
[ | ||
{'data':'baz','type': 'eq', 'matches': '1'}, | ||
{'data':'baz','type': 'isNull'} | ||
] | ||
] | ||
none_configs=[ | ||
[ | ||
{'data':'foo','type': 'matches': 'a'}, | ||
{'data':'foo','type': 'matches': 'b'} | ||
], | ||
[ | ||
{'data':'baz','type': 'isNull'} | ||
] | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tests/ | ||
.aws-sam/ |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.