Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task(schedule): Cria o algoritmo de geração de matérias #138

Merged
merged 20 commits into from
Dec 6, 2023

Conversation

caio-felipee
Copy link
Collaborator

@caio-felipee caio-felipee commented Dec 4, 2023

Issue:
close #90

O que foi feito?

  • Criado rota courses/schedules/ com o método POST para geração de grades
  • Criado algoritmo para criação de grades de acordo com as matérias entregues de acordo com a prioridade de turno
  • Adicionada função na utils/db_handler.py para pesquisa de turma através do ID
  • Adiciona os testes para os novos métodos criados

@caio-felipee caio-felipee added back-end related to back-end development API related to API communication labels Dec 4, 2023
@caio-felipee caio-felipee added this to the Sprint 12 milestone Dec 4, 2023
Copy link

vercel bot commented Dec 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
suagradeunb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2023 7:25pm

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (81f08ef) 100.00% compared to head (391368f) 100.00%.
Report is 24 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #138    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           42        45     +3     
  Lines         1028      1277   +249     
==========================================
+ Hits          1028      1277   +249     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- A verificação de validade de aulas era apenas para caso a lista não estivesse vazia, mas não verificava se a lista estava vazia e se era uma lista de inteiros.
@caio-felipee caio-felipee marked this pull request as ready for review December 5, 2023 14:04
- Added inheritance to avoid repeated code
api/api/views.py Outdated Show resolved Hide resolved
api/api/serializers.py Show resolved Hide resolved
api/api/views.py Outdated Show resolved Hide resolved
api/utils/schedule_generator.py Outdated Show resolved Hide resolved
api/utils/schedule_generator.py Outdated Show resolved Hide resolved
@caio-felipee caio-felipee merged commit 52504b6 into main Dec 6, 2023
6 checks passed
@caio-felipee caio-felipee deleted the task/schedule branch December 6, 2023 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API related to API communication back-end related to back-end development
Projects
Status: ✅ Feito
Development

Successfully merging this pull request may close these issues.

task(schedules): Gerador de grades
4 participants