-
Notifications
You must be signed in to change notification settings - Fork 27
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 TeamCreateAPI view #937
base: add-delete-user-endpoint
Are you sure you want to change the base?
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
a4d49e7
to
f078a48
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## add-delete-user-endpoint #937 +/- ##
===========================================================
Coverage ? 93.07%
===========================================================
Files ? 299
Lines ? 8755
Branches ? 780
===========================================================
Hits ? 8149
Misses ? 500
Partials ? 106 ☔ View full report in Codecov by Sentry. |
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.
Small but important changes needed
|
||
form = CreateTeamForm( | ||
user=request.user, | ||
data=request.data, |
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.
Neve ruse request.data directly when you use serializers to validate it; use serializer.validated_data
name = serializers.CharField() | ||
|
||
|
||
class TeamCreateAPIView(APIView): |
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.
Missing permission classes (user needs to be authenticated)
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.
All of the new views should now have IsAuthenticated
e8ddb16
to
c462637
Compare
f444a59
to
f5c8062
Compare
f5c8062
to
b8383d7
Compare
24bbf7f
to
9776b9d
Compare
b8383d7
to
dcd169a
Compare
9776b9d
to
0645608
Compare
dcd169a
to
36350db
Compare
0645608
to
01b117e
Compare
36350db
to
4e6236d
Compare
01b117e
to
1d0e07f
Compare
5a9efff
to
ee40259
Compare
1d0e07f
to
018e671
Compare
ee40259
to
827af8b
Compare
018e671
to
6f34766
Compare
827af8b
to
18c615f
Compare
No description provided.