Skip to content
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

Adding support for 'getWorkbookPdf' endpoint of REST API #376

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

shinchris
Copy link
Contributor

No description provided.

Copy link
Contributor

@graysonarts graysonarts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@@ -44,6 +45,13 @@ def created_at(self):
def id(self):
return self._id

@property
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you remember why we did this pattern of lazy population?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many moons ago, it was because we didn't want to "make any calls the user didn't ask for".

Originally it populated a static list for things like Views in Workbooks; but when we needed paging for nested lists (Users in Groups), I converted everything to an on-demand function call; sometimes this is nice because you can filter or change the paging parameters of nested items. I didn't take it the whole way to making the property take request options and handling all of them to just hidden on-demand calls. Lee had some qualms about mixing requests and models, if I recall. Here, where I bind a secret function to the property was as far as we got :P

@shinchris shinchris merged commit 68a5159 into development Jan 30, 2019
@shinchris shinchris deleted the workbook_pdf branch January 30, 2019 20:57
@graysonarts graysonarts mentioned this pull request Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants