netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.76k stars 485 forks source link

Optimize JWT Group Sync #2108

Closed bcmmbaga closed 3 months ago

bcmmbaga commented 3 months ago

Describe your changes

Optimizes the JWT group sync process by preventing unnecessary account saves and network map generation when there are no changes in JWT group membership. Additionally, it addresses a bug where the last API group added to the user's auto groups was being removed unintentionally.

Issue ticket number and link

Checklist

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
1 Accepted issue

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud