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

(WIP) ui: display closed sessions, add username and session status filter #80268

Closed
wants to merge 2 commits into from

Conversation

gtr
Copy link
Contributor

@gtr gtr commented Apr 20, 2022

Fixes #67888, #79914.

Previously, the sessions page UI did not support displaying closed
sessions and did not support the ability to filter by username or
session status. This commit adds the "Closed" session status to closed
sessions and adds the ability to filter by username and session status.

Release note (ui change): sessions overview and session details pages now
display closed sessions; sessions overview page now has username and session
status filters.

Gerardo Torres added 2 commits April 20, 2022 13:57
This is the second phase of #67888 which is to expose closed sessions to
the ListSessions endpoint.

Previously, the ListSessions endpoint only returned open sessions. This
change builds on top of the previous PR to add the `ClosedSessionsCache`
and now allows the ListSessions endpoint to also return closed sessions
in its response. The `ListSessionsRequest` object was edited to include a flag
`exclude_closed_sessions` which is a boolean to exclude closed sessions. If
unspecified, defaults to false and closed sessions are included in the
response.

Additionally, the `serverpb.Session` object was updated
to include new `end` and `status` fields which specify the time the
session ended and the status (active, idle, closed) of the session,
respectively.

Release note (api change): `ListSessions` now returns closed sessions in
addition to open sessions; `ListSessionsRequest` now has a
`exclude_closed_sessions` flag; `serverpb.Session` now has `end` and `status`
fields.
Fixes #67888, #79914.

Previously, the sessions page UI did not support displaying closed
sessions and did not support the ability to filter by username or
session status. This commit adds the "Closed" session status to closed
sessions and adds the ability to filter by username and session status.

Release note (ui change): sessions overview and session details pages now
display closed sessions; sessions overview page now has username and session
status filters.
@gtr gtr requested a review from a team April 20, 2022 20:39
@gtr gtr requested review from a team as code owners April 20, 2022 20:39
@gtr gtr requested a review from a team April 20, 2022 20:39
@gtr gtr requested a review from a team as a code owner April 20, 2022 20:39
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@gtr gtr closed this Apr 20, 2022
@gtr gtr reopened this Apr 20, 2022
@gtr gtr removed request for a team April 20, 2022 20:40
@gtr gtr linked an issue Apr 20, 2022 that may be closed by this pull request
@gtr gtr marked this pull request as draft April 20, 2022 20:42
@gtr gtr changed the title ui: display closed sessions, add username and session status filter (WIP) ui: display closed sessions, add username and session status filter Apr 20, 2022
@gtr gtr closed this Apr 22, 2022
@gtr
Copy link
Contributor Author

gtr commented Apr 22, 2022

Moved to #80410.

@gtr gtr deleted the gtr-sessions-response branch January 10, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants