Skip to content

Commit

Permalink
Adiciona dias 2024-09-14 e 2024-09-15 como tipo os verão (#242)
Browse files Browse the repository at this point in the history
* adiciona dias 2024-09-14 e 2024-09-15 como tipo os verão e subsidio_data_versao_efetiva

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* atualiza changelog

* corrige referencia de tabelas em subsidio_data_versao_efetiva

* altera comentario no flow para registrar

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
vtr363 and pre-commit-ci[bot] authored Sep 23, 2024
1 parent e0cfb90 commit 5af1969
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/migration/projeto_subsidio_sppo/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
Flows for projeto_subsidio_sppo
DBT: 2024-09-17
DBT: 2024-09-23
"""

from prefect import Parameter, case, task
Expand Down
6 changes: 6 additions & 0 deletions queries/models/projeto_subsidio_sppo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog - projeto_subsidio_sppo

## [9.0.3] - 2024-09-23

### Alterado

- Adicionado subtipo_dia `Verão` em `2024-09-14` e `2024-09-15` no modelo `subsidio_data_versao_efetiva.sql` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/242)

## [9.0.2] - 2024-09-17

### Corrigido
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ WITH
WHEN data = DATE(2024,05,04) THEN "Madonna 2024-05-04"
WHEN data = DATE(2024,05,05) THEN "Madonna 2024-05-05"
WHEN data = DATE(2024,08,18) THEN "CNU" -- Processo.Rio MTR-PRO-2024/13252
WHEN data = DATE(2024,09,14) THEN "Extraordinária - Verão" -- Processo.Rio
WHEN data = DATE(2024,09,15) THEN "Extraordinária - Verão" -- Processo.Rio
ELSE "Regular"
END AS tipo_os,
FROM UNNEST(GENERATE_DATE_ARRAY("{{var('DATA_SUBSIDIO_V6_INICIO')}}", "2024-12-31")) AS data),
Expand Down

0 comments on commit 5af1969

Please sign in to comment.