Skip to content

Update to nextcloud 35 - #287

Merged
Martin-1997 merged 3 commits into
masterfrom
update--nextcloud-35
Oct 23, 2026
Merged

Martin-1997 merged 3 commits into
masterfrom
update--nextcloud-35

Conversation

@Martin-1997

Copy link
Copy Markdown
Collaborator

No description provided.

Martin-1997 and others added 3 commits October 23, 2026 23:09
The frontend was migrated to @nextcloud/vue 9 in #263, which only
supports Nextcloud 31 and newer (Vue 3). Declaring min-version="20"
let the app install on servers whose UI it cannot render.

Nextcloud 31 is also the oldest version whose OCP API provides
everything the backend uses after the following commits
(IDBConnection::getDatabaseProvider, IQueryBuilder::executeQuery).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KJpM1wJdw3Uxw5p86uRBD
- Application: drop the hand-registered WorkIntervalMapper and
  ReportItemMapper services. Nothing requested them by these names
  (the mappers are autowired), and they relied on
  IServerContainer::getDatabaseConnection() and on getContainer()
  returning an IAppContainer, which Nextcloud 35 types as a plain PSR
  ContainerInterface. Also remove unused imports.
- AjaxController: inject IMailer instead of \OC::$server->getMailer(),
  which no longer exists (e-mailing a timeline failed with
  "Call to undefined method OC\Server::getMailer()").
- AjaxController: use IGroupManager::isAdmin() instead of the private
  \OC_User class, and request "userId" instead of the deprecated
  "UserId" container alias.
- Migration Version000000Date20210719124731: use executeQuery() /
  executeStatement() instead of the removed IQueryBuilder::execute().
  Installs that still had the pre-2021 tables crashed on upgrade.
- TagMapper, ReportItemMapper: detect the database with
  getDatabaseProvider() instead of matching Doctrine platform class
  names, and declare TagMapper::$dbengine (dynamic property).
- phpstan baseline: drop the entries these changes resolve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KJpM1wJdw3Uxw5p86uRBD
- info.xml: max-version 35
- Static analysis runs against the OCP stubs of Nextcloud 31 and 35,
  the oldest and newest supported versions
- PHP lint and unit tests run on PHP 8.2 to 8.5 (Nextcloud 35 needs
  PHP 8.3+, 8.5 is recommended)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015KJpM1wJdw3Uxw5p86uRBD
@Martin-1997
Martin-1997 merged commit 6a45d1c into master Oct 23, 2026
10 checks passed
@siparcs

siparcs commented Oct 24, 2026

Copy link
Copy Markdown

This relase is not visible yet in the app store. Does it still need to be pushed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants