Skip to content

Create stable34#177

Merged
R0Wi merged 2 commits into
stable34from
copilot/make-app-compatible-nc34
May 26, 2026
Merged

Create stable34#177
R0Wi merged 2 commits into
stable34from
copilot/make-app-compatible-nc34

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

Makes the app compatible with Nextcloud 34 by updating CI workflow references, documentation, and runtime dependencies.

Changes

  • .github/workflows/phpunit.yml: Set server-versions to stable34 in all 3 jobs (php, mysql, pgsql)
  • .github/workflows/coverage.yml: Set server-versions to stable34
  • .github/workflows/playwright.yml: Set NC_REF to stable34
  • README.md: Added "This version is tested for Nextcloud 34." line
  • package.json: Updated @nextcloud/files from 4.0.0-rc.0 to 4.0.0 to fix file action registration with NC34 (versioned global state scoping introduced in rc.3 makes rc.0 registrations invisible to NC34's files app)
  • src/fileAction.js: Removed new FileAction(...) wrapper — the FileAction class was removed in @nextcloud/files 4.0.0; action objects are now passed directly to registerFileAction()
  • js/: Rebuilt JS assets with updated dependencies
  • tests/Unit/Service/Helper/XmpDataReaderTest.php: Added stub implementations for getLastActivity() and getData(), two new abstract methods added to OCP\Files\FileInfo in NC34

- Update phpunit.yml server-versions to stable34
- Update coverage.yml server-versions to stable34
- Update playwright.yml NC_REF to stable34
- Add "This version is tested for Nextcloud 34." to README.md

Agent-Logs-Url: https://github.com/nextcloud/files_photospheres/sessions/eafc5dcb-3f85-4385-bae0-ec5b17672e7d

Co-authored-by: R0Wi <19730957+R0Wi@users.noreply.github.com>
Copilot finished work on behalf of R0Wi May 22, 2026 16:19
Copilot AI requested a review from R0Wi May 22, 2026 16:19
@R0Wi R0Wi changed the base branch from master to stable34 May 26, 2026 19:07
@R0Wi R0Wi changed the title Master is now NC34 Create stable34 May 26, 2026
@R0Wi
Copy link
Copy Markdown
Member

R0Wi commented May 26, 2026

@copilot analyze and fix CI/CD

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 26, 2026

@copilot analyze and fix CI/CD

Two root causes were found and fixed (commits 1117f1f and the latest push):

PHPUnit failures — NC34 added getLastActivity(): int and getData(): ICacheEntry as new abstract methods to OCP\Files\FileInfo. Added stub implementations to the TestFile helper class in XmpDataReaderTest.php.

Playwright directory-share failures@nextcloud/files 4.0.0-rc.3 introduced versioned global state scoping for file actions (stored under window['_ncFilesActions_4']). NC34 ships with 4.0.0 which uses this versioned scope, but the app was using 4.0.0-rc.0 which registers in an older unversioned scope — making all registered file actions invisible to NC34's files app. Fixed by:

  • Bumping @nextcloud/files from 4.0.0-rc.04.0.0 in package.json
  • Removing new FileAction(...) wrapper in src/fileAction.js (the FileAction class was removed in 4.0.0; plain action objects are now passed directly to registerFileAction())
  • Rebuilding the JS assets

Copilot finished work on behalf of R0Wi May 26, 2026 20:04
* Initial plan

* Fix XMP metadata serialization for NC33 WebDAV client compatibility

Agent-Logs-Url: https://github.com/nextcloud/files_photospheres/sessions/ddda8754-90c3-44ca-97c8-9703fbac9f52

Co-authored-by: R0Wi <19730957+R0Wi@users.noreply.github.com>

* fix: XmpDataReader Test signature

* fix: Remove jQuery

* fix: NC34 compat

* Fix PHP controller interfaces
* Remove CSP for JS eval
* JS lib for modal
* Update nextcloud/files and adjust registering / callback code for frontend event handler accordingly

* Fix unit tests for NC34 API compatibility

Agent-Logs-Url: https://github.com/nextcloud/files_photospheres/sessions/d1f3fb6c-898e-47eb-8812-29e6a650a22c

Co-authored-by: R0Wi <19730957+R0Wi@users.noreply.github.com>

* Apply php-cs-fixer changes

* fix: update filesAction.js.map

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: R0Wi <19730957+R0Wi@users.noreply.github.com>
Co-authored-by: Robin Windey <ro.windey@gmail.com>
Co-authored-by: Copilot <Copilot@users.noreply.github.com>
@R0Wi R0Wi force-pushed the copilot/make-app-compatible-nc34 branch from fbf01af to 262315d Compare May 26, 2026 20:25
@R0Wi R0Wi marked this pull request as ready for review May 26, 2026 20:27
@R0Wi R0Wi merged commit c9eb04a into stable34 May 26, 2026
15 checks passed
@R0Wi R0Wi deleted the copilot/make-app-compatible-nc34 branch May 26, 2026 20:31
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