Skip to content

Allow updating PT and PE upper to 1 year if data_inicio is below the cutoff#226

Merged
edulauer merged 10 commits intomainfrom
issue-223
Oct 9, 2025
Merged

Allow updating PT and PE upper to 1 year if data_inicio is below the cutoff#226
edulauer merged 10 commits intomainfrom
issue-223

Conversation

@edulauer
Copy link
Member

@edulauer edulauer commented Oct 7, 2025

Fix #223
Allow update PT and PE upper to 1 year if data_inicio below the cutoff
Changes

  • Allow updating Plano de Trabalho (PT) and Plano de Entregas (PE) upper to 1 year when data_inicio is earlier than the cutoff date.
  • New constant PT_PE_UPDATE_YEAR_VALIDATION_CUTOFF_DATE set to 2025-05-31.
  • Moved over_a_year validation logic from Pydantic to the API layer.
  • Created tests for updating Plano de Entregas.
  • Adjust tests for updating Plano de Trabalho based on the cutoff date

@edulauer edulauer merged commit 65193d2 into main Oct 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Permitir atualização de PT e PE superior a 12 meses na regra de corte (12/05/2025)

1 participant