-
Notifications
You must be signed in to change notification settings - Fork 78
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
修改paddlecloud以便于PFSSever取得token #158
Conversation
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.
This PR does not pass the CI, please reveiw
paddlecloud/paddlecloud/urls.py
Outdated
@@ -31,7 +31,7 @@ | |||
url(r"^api/v1/logs/", paddlejob.views.LogsView.as_view()), | |||
url(r"^api/v1/workers/", paddlejob.views.WorkersView.as_view()), | |||
url(r"^api/v1/quota/", paddlejob.views.QuotaView.as_view()), | |||
url(r"^api/v1/file/", paddlejob.views.SimpleFileView.as_view()), | |||
url(r"^api/v1/token2user/", paddlejob.views.GetUserView.as_view()), |
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.
Why we delete the simplefile API?
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.
merge的时候出了点问题。非常感谢。
Done。
paddlecloud/paddlejob/views.py
Outdated
|
||
def get(self, request, format=None): | ||
content = { | ||
'user': unicode(request.user.username), # `django.contrib.auth.User` instance. |
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.
We use user's email as username all the time, and emails are strictly checked. Also using django's model values will return unicode typed strings by default.
So don't convert the type.
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.
Done
paddlecloud/notebook/views.py
Outdated
@@ -44,6 +44,7 @@ def get(self, request, format=None): | |||
} | |||
return Response(content) | |||
|
|||
|
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.
What does this blank line do?
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.
Done.
No description provided.