-
Notifications
You must be signed in to change notification settings - Fork 30
Implement update team endpoint (TS-2314) #1116
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
base: master
Are you sure you want to change the base?
Conversation
Roffenlund
commented
Mar 17, 2025
•
edited
Loading
edited
- Implement and endpoint in cyberstorm api for updating teams
- Support only updating donation_link for now
- Implement tests
- Implement service layer function for updating teams, and implement tests
- Use the service layer function in the form view responsible for updating team donation links
015f8b1
to
d0b7f20
Compare
Implement service layer function for updating teams. Support only dontation_link at the moment. Implement tests. Refs. TS-2314
Refs. TS-2314
d0b7f20
to
dfc0a3b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1116 +/- ##
==========================================
- Coverage 93.02% 93.01% -0.01%
==========================================
Files 324 324
Lines 9685 9709 +24
Branches 858 859 +1
==========================================
+ Hits 9009 9031 +22
- Misses 554 555 +1
- Partials 122 123 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any hard blockers from my side, just a few oddities I thought I'd comment on.
Feel free to adjust or merge as-is as far as I'm concerned
Also as noted in #1117 (comment), I suspect the service layer functionality should be called from within the form class implementation instead of the view |
dfc0a3b
to
1f21881
Compare
Implement APIView for updating teams. Currently support only dontation_link over PATCH request. Add URl and update tests. Refs. TS-2314
1f21881
to
589b136
Compare
589b136
to
15f11fb
Compare
d191a37
to
9d657af
Compare
9d657af
to
e77dca3
Compare
Use the service layer function in the form responsible for updating team's donation_links. Utilize the service layer function in the form's save function and update the view accordingly. In order to invoke the post-validation errors added to the form in the form tests, call form.save() in the tests as well. Implement tests for the view in a similar manner as they are implemented for the forms to assert functionality. Refs. TS-2314
e77dca3
to
595edfd
Compare