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

Support to manage user sessions in the landing page #385

Open
qiaozhi199 opened this issue Dec 18, 2024 · 1 comment
Open

Support to manage user sessions in the landing page #385

qiaozhi199 opened this issue Dec 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@qiaozhi199
Copy link

Is your feature request related to a problem? Please describe.

Currently, I need to manually execute the kubectl command on the backend to clean up the user sessions, as follows:
kubectl get sessions.theia.cloud -n theia-cloud | grep '<username>'
kubectl delete sessions.theia.cloud -n theia-cloud xxxxxxxxxx

Also, sometimes the number of user sessions will exceed the sessionsPerUser configuration item of the operator component, causing a new session to fail to start.

In the landing-page development plan, is there support for managing user sessions on the login page?

Describe the solution you'd like

Support to manage user sessions in the landing page.

Describe alternatives you've considered

nothing

Cluster provider

No response

Additional information

No response

@qiaozhi199 qiaozhi199 added the enhancement New feature or request label Dec 18, 2024
@jfaltermeier
Copy link
Contributor

Hi qiaozhi199,

We offer a REST API that can be easily used with our npm common package:
https://www.npmjs.com/package/@eclipse-theiacloud/common
https://theia-cloud.io/documentation/customizetheiacloud/#theia-cloud-common-api

There are endpoints available for listing user sessions (https://github.com/eclipse-theia/theia-cloud/blob/main/documentation/api/Apis/SessionResourceApi.md#servicesessionappiduserget) and stopping them (https://github.com/eclipse-theia/theia-cloud/blob/main/documentation/api/Apis/SessionResourceApi.md#servicesessiondelete).

While we don't currently provide prebuilt UI components for this, you should be able to implement your own UI using the above APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants