Skip to content

Commit 43b0ced

Browse files
committed
Merge branch 'main' into feature/1424-add-table-user-migration
2 parents 290876b + 169aef8 commit 43b0ced

33 files changed

+499
-309
lines changed

.github/workflows/app-upgrade-mysql.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
services:
5353
mysql:
54-
image: ghcr.io/nextcloud/continuous-integration-mysql-8.0:latest
54+
image: ghcr.io/nextcloud/continuous-integration-mysql-8.0:latest # zizmor: ignore[unpinned-images]
5555
ports:
5656
- 4444:3306/tcp
5757
env:
@@ -65,8 +65,9 @@ jobs:
6565
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
6666
6767
- name: Checkout server
68-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
68+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6969
with:
70+
persist-credentials: false
7071
submodules: true
7172
repository: nextcloud/server
7273
ref: ${{ matrix.server-versions }}
@@ -77,15 +78,17 @@ jobs:
7778
echo "text_app_ref=$text_app_ref" >> $GITHUB_ENV
7879
7980
- name: Checkout text app
80-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
81+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8182
with:
83+
persist-credentials: false
8284
repository: nextcloud/text
8385
path: apps/text
8486
ref: ${{ env.text_app_ref }}
8587

8688
- name: Checkout viewer app
87-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
89+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8890
with:
91+
persist-credentials: false
8992
repository: nextcloud/viewer
9093
path: apps/viewer
9194
ref: ${{ matrix.server-versions }}
@@ -117,8 +120,9 @@ jobs:
117120
./occ app:enable --force ${{ env.APP_NAME }}
118121
119122
- name: Checkout app
120-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
123+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
121124
with:
125+
persist-credentials: false
122126
path: apps/${{ env.APP_NAME }}
123127

124128
- name: Set up dependencies
@@ -131,7 +135,7 @@ jobs:
131135
./occ app:list
132136
133137
- name: Upload nextcloud logs
134-
uses: actions/upload-artifact@v4
138+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
135139
if: always()
136140
with:
137141
name: nextcloud.log

.github/workflows/cypress-component.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ jobs:
2929

3030
steps:
3131
- name: Checkout app
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33+
with:
34+
persist-credentials: false
3335

3436
- name: Set up Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@v4
37+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3638
with:
3739
node-version: ${{ matrix.node-version }}
3840
cache: 'npm'
@@ -48,15 +50,15 @@ jobs:
4850
run: npm run tests:component
4951

5052
- name: Upload test failure screenshots
51-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5254
if: failure()
5355
with:
5456
name: cypress-component-screenshots-node${{ matrix.node-version }}
5557
path: cypress/screenshots/
5658
retention-days: 5
5759

5860
- name: Upload test videos
59-
uses: actions/upload-artifact@v4
61+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6062
if: failure()
6163
with:
6264
name: cypress-component-videos-node${{ matrix.node-version }}

.github/workflows/cypress-custom.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
fail-fast: false
3232
matrix:
3333
databases: [ 'mysql' ]
34-
server-versions: [ 'stable31', 'stable32', 'master' ]
34+
server-versions: [ 'stable31', 'stable32', 'stable33', 'master' ]
3535
include:
3636
- php-versions: 8.2
3737

3838
services:
3939
mysql:
40-
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest
40+
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest # zizmor: ignore[unpinned-images]
4141
ports:
4242
- 4444:3306/tcp
4343
env:
@@ -47,21 +47,17 @@ jobs:
4747
steps:
4848

4949
- name: Checkout server
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5151
with:
52+
persist-credentials: false
53+
submodules: true
5254
repository: nextcloud/server
5355
ref: ${{ matrix.server-versions }}
5456

55-
- name: Checkout submodules
56-
shell: bash
57-
run: |
58-
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
59-
git submodule sync --recursive
60-
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
61-
6257
- name: Checkout viewer
63-
uses: actions/checkout@v4
58+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6459
with:
60+
persist-credentials: false
6561
repository: nextcloud/viewer
6662
ref: ${{ matrix.server-versions }}
6763
path: apps/viewer
@@ -87,12 +83,13 @@ jobs:
8783
ref: ${{ matrix.server-versions }}
8884

8985
- name: Checkout app
90-
uses: actions/checkout@v4
86+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9187
with:
88+
persist-credentials: false
9289
path: apps/${{ env.APP_NAME }}
9390

9491
- name: Set up node from version file
95-
uses: actions/setup-node@v4
92+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
9693
with:
9794
cache: 'npm'
9895
cache-dependency-path: apps/${{ env.APP_NAME}}/package-lock.json
@@ -107,12 +104,12 @@ jobs:
107104
108105
109106
- name: Use Node.js ${{ matrix.node-version }}
110-
uses: actions/setup-node@v4
107+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
111108
with:
112109
node-version: ${{ matrix.node-version }}
113110

