-
Notifications
You must be signed in to change notification settings - Fork 60
[RSDK-3640] Implement More APP API's #379
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.
Initial pass
src/viam/app/app_client.py
Outdated
|
||
async def remove_role(self): | ||
raise NotImplementedError() | ||
# TODO: The name of a fragment HAS to be updated if any updates to its config and/or public status are being made. |
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.
what is the "TODO" here? can we remove or update this?
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.
I thought it was kind of weird that if I want to update a fragment, I have to also change its name (or pass its current name to keep it the same). This is an upstream issue but I feel like it should be made optional
…inter dereference' error.
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 or two minor things, otherwise looks good!
|
||
async def get_user_id_by_email(self): | ||
async def _get_organization_id(self) -> str: | ||
return self._organization_id if self._organization_id else await self._request_organization_id() |
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.
Where are we setting it? It seems like everything asks for org id by calling this method, but this method only returns a value, it doesn't set a parameter. Is there some call site that sets the param? It definitely looks to me like we'll have to do the async work every time here.
This PR implements and tests all of the remaining APP API's that DON'T return a 'nil pointer dereference' error from our App server. Not included in this PR are the "TODO" comments explaining when/how this error occurs.