-
-
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
EntitiesManager #15357
EntitiesManager #15357
Conversation
Status update about EntitiesManager. Please note that this is a WIP and the main purpose of the command lines is to test and see how everything handling together. Missing features:
./occ entities:installwill reset all data from the entities_* tables and create the basic implementation of the interfaces used to manage entities and accounts: A quick overview on the basic implementations:
Visibility, membership and ownership will be used when searching for a contact/account/group when sharing an object (file ?). ./occ entities:migrationwill migrate current users and groups into the Entities Manager. This example shows all type of Ids used in the Entities Manager:
./occ entities:manage:createa command line to create entity, account or member. The basic syntax is:
item can be entity, account or member Based on the chosen item, some Options are available (and some are mandatory):
As an example, we will add a Mail account in the database. As a side note, the duplicity is managed by the implementation of the IEntitiesAccountsSearchDuplicate interface. Our class MailAddress check if type and account does not exists already: Once the Mail account is added to the database, we will create an entity that will allow the 'cult' user to search for this mail address when sharing a file:
Then, we add the account of the mail address as a normal member of the generated entity.
./occ entities:searchUsed to search an entity. This is the typical result to be expected when sharing a file: It can also be used to search for an account: ./occ entities:detailsreturns details about an entity or an account: |
666c02d
to
4014b36
Compare
Then do this - add a PR to the 3rdparty repo, check out the branch in the server repo's 3rdparty folder and add this updated submodule to this PR here. Then for testing only "git submodule update" is needed 😉 |
@MorrisJobke will do. I just wanted a quick review/first tests before adding 3rd party to the core ! |
f0e7da5
to
6b0bd20
Compare
f3fdb73
to
c8bf016
Compare
b89a46a
to
3c524eb
Compare
Signed-off-by: Maxence Lange <[email protected]> some more Signed-off-by: Maxence Lange <[email protected]> fixing stuff, better details Signed-off-by: Maxence Lange <[email protected]> still working on details Signed-off-by: Maxence Lange <[email protected]> details on members Signed-off-by: Maxence Lange <[email protected]> --short option Signed-off-by: Maxence Lange <[email protected]> create entities from command line Signed-off-by: Maxence Lange <[email protected]> cleaner way to check for owner Signed-off-by: Maxence Lange <[email protected]> search within accounts Signed-off-by: Maxence Lange <[email protected]> import displayName during migration Signed-off-by: Maxence Lange <[email protected]> display result in table Signed-off-by: Maxence Lange <[email protected]> admin right, some cleaning and sql logging Signed-off-by: Maxence Lange <[email protected]> add comments to sql log Signed-off-by: Maxence Lange <[email protected]> log exception from sql execution Signed-off-by: Maxence Lange <[email protected]> fixing and cleaning ! Signed-off-by: Maxence Lange <[email protected]> fixing Signed-off-by: Maxence Lange <[email protected]> generate viewer and caching data Signed-off-by: Maxence Lange <[email protected]> cleaning Signed-off-by: Maxence Lange <[email protected]> limit visibility Signed-off-by: Maxence Lange <[email protected]> fixing default visibility on local user entity Signed-off-by: Maxence Lange <[email protected]> options and visibility level for admin Signed-off-by: Maxence Lange <[email protected]> better way to test EM Signed-off-by: Maxence Lange <[email protected]> new Session command Signed-off-by: Maxence Lange <[email protected]> nc-small-php-tools Signed-off-by: Maxence Lange <[email protected]> fix creation+deleteOn Signed-off-by: Maxence Lange <[email protected]>
3c524eb
to
4b79a8d
Compare
Signed-off-by: Maxence Lange <[email protected]>
Let's move this to 18. |
I'm going to close this due to lack of activity. |
#13478: EntitiesManager
Fix #10292
You need to run
git submodule update
!Currently, the visibility of all groups is a checkbox to allow sharing from people outside a group to the people within a group. This will be changed in EntitiesManager: