Server: Rename group display names

Created on 17 Apr 2018  路  11Comments  路  Source: nextcloud/server

image

Add an edit button next to the delete button to rename groups?!

Currently i have to create a new group, add everyone to the group, delete the old one...

0. Needs triage enhancement users and groups

Most helpful comment

... or 16 maybe? ;-)

All 11 comments

Group display names were implemented in #8255 - @nickvergessen it should be possible now to also implement the renaming, right?

Well only displaying them. For 14 we should make it possible to store the displayname in the database.

something for 15 milestone?

... or 16 maybe? ;-)

What is needed for this to be implemented? It would really be great to be able to rename groups/roles. :+1:

@redtux would you want to help out here?

@nickvergessen are the display names already stored in the database?

@violoncelloCH Depends on what needs to be done, as I am not a developer. Is this still related to #8255? (Is renaming possible in OwnCloud, so that I could have a look there?)

No, there is currently only one column:
https://github.com/nextcloud/server/blob/master/core/Migrations/Version13000Date20170718121200.php#L253-L261

So the steps would be:

  1. Add a migration to add a column to the oc_groups table
  2. Copy the ID value to the name column
  3. Adjust lib/private/Groups/ accordingly

The group object already has a dedicated method which should be used correctly everywhere.

Just registering my vote for this too. The original poster actually missed out some things from his steps obviously. Most importantly the need to copy the files into the new group and delete the old files. Not a very nice method.

Is this stalled?

Well the backend is already done, it's just missing someone to pick up the task to add it to the frontend

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juliushaertl picture juliushaertl  路  3Comments

mfechner picture mfechner  路  3Comments

mama21mama picture mama21mama  路  3Comments

williambargent picture williambargent  路  3Comments

blackcrack picture blackcrack  路  3Comments