-
Notifications
You must be signed in to change notification settings - Fork 16
Reconfigured the client #2
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
Conversation
Changes Unknown when pulling eb65fd3 on redux into * on master*. |
Note that the client now becomes quite thin/dumb. |
@benpatterson can you look into the multiple Travis builds issue for this repo? |
@benpatterson also, please disable coveralls comments. |
Changes Unknown when pulling 616969b on redux into * on master*. |
Changes Unknown when pulling 39efb48 on redux into * on master*. |
@clintonb you can address the multiple Travis builds issue by adding the following to this repo's branches:
only:
- master For an example, refer to edx/ecommerce's Travis configuration. |
@clintonb nicely done. However, this is a more drastic change that I'd envisioned when commenting. I do see the beauty of no longer needing to maintain the client to get access to server methods. But - don't kill me - if we switch over to having developers explicitly interact with slumber's REST api, then rewriting slumber exceptions seems more confusing than helpful. Of course, if the exception-rewriting part were removed there'd be almost nothing left in this client except a wrapper around API.init, which makes me curious what the main intent for separating out the client was. |
Changes Unknown when pulling 4ea334d on redux into * on master*. |
@jimabramson The biggest benefit of the wrapper is removing the need for consumers to understand JWT. The client definitely needs to be separated from LMS so that it can be consumed by both LMS and our acceptance tests. I can go either way on the exceptions. |
@clintonb thanks, makes sense - in that case I think I would be in favor On Friday, May 1, 2015, Clinton Blackburn notifications@github.com wrote:
|
Changes Unknown when pulling 54cd879 on redux into * on master*. |
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.
@jimabramson Any opposition to the imports here? Consumers are slightly cleaner since they don't have to import slumber directly.
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.
that seems good, yeah.
👍 |
- Inheriting directly from Slumber to avoid having to update the client anytime an endpoint is added/removed. - Using custom exceptions specific to this client.
Changes Unknown when pulling 3e0fe44 on redux into * on master*. |
👍 |
@jimabramson This is in response to your comment about exceptions. FYI @rlucioni