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: remove usergroup injection from org project groups to prevent duplicates #3744

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Jun 17, 2024

General Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

Database Migrations

  • If your PR contains a database migation, it MUST be the latest in date order alphabetically

If an organization owner was a member of a group and also the organization owner, when viewing the groups of a project it would result in duplicate groups appearing due to the way the resolver consolidated groups.

This fix is to remove the part of the resolver where the users groups are injected into the resulting projects groups so that only groups attached to the project are returned.

Due to the way groups work in Lagoon prior to organizations, there exists the possibility that a group that did not exist within the organization could have been attached to a project, however this is unlikely (but not impossible)

@shreddedbacon shreddedbacon added this to the 2.20.0 milestone Jun 17, 2024
@shreddedbacon shreddedbacon force-pushed the fix-organization-groups branch from e72f4f7 to b87e93d Compare June 18, 2024 02:47
@shreddedbacon shreddedbacon force-pushed the fix-organization-groups branch from b87e93d to 6fb6812 Compare June 18, 2024 02:50
@shreddedbacon shreddedbacon marked this pull request as ready for review June 19, 2024 21:35
Copy link
Member

@tobybellwood tobybellwood left a comment

Choose a reason for hiding this comment

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

This resolves the issue as experienced.

@tobybellwood tobybellwood merged commit a8ec744 into main Jun 23, 2024
1 check passed
@tobybellwood tobybellwood deleted the fix-organization-groups branch July 4, 2024 22:14
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.

2 participants