-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Circles, contact groups and user groups #13478
Comments
Does it make most sense to talk about it more at the Contributor Week in person? Or is that too late, and we should rather have another (or two) calls about this? I ask mainly because of:
Technically that’s what it does, but UX-wise it’s really similar. That’s why I think we need to coordinate this here and that one, so we don’t end up in 2 different concepts again. :)
This includes a whole lot of other things (federation of contacts, own profile etc), so this here is one part of it. Probably that issue should be renamed. :) |
Well, the approach this PR describes is more a generalization of our model of sharing entities (file/calendar) to a user/group/userdefined-group, while #11015 is about combining related entities. Yes, the linking will have the effect of allowing users to access those entities as well, but the main concept is about grouping related elements.
This issue is something we won't be able to tackle for 16 I think, regarding #11015 we already discussed that at the last hackweek and the concept is different from sharing, so I see no collision there. |
Finally, I found a way to do something nice: IEntitiesManager ! While this is a group management solution, we will take the file sharing as an example for a better overview.
(we can imagine a list of other types like federated cloud, federated users, ...) Now, let's talk about the databases table 'entities'This table will be the core of any request regarding a user or a group of users.
Uniqueness is not managed by the database. table 'entities_accounts'This table contains all 'accounts' that can be added to an entity: Local Users and Mail Addresses
Uniqueness is managed by the database using 'type' and 'account', meaning that the same mail address can be used by different owner in the 'entities' table. Of course, when sharing to a mail address, we provide completion based on the 'entities.owner_id', meaning that we only returns the known mail address if it was previously used by the user. table 'entities_members'This table will help to link 'entities_accounts' to 'entities'
table 'entities_types'This table should returns interface and class used by some of the types in the previously defined table. This looks like a descent way to have some extension to the whole system.
This table needs some improvement during the developement of the project, my guess is that the 'entities_accounts.type' will be the first field to use this table with type='local_user', interface='IEntitiesAccounts', class='OC\Entities\Accounts\LocalUser::class' Please provide feedback and comments. |
Looks good so far. I haven't re-assembled all details in my head fully, but roughly it seem to be what we discussed in the past. Maybe @nickvergessen @kesselb @blizzz @rullzer @ChristophWurst @skjnldsv @juliushaertl also want to check this out, because that is what we want to replace groups, circles and stuff like that with. |
My biggest question for talk is how we should use this.
Hope you can put those thoughts into the thingy as well :) |
That's quite interesting ... because it would mean that it changes either the original entity or creates a copy without this one user. 🤔 |
@nickvergessen : About adding entites, this could be done in 2 ways:
Not sure there is a real difference from a user point of view, I need to think about the back-end perspective. @MorrisJobke : We could use the status field in the entities_members database, even better if a sql request on bit flag value is doable. If not, we can have a text field to store that kind of data in a json that will be stored by the EntityManager, but used by the Talk app. A third solution would be that the Talk app manage the in/out conversation flag using the uuid of the entities_member (which is unique per user per group) Both are just quick answers! |
GroupAdminsIf I understand it correctly and want to apply it to group admins:
That's a bit cumbersome. To have n owners another relational table could be used. External users and groupsIf I understand correctly, backends that might bring users and groups from somewhere else like LDAP and SAML do register theirs as a type in "entities_types"? Since, right now there is one service for all users and another for all groups, so duplicating them with "local_users", "ldap_users", "saml_users", …, is perhaps not necessary, unless there is a reason for having it like that? |
GroupAdmins are just a group member with Admin rights on the current group, right ? This should be managed by the IEntityManager itself when the admin level is assigned to a member. External users and groups wont need any specific stuff. Edit: I now understand the misunderstood: 'local_user' is 'local' as from the Nextcloud. the way it authed is not important. |
Can we do a table with different examples so I can properly get a grasp on it? It's a tad complex! :)
|
Mind explaining |
Yeah, |
@daita you're right, i missed that field in the members table, sorry.
But then 'local_users' is also unnecessary? |
So ! First, on install of the Talk app, we have a new entry in the entities_types:
When you create a new talk room, it creates a new entity in the 'entities' table :
For each entity (user or group) you want to include in your room
The Talk app would also need its own table (talk_left_convo) to manage people leaving the conversation, like this:
Now, IEntity would be structured with methods that would returns members but also IQueryBuilder.
extending it would allow to rewrite the getMembers() method:
Note: adding 'slave_entity_id' in entities_members to link group_entity within a group_entity (with a limit to a certain depth) |
@blizzz : yes, sorry, I edited my answer half an hour ago about it: I think I understand the misunderstood: 'local_user' is 'local' as from the instance of Nextcloud. the way it authed is not important. We could name it 'user'. |
@skjnldsv you're right, let's do some case studies !
Note: visibility/access can be changed if you want anyone to be able to join your conversation.
|
@daita can't you use a table please? This is not very much understandable ^^ |
it isunderstandable from the sql point of view ! anyway userA is the user sharing stuff:
|
But I'm not a sql expert ;) |
|
Just a very quick feedback from an outsider perspective. We all know, naming is hard. To me it seems that |
@fwolfst you'll have to come with some better names :-) |
|
rebased, squashed, documented @MorrisJobke any chance you would have a look to the current status of the project ? |
Hi, this feature looks interesting! It's been a year in the making though, what is its current status? |
Also mentioned in the integration of Project and Teams into Dashboard. Could be worth involving the new Collectives app, which is an extension of Circles.
|
Quick post to explain why Circles might be a descent option to this issue. MembershipShould be ready for NC22, the app will not define its Circles by 'type' but using options (set by bit flag). Instead of being Personal, Public, Private or Secret a Circle will always be fully lock by default, but configurable to unlock features:
Important notes:
FederatedI am currently re-writing from scratch the concept of Federated Circles. Based this time on the work already done to have the Circles app and group files sharing compatible with Global Scale. If the Circles app is [fully] integrated to the Core, any app can share its data with any external instance of Nextcloud. SharingSharing will be improved a lot, using a dynamic table that list all Unique Id available for each user. Instead of checking all different membership. That will helps managing groups within groups. |
Problem
We have so many grouping mechanisms and they are confusing for people that don't know the technical background of them. We should unify the way those are handled into a single way of grouping users.
Idea
Idea is to have some grouping entity that is the only way of organizing a group of users and contacts.
Additionally a layer is added to the server to share to some grouping entity only and not to groups, users or federated users anymore, because those are 3 concepts that basically do the same: share something to 1...n users.
Attributes
Steps
Note: the last two steps need to be done in one release. The other ones can be done in separate major releases to be able to move this forward and not have one huge changeset that nobody can review properly.
Problems
Other approaches
Linking collaboration things™ - #11015
Design forward: How we handle Users / Groups / Circles - #4493
cc @skjnldsv @juliushaertl @rullzer @jancborchardt @ChristophWurst @danielkesselberg @blizzz @schiessle @nickvergessen @daita for feedback on this topic.
The text was updated successfully, but these errors were encountered: