X Tutup
Skip to content

Use the displayname of the groups#40229

Merged
phil-davis merged 4 commits intomasterfrom
use_group_displayname
Jul 27, 2022
Merged

Use the displayname of the groups#40229
phil-davis merged 4 commits intomasterfrom
use_group_displayname

Conversation

@jvillafanez
Copy link
Member

Description

Use the displayname name of the group instead of the group id in multiple places. Currently checked in the user's list and in the personal settings.

Note that for regular (local) groups, the id and the displayname is the same, so there shouldn't be any noticeable changes.

The LDAP app will rely on this for further functionality (changes for LDAP in progress)

Related Issue

https://github.com/owncloud/enterprise/issues/5071

Motivation and Context

The group id must be immutable, as it is the user id. The group displayname should be shown instead, as the displayname can be changed at any point.

How Has This Been Tested?

Checked along with a specific patch for the user_ldap app.

Screenshots (if appropriate):

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
Copy link
Contributor

phil-davis commented Jul 22, 2022

Just a note and link for reference: basic code to allow groups to have a display name was added in #26750
In practice, in core, the display name has always been the same as the Group Id.

@jvillafanez jvillafanez force-pushed the use_group_displayname branch from 0e7c885 to 95a00aa Compare July 26, 2022 08:11
@jvillafanez jvillafanez marked this pull request as ready for review July 26, 2022 08:55
@jvillafanez jvillafanez changed the title [WIP] Use the displayname of the groups Use the displayname of the groups Jul 26, 2022
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

Looks OK to me, and all tests pass. So we do not have any obvious mixup of group id and group name for core. And this is more progress supporting the ability to have the display name of a group different from the group id.

Needs review by some developer(s).

@phil-davis
Copy link
Contributor

What happens about a changelog entry?
In a way, this is a no-external-change refactoring for core. So does it require a changelog?

@jvillafanez
Copy link
Member Author

I'll add a bugfix entry taking into account that this is mainly for ldap.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

79.3% 79.3% Coverage
0.0% 0.0% Duplication

@owncloud owncloud deleted a comment from update-docs bot Jul 26, 2022
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

Changelog looks good. Let's merge this.

@phil-davis phil-davis merged commit 4705c4b into master Jul 27, 2022
@delete-merged-branch delete-merged-branch bot deleted the use_group_displayname branch July 27, 2022 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup