-
Notifications
You must be signed in to change notification settings - Fork 452
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
Create channel api endpoint #2175
Conversation
Can one of the admins verify this patch? |
@whirm ready |
@@ -122,3 +124,7 @@ def get_channel_list(self): | |||
:return: The list of all channel objects. | |||
""" | |||
return self._channel_list | |||
|
|||
|
|||
class DuplicateChannelNameError(Exception): |
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 would move this to the exceptions.py
file in Tribler/Core
.
Please also update the documentation with your endpoint description and our new error handling scheme, see here. |
Other than that, good work 👍 |
@brussee I see some files you created in the |
@devos50 They are 3 .gitignore files that prevent hundreds of untracked files polluting my git status every time I switch branches from the new Android app to any feature branch from devel. |
The error callback is not called in the HTTP 500 response tests. |
retest this please |
2 similar comments
retest this please |
retest this please |
@whirm Ready for your review |
""" | ||
This class gracefully takes care of unhandled exceptions raised during the processing of any request. | ||
""" | ||
defaultContentType = b"text/json" |
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.
@lfdversluis @devos50 after this commit is merged, all the setcontent type calls can be removed from all endpoints
Also, there's a few things not covered and tests are failing |
1ef043e
to
bf056ea
Compare
@whirm Ready. 100% test coverage! |
@whirm I would like to see this one merged before I'm going to refactor the |
@@ -0,0 +1,8 @@ | |||
*.iml |
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.
Please, merge all the gitignore files with the main one.
Looks great, merge the gitignores, rebase and I'll merge |
@whirm done! |
Why are channel names required to be unique? -> Design decision.
And why the silent fail? on channel_manager.py:70 -> Solved.