114111
- name: Set up php ${{ matrix.php-versions }}
115-
uses: shivammathur/setup-php@v2
112+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
116113
with:
117114
php-version: ${{ matrix.php-versions }}
118115
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, zip, zlib, sqlite, pdo_sqlite, apcu, pgsql, pdo_pgsql,mysql, pdo_mysql
@@ -144,7 +141,7 @@ jobs:
144141
cat data/nextcloud.log
145142
146143
- name: Cypress run
147-
uses: cypress-io/github-action@v4
144+
uses: cypress-io/github-action@8a35f965fbd13e3b18d9fb3bdc5f50ae2f4a5e76 # v7.1.0
148145
with:
149146
wait-on: '${{ env.CYPRESS_baseUrl }}'
150147
working-directory: 'apps/${{ env.APP_NAME }}'
@@ -164,15 +161,15 @@ jobs:
164161
cat data/nextcloud.log
165162
166163
- name: Upload test failure screenshots ${{ matrix.node-version }}-${{ matrix.php-versions }}-${{ matrix.server-versions }}-${{ matrix.databases }}
167-
uses: actions/upload-artifact@v4
164+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
168165
if: failure()
169166
with:
170167
name: Upload screenshots ${{ matrix.node-version }}-${{ matrix.php-versions }}-${{ matrix.server-versions }}-${{ matrix.databases }}
171168
path: apps/${{ env.APP_NAME }}/cypress/screenshots/
172169
retention-days: 5
173170

174171
- name: Upload nextcloud logs ${{ matrix.node-version }}-${{ matrix.php-versions }}-${{ matrix.server-versions }}-${{ matrix.databases }}
175-
uses: actions/upload-artifact@v4
172+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
176173
if: failure()
177174
with:
178175
name: Upload nextcloud log ${{ matrix.node-version }}-${{ matrix.php-versions }}-${{ matrix.server-versions }}-${{ matrix.databases }}

.github/workflows/integration.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
server-versions: ['stable31', 'stable32', 'master']
56+
server-versions: ['stable31', 'stable32', 'stable33', 'master']
5757
php-versions: ['8.2']
5858
databases: ['mysql']
5959
include:
@@ -74,7 +74,7 @@ jobs:
7474

7575
services:
7676
postgres:
77-
image: ghcr.io/nextcloud/continuous-integration-postgres-14:latest
77+
image: ghcr.io/nextcloud/continuous-integration-postgres-14:latest # zizmor: ignore[unpinned-images]
7878
ports:
7979
- 4445:5432/tcp
8080
env:
@@ -83,7 +83,7 @@ jobs:
8383
POSTGRES_DB: nextcloud
8484
options: --health-cmd pg_isready --health-interval 5s --health-timeout 2s --health-retries 5
8585
mysql:
86-
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest
86+
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest # zizmor: ignore[unpinned-images]
8787
ports:
8888
- 4444:3306/tcp
8989
env:
@@ -92,25 +92,21 @@ jobs:
9292

9393
steps:
9494
- name: Checkout server
95-
uses: actions/checkout@v4
95+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9696
with:
97+
persist-credentials: false
98+
submodules: true
9799
repository: nextcloud/server
98100
ref: ${{ matrix.server-versions }}
99101

100-
- name: Checkout submodules
101-
shell: bash
102-
run: |
103-
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
104-
git submodule sync --recursive
105-
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
106-
107102
- name: Checkout app
108-
uses: actions/checkout@v4
103+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
109104
with:
105+
persist-credentials: false
110106
path: apps/${{ env.APP_NAME }}
111107

112108
- name: Set up php ${{ matrix.php-versions }}
113-
uses: shivammathur/setup-php@2.34.1
109+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
114110
with:
115111
php-version: ${{ matrix.php-versions }}
116112
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, zip, zlib, sqlite, pdo_sqlite, apcu, pgsql, pdo_pgsql,mysql, pdo_mysql

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Have a good time and manage whatever you want.
4848
<database>pgsql</database>
4949
<database>mysql</database>
5050
<database>sqlite</database>
51-
<nextcloud min-version="31" max-version="33"/>
51+
<nextcloud min-version="31" max-version="34"/>
5252
</dependencies>
5353
<repair-steps>
5454
<pre-migration>

composer.lock

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

