Skip to content

Commit

Permalink
MG-3022 Add filter to Entity JSON Fields (#48)
Browse files Browse the repository at this point in the history
* feat: add entity fields 'filters'

* feat: update version dd-airflow

* feat: add ddl for filters in dds.entity

Co-authored-by: Ivan Kanashov <[email protected]>
  • Loading branch information
ikanashov and Ivan Kanashov authored May 12, 2022
1 parent 146b84b commit 9227732
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data-detective-airflow/data_detective_airflow/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class EntityFields:
SEARCH_DATA = 'search_data'
LINKS = 'links'
TAGS = 'tags'
FILTERS = 'filters'


RELATION_NONE = 'non'
Expand All @@ -58,4 +59,4 @@ class EntityFields:
JSON_FIELDS: FrozenSet[str] = frozenset({EntityFields.JSON_DATA, EntityFields.JSON_SYSTEM, EntityFields.CODES,
EntityFields.HTMLS, EntityFields.TABLES, EntityFields.NOTIFICATIONS,
EntityFields.JSON_DATA_UI, EntityFields.GRID,
EntityFields.LINKS, EntityFields.TAGS})
EntityFields.LINKS, EntityFields.TAGS, EntityFields.FILTERS})
1 change: 1 addition & 0 deletions data-detective-airflow/docker/init-pg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ create table dds.entity
notifications jsonb,
tables jsonb,
tags jsonb,
filters jsonb,
processed_dttm timestamp default now()
);

Expand Down
2 changes: 1 addition & 1 deletion data-detective-airflow/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "data_detective_airflow"
license = "Apache-2.0"
version = "1.0.2"
version = "1.0.3"
description = "Framework with task testing over Apache Airflow"
authors = ["Tinkoff Data Detective Team"]
readme = 'README.md' # Markdown files are supported
Expand Down

0 comments on commit 9227732

Please sign in to comment.