-
Notifications
You must be signed in to change notification settings - Fork 64
[RSDK-3639] Create Location Client #372
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.
Some changes:
- Need tests
- Why are robot/robot part/fragment/role/etc. methods here? These seem like app apis, not location APIs
- Default to getting all logs seems like not a great idea. It could take a really really long time and also the memory footprint of the result could be very large. I think we paginate
- Some basic formatting requests
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.
Nice, this is looking pretty good! Some requested semantic/documentation changes, and piggy backing on some of Naveed's points. I generally agree with his high level comments, and added some brief thoughts on splitting up the robot APIs into a separate client.
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.
Looking good! Some comments/requested changes but mostly pretty minor.
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.
One comment on the region
question. Otherwise, looks good! We should hold off on release until testing is done.
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.
forgot to submit this review yesterday, sorry! I see that some changes have happened since I looked; I'll take another look and submit any additional comments.
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.
(q) a bit of a tangent, but why do we check this in at all? seems like a good thing to put in the .gitignore
…ead of number of log pages.
This PR implements our LocationClient class, a class that exposes methods that make calls to the location service, and adds it as a property under out AppClient class. Right now, only the methods that've been labeled as high-priority have been implemented. The class also includes 3 shadow classes that essentially copy proto-defined classes but convert the Structs within those definitions to dictionaries and some Timestamps to Python datetimes. This specific PR also includes docstrings for the class. I'll make separate tickets and PR's for adding a snippet in the example notebook showing how to use the location_client and also some unit tests that depend on a mock location service.