Commit graph

1383 commits

Author SHA1 Message Date
Nextcloud bot
1ceaa3c0eb
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-26 00:57:34 +00:00
Nextcloud bot
6883c52e9d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-19 00:26:42 +00:00
Nextcloud bot
09ff81267c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-13 00:29:43 +00:00
Louis Chemineau
e7d5432782 Enable all files versions features when groupfolders is enabled
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-07-10 11:51:14 +02:00
Louis
0a876e3ac8
Merge pull request #39147 from nextcloud/backport/38794/stable27
[stable27] Enable version features again with S3 versioning
2023-07-10 10:37:38 +01:00
Nextcloud bot
7e9bd4fcea
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-10 00:28:54 +00:00
Nextcloud bot
7ac99a60d1
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-07 00:27:42 +00:00
Benjamin Somers
f287866982 Enable version features again with S3 versioning
Signed-off-by: Benjamin Somers <bsomers@resel.fr>
2023-07-06 19:29:17 +02:00
Louis Chemineau
859552b887 Base versions' has-preview on mimetype
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-07-03 11:11:47 +02:00
Louis Chemineau
2e7d7042a7 Do not load preview if version tab is not active
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-07-03 11:04:57 +02:00
Louis Chemineau
b164af46c7 Provide hasPreview in files_versions DAV API
This allow to no request non existing previews
I also set some properties to the img element to reduce preview loading to what the browser think is necessary

Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-07-03 11:04:57 +02:00
Louis Chemineau
af0f1149ed Do not create a new version if previousNode has the same mtime
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-26 17:57:38 +02:00
Julius Härtl
9d348950c0 fix: Add logging statement for cases when updating the version fails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-26 17:57:38 +02:00
Louis Chemineau
e8a2847bad Handle previousNode size === 0 on version creation
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-26 17:57:38 +02:00
Julius Härtl
ea30d1165b fix: Avoid failing to update the current version entry if there is none
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-26 17:57:38 +02:00
Nextcloud bot
0d961dc9a2
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-20 00:23:02 +00:00
Nextcloud bot
ec0dbf123a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-18 00:17:59 +00:00
Nextcloud bot
595412fb5e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-17 00:18:03 +00:00
Louis Chemineau
7337188aa0 Add fallback when a there is no preview for a version
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-14 09:56:23 +02:00
Louis Chemineau
ea7e18716a Improve handling of undefined version label
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-14 09:56:23 +02:00
Nextcloud bot
669836790e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-14 00:18:04 +00:00
Nextcloud bot
0ef69969bc
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-12 00:18:04 +00:00
Louis Chemineau
e54bfc00bd Fix initialisation of versions in the DB
Broken after https://github.com/nextcloud/server/pull/36690

Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-05-30 16:41:03 +02:00
Nextcloud bot
d9ff25230c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-30 00:17:41 +00:00
Nextcloud bot
0ad9cbf884
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-27 00:18:02 +00:00
Git'Fellow
d6eb48c436
Check if version has entity before trying to access it
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-05-12 16:00:16 +02:00
Git'Fellow
7cd5cbe6e9
Check if version entity is not null before delete
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-05-08 14:24:58 +02:00
Nextcloud bot
f997b8a2a3
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-05 02:28:12 +00:00
Max
337fc110ec
fix: catch ManuallyLockedException and use app context
The files_lock app may throw ManuallyLockedExceptions
when attempting to revert a file that is currently opened.
This would prevent the user from rolling back a opened file.

Text and Richdocuments handle changes of the file while editing.
Allow reverting files even when they are locked by these apps
and let the apps handle the conflict.

Signed-off-by: Max <max@nextcloud.com>
2023-05-03 09:52:36 +02:00
Joas Schilling
f2afccfd56
fix(assets): Optimize SVGs with scour 0.38.2
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-24 08:59:38 +02:00
Joas Schilling
cca3b9495c
chore(autoloader): Update autoloaders with composer 2.5.5
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-21 15:53:55 +02:00
Côme Chilliet
60b7d2117e
Merge pull request #37428 from nextcloud/enh/ignore-non-numeric-versions
Ignore and log non integer versions
2023-04-20 13:33:58 +02:00
Jérôme Herbinet
4ec183fa33 Highlight selected file version (Nextcloud Office)
After my PR #32492 fail, I create a new PR.

Signed-off-by: Jérôme Herbinet <jerome.herbinet@arawa.fr>

Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2023-04-18 15:38:13 +02:00
Louis Chemineau
cca46f18eb Really disable versions features when S3 versioning is enabled
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-04-17 11:16:20 +02:00
Julius Härtl
2e1a560867
Merge pull request #36690 from nextcloud/bugfix/noid/rollback-hook 2023-04-14 17:09:17 +02:00
John Molakvoæ
a66cae02ef
fix(deps): update webdav 5 usage
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 14:49:32 +02:00
Côme Chilliet
a6b1d990a4
Check for non-numeric versions, not non-integer
All versions are string

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-05 17:50:45 +02:00
Côme Chilliet
8cc8765089
Ignore and log non integer versions
This avoids being stuck when there is one buggy file version with a
 non-integer version. It allows the expiration process to not crash and
 continue with the other ones.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-05 17:44:14 +02:00
Côme Chilliet
ea05544213
Fix return type of methods returning false on error
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-03 10:52:34 +02:00
Nextcloud bot
2eda49e28d
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-03-30 02:27:36 +00:00
Nextcloud bot
7803ba18b3
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-03-27 10:18:15 +00:00
John Molakvoæ
8633f13e0a
chore(eslint): fix missing import extensions
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-03-23 08:14:19 +01:00
John Molakvoæ
5adfec3dc6
chore(eslint): replace node/no-missing-import by n/no-missing-import
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-03-23 07:31:33 +01:00
Nextcloud bot
07448168dc
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-03-20 02:27:19 +00:00
Julius Härtl
f00f4244d4
fix: Check return type on rollback
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-13 10:59:33 +01:00
Robin Appelman
62e6a32899
don't re-get fileinfo for versioned file if it's not shared
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-03-13 10:52:37 +01:00
Julius Härtl
c22d51c1ad
tests(files_versions): Tear down fs to clear mount cache before testing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-13 10:52:37 +01:00
Julius Härtl
cf46bd6915
fix: Make sure that rollback hook is triggered on all version backends
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-13 10:52:35 +01:00
Louis Chemineau
97b56da75e Use native tooltip for versions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-03-09 17:38:51 +01:00
Christopher Ng
72e2cabf40 Fix download URL for versions
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-03-07 10:14:33 +00:00