Skip to content

[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

Merged
16 commits merged into from Aug 17, 2023
Merged

[RSDK-3640] Implement More APP API's #379

16 commits merged into from Aug 17, 2023

Conversation

ghost
Copy link

@ghost ghost commented Aug 9, 2023

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.

@ghost ghost requested review from njooma and stuqdog August 9, 2023 21:29
@ghost ghost self-requested a review as a code owner August 9, 2023 21:29
Copy link
Member

@njooma njooma left a comment

Choose a reason for hiding this comment

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

Initial pass

@ghost ghost requested a review from njooma August 10, 2023 18:04

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.
Copy link
Member

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?

Copy link
Author

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

@ghost ghost requested a review from stuqdog August 11, 2023 15:32
Copy link
Member

@stuqdog stuqdog left a 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()
Copy link
Member

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.

@ghost ghost requested a review from stuqdog August 14, 2023 13:40
@ghost ghost merged commit 69487f4 into viamrobotics:main Aug 17, 2023
@ghost ghost deleted the RSDK-3640/finish-app-api branch August 17, 2023 19:40
This pull request was closed.
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.

3 participants