Skip to content

Conversation

@phil-davis
Copy link
Contributor

@phil-davis phil-davis commented Aug 3, 2022

Description

When getting a group, the getGroupDetails method could be called for a group that does not exist. That is unnecessary and may cause a group backend implementation to log an error. The code has been refactored to avoid this happening.

This was noticed while developing user_ldap changes related to group display names. See my comment: owncloud/user_ldap#748 (comment)

Related Issue

None

How Has This Been Tested?

CI - all existing group-related unit and acceptance tests are passing.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@phil-davis phil-davis self-assigned this Aug 3, 2022
@phil-davis phil-davis force-pushed the refactor-getGroupObject branch 2 times, most recently from 5b4e964 to a7aa7de Compare August 3, 2022 09:34
@owncloud owncloud deleted a comment from update-docs bot Aug 3, 2022
@phil-davis phil-davis marked this pull request as ready for review August 3, 2022 09:40
@phil-davis phil-davis force-pushed the refactor-getGroupObject branch from a7aa7de to 6f73b1d Compare August 3, 2022 11:14
@phil-davis phil-davis requested a review from jvillafanez August 3, 2022 11:15
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 2 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@phil-davis phil-davis merged commit 96b4469 into master Aug 3, 2022
@delete-merged-branch delete-merged-branch bot deleted the refactor-getGroupObject branch August 3, 2022 12:31
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