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

Add milestones to backend #91

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Add milestones to backend #91

merged 1 commit into from
Sep 27, 2024

Conversation

lkeegan
Copy link
Member

@lkeegan lkeegan commented Sep 25, 2024

  • add/update Milestone models and admin endpoints in backend
  • add Milestone components to frontend

Also make endpoint naming more consistent

  • use plurals for all collections of entities
  • use PUT instead of PATCH since these endpoints take the entire entity, not just selected fields to update

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 88.36207% with 27 lines in your changes missing coverage. Please review.

Project coverage is 20.62%. Comparing base (bbea732) to head (1744f2a).
Report is 36 commits behind head on main.

Files with missing lines Patch % Lines
frontend/src/lib/admin.ts 0.00% 10 Missing ⚠️
...ib/components/Admin/EditMilestoneGroupModal.svelte 0.00% 5 Missing ⚠️
mondey_backend/src/mondey_backend/routers/utils.py 90.69% 4 Missing ⚠️
frontend/src/lib/components/Admin/Languages.svelte 0.00% 2 Missing ⚠️
...nd/src/lib/components/Admin/MilestoneGroups.svelte 0.00% 2 Missing ⚠️
frontend/src/lib/stores/adminStore.ts 0.00% 1 Missing and 1 partial ⚠️
...y_backend/src/mondey_backend/routers/milestones.py 92.30% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
+ Coverage   18.41%   20.62%   +2.21%     
==========================================
  Files          73       75       +2     
  Lines        3068     3088      +20     
  Branches      106      107       +1     
==========================================
+ Hits          565      637      +72     
+ Misses       2450     2397      -53     
- Partials       53       54       +1     

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

@lkeegan lkeegan force-pushed the backend_milestone_endpoints branch 5 times, most recently from 9d2c090 to b083883 Compare September 26, 2024 07:03
- add/update Milestone, MilestoneText, MilestoneImage models
- add admin endpoints to create / update / delete milestones

Make endpoint naming more consistent

- use plurals for all collections of entities
- use PUT instead of PATCH since these endpoints take the entire entity, not just selected fields to update

Refactor

- use factory pattern for app and routers to make it easier to modify app settings in tests
- extract common router code into utils
- extend and refactor backend tests
Copy link

sonarcloud bot commented Sep 26, 2024

@lkeegan lkeegan requested a review from MaHaWo September 26, 2024 07:13
@MaHaWo
Copy link
Collaborator

MaHaWo commented Sep 26, 2024

... started review, but need some more time ...

@MaHaWo MaHaWo merged commit 3e90c1f into main Sep 27, 2024
7 checks passed
@MaHaWo MaHaWo deleted the backend_milestone_endpoints branch September 27, 2024 06:28
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.

3 participants