Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
['name' => 'attachment#delete', 'url' => '/cards/{cardId}/attachment/{attachmentId}', 'verb' => 'DELETE'],
['name' => 'attachment#restore', 'url' => '/cards/{cardId}/attachment/{attachmentId}/restore', 'verb' => 'GET'],


// labels
['name' => 'label#create', 'url' => '/labels', 'verb' => 'POST'],
['name' => 'label#update', 'url' => '/labels/{labelId}', 'verb' => 'PUT'],
Expand All @@ -91,7 +90,6 @@
['name' => 'board_import_api#getConfigSchema', 'url' => '/api/v{apiVersion}/boards/import/config/schema/{name}','verb' => 'GET'],
['name' => 'board_import_api#import', 'url' => '/api/v{apiVersion}/boards/import','verb' => 'POST'],


['name' => 'stack_api#index', 'url' => '/api/v{apiVersion}/boards/{boardId}/stacks', 'verb' => 'GET'],
['name' => 'stack_api#getArchived', 'url' => '/api/v{apiVersion}/boards/{boardId}/stacks/archived', 'verb' => 'GET'],
['name' => 'stack_api#get', 'url' => '/api/v{apiVersion}/boards/{boardId}/stacks/{stackId}', 'verb' => 'GET'],
Expand Down
1 change: 0 additions & 1 deletion lib/Cache/AttachmentCacheHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Cache;

