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

Fix username dedup for synthetic users #553

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Conversation

JulienTant
Copy link
Member

Summary

When creating a new synthetic user, the synthetic user is being given a username of msteams_[username]. If this is not available, we want to suffix this with -{idx}. The current code would add -{idx} at the end of each iteration, leading to the username looking like msteams_[username]-1-2-3-4 instead of msteams_[username]-4.

This PR fixes this issue.

Ticket Link

N/A

Copy link
Member

@lieut-data lieut-data left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor

@enahum enahum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may conflict with #545

@lieut-data lieut-data added this to the v1.10 milestone Mar 18, 2024
@JulienTant
Copy link
Member Author

JulienTant commented Mar 18, 2024

@enahum I don't mind dealing with the conflict if you wanna merge your branch first! I don't think this is super urgent: we would need at least three users with the exact same username for this to happen, and this is not anything that would put the plugin in a broken state.

@JulienTant JulienTant added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Mar 18, 2024
@JulienTant JulienTant requested a review from lindy65 March 18, 2024 20:54
@JulienTant JulienTant removed the 2: Dev Review Requires review by a core committer label Mar 18, 2024
@sbishel sbishel modified the milestones: v1.10, v1.11 Mar 19, 2024
@JulienTant JulienTant removed the request for review from lindy65 March 22, 2024 18:36
@JulienTant JulienTant removed the 3: QA Review Requires review by a QA tester label Mar 26, 2024
@sbishel sbishel modified the milestones: v1.11, v1.12 Apr 3, 2024
@JulienTant JulienTant merged commit 28db673 into main Apr 16, 2024
7 checks passed
@JulienTant JulienTant deleted the username-dedup-errors branch April 16, 2024 18:26
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.

4 participants