-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
1 - Definir as seguintes entidades no arquivo models.py
DataSourceValidation
- id: int
- description: string
- type: enum (por enquanto, apenas GREAT_EXPECTATIONS e SCRIPT)
- enabled: bool
- user_id: int
- user_name: string
- user_login: string
- dataSource: DataSource (é uma associação com a fonte de dados)
DataSourceValidationItem
- id: int
- description: string
- type: string (conterá os tipos de validação a serem definidos)
- enabled: bool
- dataSourceValidation: DataSourceValidation (é uma associação com a entidade acima)
- parameters: LongText (ver como declarar isso no SqlAlchemy)
Note que DataSourceValidationItem é filho de DataSourceValidation. Ver exemplo de DataSource e Attribute.
DataSourceValidationExecution
- id: int
- created: datetime
- finished: datetime
- status: enum (SUCCESS, ERROR, RUNNING, PENDING)
- user_id: int
- user_name: string
- user_login: string
- dataSourceValidation: DataSourceValidation (é uma associação com a entidade acima)
- result: LongText (ver como declarar isso no SqlAlchemy, conterá o resultado)
2 - Criar a migração
3 - Criar os objetos do Marshmallow (arquivo schema.py)
4 - Criar a api data_source_validation_api.py, com as classes:
- DataSourceValidationDetail (get, delete, patch)
- DataSourceValidationList (get, post)
- DataSourceValidationExecutionDetail (get, delete)
- DataSourceValidationExecutionList (get, post)
Metadata
Metadata
Assignees
Labels
No labels