-
Notifications
You must be signed in to change notification settings - Fork 447
Support favorites retrieval and modification #591
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
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.
@jorwoods thanks for the PR!
I left a few comments, and you should add a test or two as well (as you already noted)
|
Added testing, and made the favorites load in as a dictionary attached to the user item. |
The favorites item is now a dictionary. The user_item has been altered to reflect this.
e364a9c to
40cd444
Compare
581088b to
29768db
Compare
2008932 to
301c257
Compare
|
Rebased on current development branch Fixed code style issues @t8y8 does this look ready to merge? |
|
@t8y8 Anything else need to change? |
Solves #39
This may not be the intended implementation, or be how it was intended to be solved. I took a pass at it to give myself a route to modify favorites for my users. After I wrote this, I noticed stubs for it in the users endpoint, but wasn't sure if that was still the plan as favorites has a separate base url. I haven't written extensive tests for this yet.
Also wasn't sure if "Favorites" technically should have their own model, or just an endpoint. Sort of ambiguous as a favorites object would just be a wrapper around a workbook/view/project/datasource.