use OCP\ICache;
Expand Down
1 change: 0 additions & 1 deletion lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class Capabilities implements ICapability {
private IAppManager $appManager;
private PermissionService $permissionService;


public function __construct(IAppManager $appManager, PermissionService $permissionService) {
$this->appManager = $appManager;
$this->permissionService = $permissionService;
Expand Down
1 change: 1 addition & 0 deletions lib/Command/CalendarToggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Command;

use OCP\IConfig;
Expand Down
1 change: 1 addition & 0 deletions lib/Command/TransferOwnership.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Command;

use OCA\Deck\Db\BoardMapper;
Expand Down
1 change: 1 addition & 0 deletions lib/Controller/AttachmentApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Controller;

use OCA\Deck\Db\Attachment;
Expand Down
1 change: 1 addition & 0 deletions lib/Controller/AttachmentApiV11Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Controller;

class AttachmentApiV11Controller extends AttachmentApiController {
Expand Down
1 change: 1 addition & 0 deletions lib/Controller/AttachmentOcsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Controller;

use OCA\Deck\NotImplementedException;
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/BoardApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\DataResponse;
use OCP\IRequest;

use function Sabre\HTTP\parseDate;

/**
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/CardOcsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public function create(string $title, int $stackId, ?int $boardId = null, ?strin
return new DataResponse($card);
}


#[NoAdminRequired]
#[PublicPage]
public function assignLabel(?int $boardId, int $cardId, int $labelId): DataResponse {
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/CommentsApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use OCA\Deck\StatusException;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\DataResponse;

use OCP\AppFramework\OCSController;
use OCP\IRequest;

Expand Down
1 change: 0 additions & 1 deletion lib/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Controller;

use OCA\Deck\Db\Card;
Expand Down
2 changes: 0 additions & 2 deletions lib/Controller/StackController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

use OCA\Deck\Db\Stack;
use OCA\Deck\Service\StackService;

use OCP\AppFramework\Controller;

use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\IRequest;

Expand Down
1 change: 0 additions & 1 deletion lib/Controller/StackOcsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public function delete(int $stackId, ?int $boardId = null):DataResponse {
return new DataResponse($result);
}


#[NoAdminRequired]
#[PublicPage]
public function reorder(int $stackId, int $order, ?int $boardId):DataResponse {
Expand Down
1 change: 0 additions & 1 deletion lib/Cron/CardDescriptionActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Deck\Cron;

use OCA\Deck\Activity\ActivityManager;
Expand Down
1 change: 0 additions & 1 deletion lib/Cron/DeleteCron.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Deck\Cron;

use OCA\Deck\Db\AttachmentMapper;
Expand Down
3 changes: 0 additions & 3 deletions lib/Cron/SessionsCleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/



namespace OCA\Deck\Cron;

use OCA\Deck\Service\SessionService;
Expand All @@ -20,7 +18,6 @@ class SessionsCleanup extends TimedJob {
private $documentService;
private $imageService;


public function __construct(
ITimeFactory $time,
private SessionService $sessionService,
Expand Down
2 changes: 1 addition & 1 deletion lib/DAV/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\DAV;

use OCA\DAV\CalDAV\Integration\ExternalCalendar;
Expand Down Expand Up @@ -150,7 +151,6 @@ function ($card) use (&$name) {
)) > 0;
}


public function delete() {
throw new Forbidden('Deleting an entry is not implemented');
}
Expand Down
1 change: 1 addition & 0 deletions lib/DAV/CalendarObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\DAV;

use OCA\Deck\Db\Card;
Expand Down
1 change: 0 additions & 1 deletion lib/DAV/DeckCalendarBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\DAV;

use OCA\Deck\Db\Board;
Expand Down
1 change: 0 additions & 1 deletion lib/Db/AssignmentMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ public function deleteByParticipantOnBoard(string $participant, int $boardId, $t
}
}


public function isOwner(string $userId, int $id): bool {
return $this->cardMapper->isOwner($userId, $id);
}
Expand Down
3 changes: 0 additions & 3 deletions lib/Db/AttachmentMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Deck\Db;

use OCP\AppFramework\Db\DoesNotExistException;
Expand Down Expand Up @@ -103,7 +102,6 @@ public function findAll(int $cardId): array {
->where($qb->expr()->eq('card_id', $qb->createNamedParameter($cardId, IQueryBuilder::PARAM_INT)))
->andWhere($qb->expr()->eq('deleted_at', $qb->createNamedParameter(0, IQueryBuilder::PARAM_INT)));


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

Expand All @@ -129,7 +127,6 @@ public function findToDelete(?int $cardId = null, bool $withOffset = true): arra
return $this->findEntities($qb);
}


/**
* Check if $userId is owner of Entity with $id
*/
Expand Down
1 change: 0 additions & 1 deletion lib/Db/BoardMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function __construct(
$this->boardCache = new CappedMemoryCache();
}


/**
* @param $id
* @param bool $withLabels
Expand Down
2 changes: 0 additions & 2 deletions lib/Db/CardMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,6 @@ private function dateTimeParameter(IQueryBuilder $qb, DateTime $dateTime) {
return $qb->createNamedParameter($dateTime, IQueryBuilder::PARAM_DATE);
}



public function searchRaw($boardIds, $term, $limit = null, $offset = null) {
$qb = $this->queryCardsByBoards($boardIds)
->select('s.board_id', 'board_id')
Expand Down
1 change: 0 additions & 1 deletion lib/Db/IPermissionMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Deck\Db;

/**
Expand Down
1 change: 0 additions & 1 deletion lib/Db/StackMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function __construct(
$this->cache = $cacheFactory->createDistributed('deck-stackMapper');
}


/**
* @throws DoesNotExistException
* @throws MultipleObjectsReturnedException
Expand Down
1 change: 0 additions & 1 deletion lib/Event/AAclEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

use OCA\Deck\Db\Acl;
Expand Down
1 change: 0 additions & 1 deletion lib/Event/ABoardImportGetAllowedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

use OCA\Deck\Service\Importer\BoardImportService;
Expand Down
1 change: 0 additions & 1 deletion lib/Event/ACardEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

use OCA\Deck\Db\Card;
Expand Down
1 change: 0 additions & 1 deletion lib/Event/AclDeletedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

class AclDeletedEvent extends AAclEvent {
Expand Down
1 change: 0 additions & 1 deletion lib/Event/AclUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

class AclUpdatedEvent extends AAclEvent {
Expand Down
1 change: 0 additions & 1 deletion lib/Event/BoardUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

use OCP\EventDispatcher\Event;
Expand Down
1 change: 0 additions & 1 deletion lib/Event/CardCreatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

class CardCreatedEvent extends ACardEvent {
Expand Down
1 change: 0 additions & 1 deletion lib/Event/CardDeletedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

class CardDeletedEvent extends ACardEvent {
Expand Down
1 change: 0 additions & 1 deletion lib/Event/CardUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

use OCA\Deck\Db\Card;
Expand Down
1 change: 0 additions & 1 deletion lib/Event/SessionClosedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/
declare(strict_types=1);


namespace OCA\Deck\Event;

use OCP\EventDispatcher\Event;
Expand Down
1 change: 0 additions & 1 deletion lib/Event/SessionCreatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

declare(strict_types=1);


namespace OCA\Deck\Event;

use OCP\EventDispatcher\Event;
Expand Down
1 change: 1 addition & 0 deletions lib/Listeners/AclCreatedRemovedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Listeners;

use OCA\Circles\Model\Member;
Expand Down
1 change: 0 additions & 1 deletion lib/Listeners/BeforeTemplateRenderedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Listeners;

use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
Expand Down
1 change: 0 additions & 1 deletion lib/Listeners/FullTextSearchEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Listeners;

use OCA\Deck\Db\Card;
Expand Down
1 change: 0 additions & 1 deletion lib/Listeners/LiveUpdateListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

declare(strict_types=1);


namespace OCA\Deck\Listeners;

use OCA\Deck\Db\StackMapper;
Expand Down
1 change: 1 addition & 0 deletions lib/Listeners/ParticipantCleanupListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Listeners;

use OCA\Circles\Events\CircleDestroyedEvent;
Expand Down
1 change: 1 addition & 0 deletions lib/Listeners/ResourceAdditionalScriptsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Listeners;

use OCP\Collaboration\Resources\LoadAdditionalScriptsEvent;
Expand Down
1 change: 1 addition & 0 deletions lib/Listeners/ResourceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Deck\Listeners;

use OCA\Deck\Collaboration\Resources\ResourceProvider;
Expand Down
Loading
Loading