Côme Chilliet
8bcc2d352e
chore: Fix missing template parameter for IEventListener
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
4 months ago
Louis Chemineau
51fa2e3b19
Improve path resolution in files_version hooks
Signed-off-by: Louis Chemineau <louis@chmn.me>
4 months ago
Git'Fellow
4173dfe05b
fix(files_versions): Explicitly check for user or owner before call getUserFolder
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Fix typo
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Fix
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Fix
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Fix
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Optimize DI
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Switch to DI
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
userSession does not contain null
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Restore phpdoc annots
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
6 months ago
Git'Fellow
652317e3e2
Don't call getUid() on null
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
6 months ago
Louis Chemineau
cec0b310a5
Move module versions management logic out of main logic
Signed-off-by: Louis Chemineau <louis@chmn.me>
9 months ago
Louis Chemineau
7fec07196d
Do not create a new version if previousNode has the same mtime
Signed-off-by: Louis Chemineau <louis@chmn.me>
11 months ago
Julius Härtl
b94145f6bd
fix: Add logging statement for cases when updating the version fails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
11 months ago
Louis Chemineau
ecdcc72e4d
Handle previousNode size === 0 on version creation
Signed-off-by: Louis Chemineau <louis@chmn.me>
11 months ago
Julius Härtl
e76c96be5c
fix: Avoid failing to update the current version entry if there is none
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 year ago
Louis Chemineau
88abb2d97c
Fix versions restoring with S3
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
3da63f4148
Use node's owner if no user is connected
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
84e5b9c5f7
Prevent storing versions with the same mtime
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
6dcfb29cfc
Fix renaming files_versions
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
c88328e68e
Handle empty files in version creation logic
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
d8b479752d
Fix hookconnector tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
53d736207c
Adapt files_versions tests to modernized hooks
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
2ce4ac4aa4
User rootFolder instead of userFolder in FileEventsListener
Requesting userFolder fails during NC installation phase.
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
8f23cc8259
Rename Hooks.php to FileEventsListener.php
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
1adc9d2aab
Delete file versions entries in DB when node is deleted
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
629de6c8c9
Support getting and patching version-label
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau
1ade482797
Modernise hook listener of files_versions
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Carl Schwan
701b57b81d
Remove allmost all deprecation from the files_version app
The remaining deprecations are related to Utils::hooks and I will take a
look at how EventDispatcher works before working on them.
Aside from the deprecations, this patch also does a few minor
improvements around type hinting.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
3 years ago
Christoph Wurst
8196420063
Drop \OCP\User
Inlines and remaining usages and drops the deprecated public API.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years ago
Christoph Wurst
cb057829f7
Update license headers for 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
John Molakvoæ (skjnldsv)
866c513871
Fix files_versions app LoadSidebar event
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
4 years ago
Roeland Jago Douma
7f88654147
Move of files_versions to webpack
* Move CSS into bundle
* Old merged.json no longer needed!
* No need to load the style still
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
5 years ago
Morris Jobke
eb51f06a3b
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Morris Jobke
5987099d2a
Remove unneeded check if app is enabled
App code will not be executable if the app is not enabled, because the autoloader refuses to load that class.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Joas Schilling
1e2de86c3a
Fix comparisons in the versions app
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Lukas Reschke
0ed56589cc
Merge JS for files_versions
Shaves off 3 requests.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Joas Schilling
0215b004da
Update with robin
8 years ago
Joas Schilling
813f0a0f40
Fix apps/
8 years ago
Lukas Reschke
aba539703c
Update license headers
8 years ago
Joas Schilling
b57f3126eb
Move files_versions to PSR-4 (#24571)
8 years ago
Thomas Müller
682821c71e
Happy new year!
8 years ago
Morris Jobke
b945d71384
update licence headers via script
8 years ago
Vincent Petry
310d797284
Add versions tab to files sidebar
- move versions to a tab in the files sidebar
- added mechanism to auto-update the row in the FileList whenever values
are set to the FileInfoModel given to the sidebar
- updated tags/favorite action to make use of that new mechanism
8 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
9 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
9 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
9 years ago
Bjoern Schiessle
ebe1d3df0a
don't move versions if only the mount point was renamed
9 years ago
Bjoern Schiessle
9d1be0bbaf
get the source path and owner in a pre hook and the target path and owner in a
post hook
9 years ago
Bjoern Schiessle
1a797f90bb
add unit test for rename and copy operation
10 years ago
Bjoern Schiessle
c738f71657
make the versions and encryption app aware of the copy operation
10 years ago
Bjoern Schiessle
f4a183e753
wwe no longer have a versions table
10 years ago