Skip to content

Commit 6cf5689

Browse files
authored
Merge pull request #2334 from nextcloud/enh/nc-32
Support nextcloud 32
2 parents 3538f1b + 6836eed commit 6cf5689

15 files changed

Lines changed: 173 additions & 94 deletions

File tree

.github/workflows/floccus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
matrix:
8888
node-version: [20.x]
8989
npm-version: [10.x]
90-
server-version: ['30']
90+
server-version: ['32']
9191
floccus-branch: ['master', 'develop']
9292
floccus-adapter:
9393
- nextcloud-bookmarks
@@ -156,7 +156,7 @@ jobs:
156156
path: ./
157157

158158
- name: Checkout bookmarks app
159-
uses: actions/checkout@v2
159+
uses: actions/checkout@v4
160160
with:
161161
path: ${{ env.APP_NAME }}
162162

.github/workflows/repair.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,31 @@ permissions:
1717
contents: read
1818

1919
jobs:
20+
matrix:
21+
runs-on: ubuntu-latest-low
22+
outputs:
23+
php-version: ${{ steps.versions.outputs.php-available-list }}
24+
server-max: ${{ steps.versions.outputs.branches-max-list }}
25+
steps:
26+
- name: Checkout app
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
29+
- name: Get version matrix
30+
id: versions
31+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
32+
2033
php:
2134
runs-on: ubuntu-latest
2235

36+
needs: [matrix]
37+
2338
strategy:
2439
# do not stop on another job's failure
2540
fail-fast: false
2641
matrix:
27-
php-versions: ['8.1']
2842
databases: ['sqlite', 'mysql', 'pgsql']
29-
server-versions: ['master', 'stable31', 'stable30']
43+
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
44+
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
3045

3146
name: Repair step on ${{ matrix.databases }}-${{ matrix.server-versions }}
3247

.github/workflows/upgrade.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
# do not stop on another job's failure
2525
fail-fast: false
2626
matrix:
27-
php-versions: ['8.1']
27+
php-versions: ['8.1', '8.2', '8.3', '8.4']
2828
databases: ['sqlite', 'mysql', 'pgsql']
29-
server-versions: ['stable30', 'stable31', 'master']
30-
prev-version: ['stable14', 'stable']
29+
server-versions: ['stable32', 'master']
30+
prev-version: ['stable']
3131

3232
name: Update from ${{ matrix.prev-version }} on ${{ matrix.databases }}-${{ matrix.server-versions }}
3333

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
### Fixed
2626

2727
* fix(FolderService): Always make sure description is set
28-
* chore: Update nextcloud/vue Marcel Klehr 2 minutes ago
28+
* chore: Update nextcloud/vue
2929
* fix(UNDELETE_FOLDER): Make sure to reload childrenOrder of -1
3030
* fix(BookmarkMapper): Fix duplicated filter
3131
* fix(CopyDialog): Fix onSubmit action

appinfo/info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Requirements:
2323
- mbstring: *
2424
- when using MySQL, use at least v8.0
2525
]]></description>
26-
<version>15.2.0</version>
26+
<version>16.0.0-dev.0</version>
2727
<licence>agpl</licence>
2828
<author mail="mklehr@gmx.net" homepage="https://marcelklehr.de">Marcel Klehr</author>
2929
<author mail="blizzz@arthur-schiwon.de" homepage="https://www.arthur-schiwon.de">Arthur Schiwon</author>
@@ -42,7 +42,7 @@ Requirements:
4242
<database>pgsql</database>
4343
<lib>intl</lib>
4444
<lib>mbstring</lib>
45-
<nextcloud min-version="30" max-version="31" />
45+
<nextcloud min-version="32" max-version="32" />
4646
</dependencies>
4747
<background-jobs>
4848
<job>OCA\Bookmarks\BackgroundJobs\CrawlJob</job>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"require-dev": {
1414
"phpunit/phpunit": "^9.5.26",
15-
"nextcloud/coding-standard": "^1.0.0",
15+
"nextcloud/coding-standard": "1.x",
1616
"vimeo/psalm": "6.x",
1717
"nextcloud/ocp": "dev-master"
1818
},

lib/Db/TreeMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,13 +1065,13 @@ public function countBookmarksInFolder(int $folderId): int {
10651065
*/
10661066
public function getChildren(int $folderId, int $layers = 0): array {
10671067
$children = $this->treeCache->get(TreeCacheManager::CATEGORY_CHILDREN, TreeMapper::TYPE_FOLDER, $folderId);
1068-
if ($children !== null) {
1068+
if ($children !== null && is_array($children)) {
10691069
return $children;
10701070
}
10711071

10721072
$children = $this->treeCache->get(TreeCacheManager::CATEGORY_CHILDREN_LAYER, TreeMapper::TYPE_FOLDER, $folderId);
10731073

1074-
if ($children === null) {
1074+
if ($children === null || !is_array($children)) {
10751075
$qb = $this->getChildrenQuery[TreeMapper::TYPE_BOOKMARK];
10761076
$this->selectFromType(TreeMapper::TYPE_BOOKMARK, ['t.index', 't.type'], $qb);
10771077
$qb->setParameter('parent_folder', $folderId);

package-lock.json

Lines changed: 94 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bookmarks",
3-
"version": "15.2.0",
3+
"version": "16.0.0",
44
"main": "js/index.js",
55
"scripts": {
66
"build": "webpack --node-env production --progress --config webpack.js",

src/components/Bookmark.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@click="onClick">
2727
<template #icon>
2828
<span v-if="bookmark.preliminary" class="icon-loading-small bookmark__icon" />
29-
<BookmarksIcon v-else-if="!iconLoaded" :size="20" class="bookmark__icon" />
29+
<StarIcon v-else-if="!iconLoaded" :size="20" class="bookmark__icon" />
3030
<figure v-else
3131
class="bookmark__icon"
3232
:style="{ backgroundImage: iconImage }" />
@@ -138,7 +138,7 @@
138138
<script>
139139
import Item from './Item.vue'
140140
import { NcActionButton, NcActionCheckbox, NcPopover } from '@nextcloud/vue'
141-
import { Hotness, HotnessZero, FolderIcon, UndeleteIcon, DeleteForeverIcon, FolderPlusIcon, FolderMoveIcon, ContentCopyIcon, PencilIcon, InformationVariantIcon, DeleteIcon, BookmarksIcon } from './Icons.js'
141+
import { Hotness, HotnessZero, FolderIcon, UndeleteIcon, DeleteForeverIcon, FolderPlusIcon, FolderMoveIcon, ContentCopyIcon, PencilIcon, InformationVariantIcon, DeleteIcon, StarIcon } from './Icons.js'
142142
import { getCurrentUser } from '@nextcloud/auth'
143143
import { generateUrl } from '@nextcloud/router'
144144
import { actions, mutations } from '../store/index.js'
@@ -159,7 +159,7 @@ export default {
159159
DeleteIcon,
160160
DeleteForeverIcon,
161161
UndeleteIcon,
162-
BookmarksIcon,
162+
StarIcon,
163163
NcPopover,
164164
Hotness,
165165
HotnessZero,

0 commit comments

Comments
 (0)