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

Fix incorrect frame data access in Preview widget. #731

Merged

Conversation

bcipriano
Copy link
Collaborator

Link the Issue(s) this Pull Request is related to.
#730

Summarize your change.
Fix data access to use the wrapper method, which already properly access gRPC object data as needed. I've also cleaned up some of the styling in the surrounding code and added a docstring to the class to make it clear the data types being used.

@bcipriano
Copy link
Collaborator Author

@gregdenton @larsbijl Ping, this needs a review please.

Copy link
Collaborator

@gregdenton gregdenton left a comment

Choose a reason for hiding this comment

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

LGTM. To be clear, this is really clean up to shift any data access exceptions to the wrapper rather than accessing the data directly off the object.

@bcipriano
Copy link
Collaborator Author

Yeah sorry, the "incorrect" part here is that the code was using lastResource instead of last_resource.

@bcipriano bcipriano merged commit f9a331c into AcademySoftwareFoundation:master Aug 5, 2020
@bcipriano bcipriano deleted the fix-preview-access branch August 5, 2020 19:22
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

2 participants