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

Sorting active rdp sessions upon connection #6170

Closed
SMART-ALEX-T opened this issue Jun 11, 2024 · 10 comments · Fixed by #6177
Closed

Sorting active rdp sessions upon connection #6170

SMART-ALEX-T opened this issue Jun 11, 2024 · 10 comments · Fixed by #6177
Assignees

Comments

@SMART-ALEX-T
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Need to sort active RDP sessions alphabetically when clicking the button to connect to the terminal server. It is not convenient to scroll through the list if there are a large number of sessions.

Describe the solution you'd like
A clear and concise description of what you want to happen.

When I click connect, the list of sessions should be sorted by username - alphabetically. Or there should be a button that allows you to sort this list.

@si458 si458 self-assigned this Jun 12, 2024
@si458
Copy link
Collaborator

si458 commented Jun 12, 2024

im assuming your list looks like below and you only want to sort it by the username and not including the hostname?
(can you share example screenshot?)
BEFORE:

Connected, Console
Active, RDP-Tcp#0 - ACFTP2022/Administrator
Active, RDP-Tcp#1 - ACFTP2022/User1
Active, RDP-Tcp#2 - ACFTP2022/Fred
Active, RDP-Tcp#3 - ACFTP2022/User2
Active, RDP-Tcp#4 - ACFTP2022/Jones

AFTER:

Connected, Console
Active, RDP-Tcp#0 - ACFTP2022/Administrator
Active, RDP-Tcp#2 - ACFTP2022/Fred
Active, RDP-Tcp#4 - ACFTP2022/Jones
Active, RDP-Tcp#1 - ACFTP2022/User1
Active, RDP-Tcp#3 - ACFTP2022/User2

@SMART-ALEX-T
Copy link
Author

Yes, that's exactly right

image

@si458
Copy link
Collaborator

si458 commented Jun 13, 2024

Ok! So I'll do a value u can set inside if your domains section in config.json
So u can say sort by terminal id OR sort my username or none!
As ur screenshot shows both the username and the terminal id as not sorted haha

I'm guessing its listing them by most recent activity first

@SMART-ALEX-T
Copy link
Author

Thank you, this will be what we need

@si458
Copy link
Collaborator

si458 commented Jun 13, 2024

ok ive added an option called userSessionsSort under the domains section of config.json
so this will apply to all users in per domain basis!

Arange the Connect sessions offered when multiple Terminal Sessions are present by 'SessionId', 'StationName' or 'Username' with 'SessionId' as the default sorting criteria.

@SMART-ALEX-T
Copy link
Author

Unfortunately, the sessions are not sorted.
image
image

@si458
Copy link
Collaborator

si458 commented Jun 14, 2024

i have only just merged it!
so you have to wait for a new release,
OR
stop meshcentral, npm install Ylianst/MeshCentral, start meshcentral - NPM
OR
image: ghcr.io/ylianst/meshcentral:master DOCKER

p.s. anything with an _ in front of it is ignored! so you should be using "userSessionsSort": "Username"

@SMART-ALEX-T
Copy link
Author

Thank you very much! Now everything works. :)

@si458
Copy link
Collaborator

si458 commented Jun 14, 2024

@SMART-ALEX-T just be aware,
using those install methods above, basically latch onto the LATEST code in the master repo,
so the could be bugs/issues! but if you spot things, do open new issues and report them :)

p.s. can u share screenshots of it working hehe, would be nice to see its all ok

@SMART-ALEX-T
Copy link
Author

Certainly)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants