From 901cb000678f0c2dd56bb4f36d9d1d89647452ea Mon Sep 17 00:00:00 2001 From: tricktx Date: Fri, 20 Oct 2023 09:19:28 -0300 Subject: [PATCH 1/4] fix rename columns origin --- pipelines/datasets/br_stf_corte_aberta/constants.py | 2 +- pipelines/datasets/br_stf_corte_aberta/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/datasets/br_stf_corte_aberta/constants.py b/pipelines/datasets/br_stf_corte_aberta/constants.py index ee6711acd..e89940c2f 100644 --- a/pipelines/datasets/br_stf_corte_aberta/constants.py +++ b/pipelines/datasets/br_stf_corte_aberta/constants.py @@ -28,7 +28,7 @@ class constants(Enum): # pylint: disable=c0103 "Ramo direito": "ramo_direito", "Data de autuação": "data_autuacao", "Data da decisão": "data_decisao", - "Data baixa processo": "data_baixa_processo", + "Data baixa": "data_baixa_processo", } ORDEM = [ diff --git a/pipelines/datasets/br_stf_corte_aberta/utils.py b/pipelines/datasets/br_stf_corte_aberta/utils.py index ea790b7a7..941d03530 100644 --- a/pipelines/datasets/br_stf_corte_aberta/utils.py +++ b/pipelines/datasets/br_stf_corte_aberta/utils.py @@ -57,7 +57,7 @@ def read_csv(): def fix_columns_data(df): - lista = ["Data de autuação", "Data da decisão", "Data baixa processo"] + lista = ["Data de autuação", "Data da decisão", "Data baixa"] for x in lista: df[x] = df[x].astype(str).str[0:10] df[x] = ( From 05e4803bfa75751bdcdcf648a261c6527480d737 Mon Sep 17 00:00:00 2001 From: tricktx Date: Fri, 20 Oct 2023 09:55:18 -0300 Subject: [PATCH 2/4] outras colunas que mudaram o nome --- pipelines/datasets/br_stf_corte_aberta/constants.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pipelines/datasets/br_stf_corte_aberta/constants.py b/pipelines/datasets/br_stf_corte_aberta/constants.py index e89940c2f..470ae8e82 100644 --- a/pipelines/datasets/br_stf_corte_aberta/constants.py +++ b/pipelines/datasets/br_stf_corte_aberta/constants.py @@ -15,13 +15,13 @@ class constants(Enum): # pylint: disable=c0103 "Ano da decisão": "ano", "Classe": "classe", "Número": "numero", - "Relator": "relator", - "Link": "link", + "Nome Ministro(a)": "relator", + "Processo": "link", "Subgrupo andamento decisão": "subgrupo_andamento", "Andamento decisão": "andamento", "Observação do andamento": "observacao_andamento_decisao", "Indicador virtual": "modalidade_julgamento", - "Indicador Colegiada": "tipo_julgamento", + "Indicador colegiada": "tipo_julgamento", "Indicador eletrônico": "meio_tramitacao", "Indicador de tramitação": "indicador_tramitacao", "Assuntos do processo": "assunto_processo", From c6d798a302a05ffb29e144a9299ced01021f75de Mon Sep 17 00:00:00 2001 From: tricktx Date: Fri, 20 Oct 2023 10:31:35 -0300 Subject: [PATCH 3/4] indicador colegiado --- pipelines/datasets/br_stf_corte_aberta/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/datasets/br_stf_corte_aberta/constants.py b/pipelines/datasets/br_stf_corte_aberta/constants.py index 470ae8e82..f3444a44e 100644 --- a/pipelines/datasets/br_stf_corte_aberta/constants.py +++ b/pipelines/datasets/br_stf_corte_aberta/constants.py @@ -21,7 +21,7 @@ class constants(Enum): # pylint: disable=c0103 "Andamento decisão": "andamento", "Observação do andamento": "observacao_andamento_decisao", "Indicador virtual": "modalidade_julgamento", - "Indicador colegiada": "tipo_julgamento", + "Indicador colegiado": "tipo_julgamento", "Indicador eletrônico": "meio_tramitacao", "Indicador de tramitação": "indicador_tramitacao", "Assuntos do processo": "assunto_processo", From 1151487ac73aa37be4df5becd0bba61a68d65965 Mon Sep 17 00:00:00 2001 From: Vinicius Aguiar Date: Sun, 22 Oct 2023 19:45:02 -0300 Subject: [PATCH 4/4] feat: migrate branch to main --- .github/workflows/build-docker.yaml | 4 ++-- .github/workflows/cd-staging.yaml | 2 +- .github/workflows/cd.yaml | 2 +- .github/workflows/docs.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index 824bcaae8..f49784c60 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -3,7 +3,7 @@ name: Build Docker image on: push: branches: - - master + - main paths: - ".github/workflows/cd.yaml" - "pipelines/**/*" @@ -11,7 +11,7 @@ on: - "Dockerfile" pull_request: branches: - - master + - main paths: - ".github/workflows/cd_staging.yaml" - "pipelines/**/*" diff --git a/.github/workflows/cd-staging.yaml b/.github/workflows/cd-staging.yaml index 8a415f944..3b2b69f2e 100644 --- a/.github/workflows/cd-staging.yaml +++ b/.github/workflows/cd-staging.yaml @@ -3,7 +3,7 @@ name: Register flows (staging) on: pull_request: branches: - - master + - main paths: - ".github/workflows/cd_staging.yaml" - "pipelines/**/*" diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 2531942c7..d515b3355 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -3,7 +3,7 @@ name: Register flows (production) on: push: branches: - - master + - main paths: - ".github/workflows/cd.yaml" - "pipelines/**/*" diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index c768a8da7..0d01562aa 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -3,7 +3,7 @@ name: Deploy docs on: push: branches: - - master + - main jobs: docs: