-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improve Session Management docs #1735
Conversation
npentrel
commented
Sep 1, 2023
•
edited
Loading
edited
- The sessions page actually just explains session management not necessarily with the API - so I've amended the title and description
- the current copy defines some terms multiple times or uses them before they are defined - this changes the flow.
- The usage section had a strange access the api step which seemed to just link to the API and then tell people to do the last step - we can just change the step order.
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.
Couple phrasing requests/typos addressed otherwise looks great
If a resource was used by client A and then by client B, and client A disconnects, the resource will not be stopped, regardless of possibly ongoing commands initiated by client A. | ||
{{< /alert >}} | ||
|
||
A disconnected client will attempt to establish a new session immediately prior to the next operation it performs. |
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.
This part looks great! Thank you for updating this naomi!
Co-authored-by: Sierra Guequierre <[email protected]>
@sguequierre ready for re-review |
Overall readability score: 54.7 (🟢 +0)
View detailed metrics🟢 - Shows an increase in readability
Averages:
View metric targets
|
|
||
*Session management* is a presence mechanism between a client and `viam-server`. | ||
Session management allows for safer operation of robots that physically move. | ||
As a safety precaution, the default session management configuration ensures that a robot only moves when a client is actively connected. |
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.
Really like this phrasing!
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.
thank you!
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.
LGTM couple optional rephrasing comments
|
||
First, use your [`RobotClient()`](/program/apis/#robot-api) instance to access the [`SessionsClient`](https://pkg.go.dev/go.viam.com/rdk/session) within your client SDK program. | ||
This is a [gRPC](https://grpc.io/) client that `viam-server` instantiates at robot runtime. | ||
Find `SessionsClient` defined on [GitHub](https://github.com/viamrobotics/rdk/blob/main/robot/client/client.go). |
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.
Fine with taking this out but AFAIK the rdk docs do not include everything in GitHub-- some methods are not documented or are missing comments in code (like expireLoop in SessionManager)
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.
This has just moved lower on the page! All still there :)
Co-authored-by: Sierra Guequierre <[email protected]>
Co-authored-by: Sierra Guequierre <[email protected]>
Co-authored-by: Sierra Guequierre <[email protected]>
Co-authored-by: Sierra Guequierre <[email protected]>
You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/dfaa0cab376c3a024585822c326ed0758f9f4bd2/public |