Skip to content

Update JSON data in refresh()#611

Merged
itsmemattchung merged 1 commit into
sigmavirus24:developfrom
bluekeyes:refresh-json
May 18, 2016
Merged

Update JSON data in refresh()#611
itsmemattchung merged 1 commit into
sigmavirus24:developfrom
bluekeyes:refresh-json

Conversation

@bluekeyes
Copy link
Copy Markdown
Contributor

Otherwise, only attributes handled in _update_attributes() are refreshed and new values from the response are not available.

I ran into this with pull requests, where calling refresh() did not add the changed_files attribute that was available when fetching the PR directly. I suspect the same problem exists with other models.

Otherwise, only attributes handled in _update_attributes() are refreshed
and new values from the response are not available.
@bluekeyes
Copy link
Copy Markdown
Contributor Author

Forgot to run with Python 3 initially, but I think the test is fixed now.

@itsmemattchung itsmemattchung merged commit dc5517c into sigmavirus24:develop May 18, 2016
@itsmemattchung
Copy link
Copy Markdown
Contributor

Good catch @bluekeyes . Thanks for the PR. 🍰

@bluekeyes bluekeyes deleted the refresh-json branch May 18, 2016 03:49
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.

2 participants