Skip to content

Commit

Permalink
22.0.0-alpha.6
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Jun 1, 2021
1 parent 3ceb7c8 commit 1acecaa
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
github_account=nextcloud
branch=master
version+=22.0.0-alpha.5
version+=22.0.0-alpha.6

all: appstore

Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Those groups of users (or "circles") can then be used by any other app for sharing purpose.
]]>
</description>
<version>22.0.0-alpha.5</version>
<version>22.0.0-alpha.6</version>
<licence>agpl</licence>
<author>Maxence Lange</author>
<types>
Expand Down
17 changes: 9 additions & 8 deletions lib/Db/CoreQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@


/**
* Class CoreRequestBuilder
* Class CoreQueryBuilder
*
* @package OCA\Circles\Db
*/
Expand All @@ -62,20 +62,21 @@ class CoreQueryBuilder extends NC22ExtendedQueryBuilder {
const CIRCLE = 'circle';
const MEMBER = 'member';
const OWNER = 'owner';
const FEDERATED_EVENT = 'federatedEvent';
const FEDERATED_EVENT = 'federatedevent';
const REMOTE = 'remote';
const BASED_ON = 'basedOn';
const BASED_ON = 'basedon';
const INITIATOR = 'initiator';
const MEMBERSHIPS = 'memberships';
const UPSTREAM_MEMBERSHIPS = 'upstreamMemberships';
const INHERITANCE_FROM = 'inheritanceFrom';
const INHERITED_BY = 'inheritedBy';
const UPSTREAM_MEMBERSHIPS = 'upstreammemberships';
const INHERITANCE_FROM = 'inheritancefrom';
const INHERITED_BY = 'inheritedby';
const MOUNT = 'mount';
const MOUNTPOINT = 'mountpoint';
const SHARE = 'share';
const FILE_CACHE = 'fileCache';
const FILE_CACHE = 'filecache';
const STORAGES = 'storages';
const OPTIONS = 'options';
const HELPER = 'circleshelper';


public static $SQL_PATH = [
Expand Down Expand Up @@ -212,7 +213,7 @@ class CoreQueryBuilder extends NC22ExtendedQueryBuilder {


/**
* CoreRequestBuilder constructor.
* CoreQueryBuilder constructor.
*/
public function __construct() {
parent::__construct();
Expand Down
8 changes: 3 additions & 5 deletions lib/Db/MemberRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ public function getInheritedMembers(string $singleId, bool $getData = false): ar
$qb->orderBy($aliasMembership . '.inheritance_depth', 'asc')
->addGroupBy($aliasMembership . '.inheritance_depth');

// $qb->groupBy(CoreQueryBuilder::MEMBER . '.single_id');

return $this->getItemsFromRequest($qb);
}

Expand Down Expand Up @@ -359,9 +357,9 @@ public function getAlternateSingleId(IFederatedUser $federatedUser) {

$expr = $qb->expr();
$orX = $expr->orX(
$qb->exprLimitToDBField('user_id', $federatedUser->getUserId(), false, true),
$qb->exprLimitToDBFieldInt('user_type', $federatedUser->getUserType(), false),
$qb->exprLimitToDBField('instance', $qb->getInstance($federatedUser), false, false)
$qb->exprFilter('user_id', $federatedUser->getUserId()),
$qb->exprFilter('user_type', $federatedUser->getUserType()),
$qb->exprFilter('instance', $qb->getInstance($federatedUser), '', false)
);

$qb->andWhere($orX);
Expand Down
1 change: 1 addition & 0 deletions lib/Service/ShareWrapperService.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function getSharedWith(
* @param int $offset
* @param int $limit
* @param bool $getData
* @param bool $completeDetails
*
* @return ShareWrapper[]
* @throws RequestBuilderException
Expand Down

0 comments on commit 1acecaa

Please sign in to comment.