cypress/e2e/tables-sharing-link.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ describe('Public link sharing', () => {
9494
cy.visit(`apps/tables/s/${shareToken}`)
9595

9696
// Password Gate
97-
cy.get('input[type="password"]#password').should('be.visible').type(password)
98-
cy.get('input#password-submit').click()
97+
cy.get('input[type="password"]').should('be.visible').type(password)
98+
cy.get('button[type="submit"], input[type="submit"]').filter(':visible').first().click()
9999
cy.get('[data-cy="publicTableElement"]').should('be.visible')
100100

101101
// Login again to delete share

cypress/support/e2e.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,20 @@ import './commands.js'
2121

2222
Cypress.on('uncaught:exception', (err) => {
2323
return !err.message.includes('ResizeObserver loop limit exceeded') &&
24-
!err.message.includes('ResizeObserver loop completed with undelivered notifications')
24+
!err.message.includes('ResizeObserver loop completed with undelivered notifications') &&
25+
!err.message.includes("Cannot read properties of undefined (reading 'from')") &&
26+
!err.message.includes("Cannot read properties of undefined (reading 'createEditor')")
27+
})
28+
29+
// Handle unsupported browser dialog that appears on page load
30+
Cypress.Commands.overwrite('visit', (originalVisit, url, options) => {
31+
return originalVisit(url, options).then(() => {
32+
// Wait a moment for the dialog to appear if needed
33+
cy.get('body', { timeout: 1000 }).then(($body) => {
34+
const button = $body.find('button:contains("Continue with this unsupported browser")')
35+
if (button.length > 0) {
36+
cy.contains('button', 'Continue with this unsupported browser').click()
37+
}
38+
})
39+
})
2540
})

l10n/cs.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,14 +415,19 @@ OC.L10N.register(
415415
"No shares" : "Žádná sdílení",
416416
"After the promotion of the share recipient to table manager, any applications created by share recipients that utilise this table will continue to access its data, even if you later demote them." : "Po povýšení příjemce sdílení na správce tabulky, jakékoli aplikace, vytvořené příjemci sdílení, které tuto tabulku využívají, budou pokračovat v přístupu k jejím datům, i když jejich povýšení později zrušíte.",
417417
"Confirm table manager promotion" : "Potvrdit povýšení na správce tabulky",
418+
"Error creating link share" : "Chyba při vytváření sdílení odkazem",
419+
"Error deleting link share" : "Chyba při mazání sdílení odkazem",
418420
"Link copied to clipboard" : "Odkaz zkopírován do schánky",
421+
"Error copying link" : "Chyba při kopírování odkazu",
419422
"Password copied" : "Heslo zkopírováno",
423+
"Error copying password" : "Chyba při kopírování hesla",
420424
"Create public link" : "Vytvořit veřejný odkaz",
421425
"Create a new share link" : "Vytvořit nový odkaz pro sdílení",
422426
"Set password" : "Nastavit heslo",
423427
"Password" : "Heslo",
424428
"Share link" : "Nasdílet odkaz",
425429
"View only" : "Pouze prohlížet",
430+
"Copy public share link" : "Zkopírovat odkaz na veřejné sdílení",
426431
"Delete link" : "Smazat odkaz",
427432
"Public links" : "Veřejné odkazy",
428433
"No view in context" : "Žádný pohled v kontextu",
@@ -559,6 +564,7 @@ OC.L10N.register(
559564
"Search for tables and views..." : "Hledání tabulek a pohledů …",
560565
"Import into Tables" : "Naimportovat do Tabulek",
561566
"Could not create share." : "Nepodařilo se vytvořit sdílení.",
567+
"Could not create public link." : "Nebylo možné vytvořit veřejný odkaz.",
562568
"Could not remove share." : "Nepodařilo se odebrat sdílení.",
563569
"Could not update share." : "Nepodařilo se zaktualizovat sdílení.",
564570
"Could not update cell" : "Nebylo možné zaktualizovat buňku",

l10n/cs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,19 @@
413413
"No shares" : "Žádná sdílení",
414414
"After the promotion of the share recipient to table manager, any applications created by share recipients that utilise this table will continue to access its data, even if you later demote them." : "Po povýšení příjemce sdílení na správce tabulky, jakékoli aplikace, vytvořené příjemci sdílení, které tuto tabulku využívají, budou pokračovat v přístupu k jejím datům, i když jejich povýšení později zrušíte.",
415415
"Confirm table manager promotion" : "Potvrdit povýšení na správce tabulky",
416+
"Error creating link share" : "Chyba při vytváření sdílení odkazem",
417+
"Error deleting link share" : "Chyba při mazání sdílení odkazem",
416418
"Link copied to clipboard" : "Odkaz zkopírován do schánky",
419+
"Error copying link" : "Chyba při kopírování odkazu",
417420
"Password copied" : "Heslo zkopírováno",
421+
"Error copying password" : "Chyba při kopírování hesla",
418422
"Create public link" : "Vytvořit veřejný odkaz",
419423
"Create a new share link" : "Vytvořit nový odkaz pro sdílení",
420424
"Set password" : "Nastavit heslo",
421425
"Password" : "Heslo",
422426
"Share link" : "Nasdílet odkaz",
423427
"View only" : "Pouze prohlížet",
428+
"Copy public share link" : "Zkopírovat odkaz na veřejné sdílení",
424429
"Delete link" : "Smazat odkaz",
425430
"Public links" : "Veřejné odkazy",
426431
"No view in context" : "Žádný pohled v kontextu",
@@ -557,6 +562,7 @@
557562
"Search for tables and views..." : "Hledání tabulek a pohledů …",
558563
"Import into Tables" : "Naimportovat do Tabulek",
559564
"Could not create share." : "Nepodařilo se vytvořit sdílení.",
565+
"Could not create public link." : "Nebylo možné vytvořit veřejný odkaz.",
560566
"Could not remove share." : "Nepodařilo se odebrat sdílení.",
561567
"Could not update share." : "Nepodařilo se zaktualizovat sdílení.",
562568
"Could not update cell" : "Nebylo možné zaktualizovat buňku",

0 commit comments

Comments
 (0)