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

Added Remove-TeamViewerDuplicateDevicesV2 example script #30

Merged

Conversation

AchilleasMitos-TV
Copy link
Collaborator

The script searches for duplicate devices (where duplicate = have the same alias) and removes the devices with an older last-seen timestamp.

Resolves JIRA task TEAM-60324.

@AchilleasMitos-TV
Copy link
Collaborator Author

AchilleasMitos-TV commented Nov 18, 2024

@skeller-tv skeller-tv self-assigned this Nov 20, 2024
@skeller-tv skeller-tv removed their assignment Nov 20, 2024
The script searches for duplicate devices (where duplicate = have the same alias)
and removes the devices with an older last-seen timestamp.

Resolves JIRA task TEAM-60324.
@AchilleasMitos-TV AchilleasMitos-TV force-pushed the TEAM-60324_add_cleanup_duplicate_devices_script branch from c1e9b15 to ec720fa Compare November 22, 2024 15:49
@AchilleasMitos-TV
Copy link
Collaborator Author

During testing, some problems were found when more than 2 duplicate devices existed with the same name.
Pushed a change where we slightly improve the initial populating of the name_to_device_map, and also make correct the populating of the second name_to_device_map_sorted.
Also added an extra case in unit tests to cover this.

@AchilleasMitos-TV AchilleasMitos-TV merged commit b07790a into master Nov 26, 2024
1 check passed
@AchilleasMitos-TV AchilleasMitos-TV deleted the TEAM-60324_add_cleanup_duplicate_devices_script branch November 26, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants