-
Notifications
You must be signed in to change notification settings - Fork 84
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
Improve handling if user does not have access to the server #3982
Conversation
Let's show an error message like in https://worksheets.codalab.org/worksheets/0xbd86869844074a02aced04b5959153 for consistency: |
@jzwang43 Are some unit tests still failing? |
Seems to be a test issue not with the dockerfiles that I fixed. |
Is this related to the test cases you and Ashwin wrote? What is the next step? @jzwang43 |
@epicfaace I have updated the code to use the error message you mentioned. Can I get a review on this? Thanks. |
codalab/rest/schemas.py
Outdated
@@ -307,6 +306,7 @@ class UserSchema(Schema): | |||
url = fields.Url(allow_none=True) | |||
date_joined = fields.LocalDateTime("%c") | |||
avatar_id = fields.String(allow_none=True) | |||
has_access = fields.String(allow_none=False) |
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 should be a Boolean I think
Reasons for making this change
Related issues
Fixes #3961
Screenshots
Shows alert if user doesn't have access to the server:
Checklist