-
Notifications
You must be signed in to change notification settings - Fork 87
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
PoC: create and use Circles instead of Groups #1597
base: master
Are you sure you want to change the base?
Conversation
This is just a quick proof of concept, that will only be available in NC23. Will need last version of Circles from repository ( Also, lot of work to finalize this work:
|
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
5a9d365
to
316d1db
Compare
@@ -46,7 +53,15 @@ export class Api { | |||
|
|||
listGroups(): Thenable<Group[]> { | |||
const version = parseInt(OC.config.version, 10); | |||
if (version >= 14) { | |||
if (version >= 22) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is likely never back ported below 22 we can drop the older code path.
|
||
public function __construct(IDBConnection $connection, IUserMappingManager $userMappingManager) { | ||
/** | ||
* @var IEntityMappingManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we find a better naming here instead of entity?
$query->select('folder_id', 'mapping_type', 'mapping_id') | ||
->from('group_folders_manage', 'm'); | ||
|
||
$queryHelper->addCircleDetails('m', 'mapping_id'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depending on if circles is then mandatory or if groups can still be used (which I'd vote for), we should have a possible or move anything circles related to a dedicated services to also allow the app to work if circles is disabled.
This is a quick and simple PoC that replace Groups with Circles.