Drop support for nextcloud version 22

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
This commit is contained in:
Swikriti Tripathi 2023-03-28 13:25:16 +05:45
Родитель 0786f6a990
Коммит a19b805860
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 8A93BBB9B1B5D98E
3 изменённых файлов: 3 добавлений и 13 удалений

9
.github/workflows/ci.yml поставляемый
Просмотреть файл

@ -11,11 +11,9 @@ jobs:
name: unit tests and linting
strategy:
matrix:
nextcloudVersion: [ stable22, stable23, stable24, stable25, stable26, master ]
nextcloudVersion: [ stable23, stable24, stable25, stable26, master ]
phpVersion: [ 7.4, 8.0, 8.1 ]
exclude:
- nextcloudVersion: stable22
phpVersion: 8.1
- nextcloudVersion: stable23
phpVersion: 8.1
- nextcloudVersion: stable24
@ -158,14 +156,11 @@ jobs:
name: API tests
strategy:
matrix:
nextcloudVersion: [ stable22, stable23, stable24, stable25, stable26, master ]
nextcloudVersion: [ stable23, stable24, stable25, stable26, master ]
phpVersionMajor: [ 7, 8 ]
phpVersionMinor: [ 4, 1 ]
database: [pgsql, mysql]
exclude:
- nextcloudVersion: stable22
phpVersionMajor: 8
phpVersionMinor: 1
- nextcloudVersion: stable23
phpVersionMajor: 8
phpVersionMinor: 1

Просмотреть файл

@ -35,7 +35,7 @@ For more information on how to set up and use the OpenProject application, pleas
<screenshot>https://github.com/nextcloud/integration_openproject/raw/master/img/screenshot1.png</screenshot>
<screenshot>https://github.com/nextcloud/integration_openproject/raw/master/img/screenshot2.png</screenshot>
<dependencies>
<nextcloud min-version="22" max-version="27"/>
<nextcloud min-version="23" max-version="27"/>
</dependencies>
<background-jobs>
<job>OCA\OpenProject\BackgroundJob\RemoveExpiredDirectUploadTokens</job>

Просмотреть файл

@ -16,7 +16,6 @@ use DateTimeZone;
use Exception;
use InvalidArgumentException;
use OC\User\NoUserException;
use OC_Util;
use OCA\OpenProject\Exception\OpenprojectGroupfolderSetupConflictException;
use OCA\GroupFolders\Folder\FolderManager;
use OCP\App\IAppManager;
@ -988,10 +987,6 @@ class OpenProjectAPIService {
// @phpstan-ignore-next-line - make phpstan not complain if groupfolders app does not exist
$folderId = $groupFolderManager->getFolderByPath($openProjectFolder);
$userId = $this->userManager->get(Application::OPEN_PROJECT_ENTITIES_NAME);
if (version_compare(OC_Util::getVersionString(), '22.2.10', '<=')) {
// for version 22 and lower, `canManageACL` function takes string not IUser
$userId = Application::OPEN_PROJECT_ENTITIES_NAME;
}
// @phpstan-ignore-next-line - make phpstan not complain if groupfolders app does not exist
return $groupFolderManager->canManageACL($folderId, $userId);
}