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

RSDK-4952 - pass priority attribute #215

Conversation

purplenicole730
Copy link
Member

@purplenicole730 purplenicole730 commented Oct 24, 2023

Related TS SDK change
Jira ticket

Allowing for a custom priority attribute to be pushed in.

Tested with a board running the MicroRDK to confirm default and customized priority works as expected. Also tested with a robot running the regular RDK (with and without a priority attribute) to confirm everything else still works. The echo example was also run to confirm it ran smoothly.

@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 24, 2023
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 24, 2023
@purplenicole730 purplenicole730 marked this pull request as ready for review October 24, 2023 17:29
@maximpertsov
Copy link
Contributor

viamrobotics/viam-typescript-sdk#181 (comment)

This comment actually applies to this PR more than the one I posted it on 🙂

@purplenicole730
Copy link
Member Author

viamrobotics/viam-typescript-sdk#181 (comment)

This comment actually applies to this PR more than the one I posted it on 🙂

Done!

rpc/js/src/dial.ts Outdated Show resolved Hide resolved
rpc/js/src/peer.ts Outdated Show resolved Hide resolved
rpc/js/src/peer.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@maximpertsov maximpertsov left a comment

Choose a reason for hiding this comment

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

undefined + string concat issue, otherwise looks good

(it's not you, it's JavaScript)

Co-authored-by: Maxim Pertsov <[email protected]>
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 25, 2023
Copy link
Contributor

@maximpertsov maximpertsov left a comment

Choose a reason for hiding this comment

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

so sorry, I copy-pasted the same code suggestion for each case where we were appending, but the vars are slightly different. everything else looks good!

rpc/js/src/peer.ts Outdated Show resolved Hide resolved
rpc/js/src/peer.ts Outdated Show resolved Hide resolved
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 25, 2023
Copy link
Member

@cheukt cheukt left a comment

Choose a reason for hiding this comment

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

looks pretty good! just want to make our additions as extensible as possible

rpc/js/src/dial.d.ts Outdated Show resolved Hide resolved
rpc/js/src/dial.ts Outdated Show resolved Hide resolved
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 26, 2023
Copy link
Member

@cheukt cheukt left a comment

Choose a reason for hiding this comment

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

a few smaller nits

rpc/js/src/peer.ts Outdated Show resolved Hide resolved
rpc/js/src/peer.d.ts Outdated Show resolved Hide resolved
rpc/js/src/peer.ts Show resolved Hide resolved
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 26, 2023
Copy link
Member

@npmenard npmenard left a comment

Choose a reason for hiding this comment

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

LGTM

@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 26, 2023
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 26, 2023
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 26, 2023
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 26, 2023
@purplenicole730 purplenicole730 merged commit b2903aa into viamrobotics:main Oct 26, 2023
5 checks passed
@purplenicole730 purplenicole730 deleted the RSDK-4952-unseat-webrtc-connection branch October 26, 2023 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Mark as safe to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants