Côme Chilliet
c20d34b2ca
Merge pull request #32552 from nextcloud/enh/improve-job-handling-commands
...
Improve job handling through occ
2022-07-12 16:04:57 +02:00
Carl Schwan
16b5e6bc7f
Merge pull request #32973 from nextcloud/cleanup/avatar-code
...
Cleanup avatar related code
2022-07-11 11:56:39 +02:00
Côme Chilliet
2e921f8b3d
Fix typing in IJobList
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-11 09:46:23 +00:00
Côme Chilliet
868d748dbf
Code cleaning of Background/ListCommand
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-11 09:46:23 +00:00
Côme Chilliet
3d01179907
Add command to list jobs
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-11 09:46:23 +00:00
blizzz
c98e44507d
Merge pull request #32865 from nextcloud/bugfix/remove-unecessary-row
...
Remove unecessary row and make compatible with db schema
2022-07-08 23:11:10 +02:00
Carl Schwan
ec5cbdeb7f
Make Color class public
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-07-05 14:44:44 +02:00
Joas Schilling
198224bf7a
Allow to expire comments of multiple objects with one call
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-01 15:59:29 +02:00
Joas Schilling
5dee54d70b
Add status automation
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-01 12:33:07 +02:00
Carl Schwan
41e6e0c646
Merge pull request #33007 from nextcloud/cleanup/federation-app
...
Summer cleanup of the federation app
2022-06-28 15:33:18 +02:00
Carl Schwan
a9cfa72d1c
Summer cleanup of the federation app
...
- Use IEventDispatcher instead of deprecated symfony dispatcher
- Use LoggerInterface where possible
- Use php 7.4 properties
- Add type hinting where possible
- Move federation hooks to a seperate listener
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-24 15:39:52 +02:00
blizzz
4722baf970
Merge pull request #32863 from nextcloud/feature/add-comments-expire-date
...
Add comments expire date
2022-06-24 10:28:13 +02:00
Arthur Schiwon
523572fcea
load widgets only of enabled apps
...
- per design, all enabled apps have their registration run
- limitations, e.g. enabled by group, are not considered in that state,
because we do not have a session (and might need apps?)
- before instantiation of widget it has to be checked whether the providing
app is actually enabled for the logged in user.
- a public interface is being changed, but it is not meant to be
implemented or used outside of the core handling. Therefore save to
backport.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-22 21:58:13 +02:00
Carl Schwan
812016d626
Cleanup avatar related code
...
- Move event listener to new event handling
- Add typing almost everywhere
- Fix inconsistent interface parameter
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-22 16:11:42 +02:00
Vitor Mattos
c59b0c2ff7
Add comments expire date
...
https://github.com/nextcloud/spreed/pull/7327
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-06-15 11:58:29 -03:00
Vitor Mattos
b9def2f073
Set as optional argument
...
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-06-13 16:12:35 -03:00
Vitor Mattos
45cdb36d5c
Remove unecessary row and make compatible with db schema
...
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-06-13 13:35:34 -03:00
Vincent Petry
8809de1eef
Merge pull request #31966 from nextcloud/unencrypted-size
...
store unencrypted size in the unencrypted_size column
2022-06-13 11:55:37 +02:00
Vincent Petry
8e61671b82
Merge pull request #32364 from nextcloud/dav-listeners
...
🧹 Remove all legacy event dispatchers from CalDAV & CardDAV backends
2022-06-10 15:57:35 +02:00
Christoph Wurst
92d64617e6
Merge pull request #26582 from nextcloud/enhancement/logger-function
...
Add a helper function that makes it easier to log from anywhere
2022-06-07 11:22:26 +02:00
Robin Appelman
8238582e59
store unencrypted size in the unencrypted_size column
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-02 16:07:00 +02:00
Robin Appelman
2a68819a67
add case statement to sql function builder
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-02 15:52:12 +02:00
Robin Appelman
813b50ed42
make expression build return IQueryFunction instead of string
...
this allows passing the expressions to further expressions without them being escaped as column names
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-02 15:52:08 +02:00
blizzz
df89e7fd39
Merge pull request #32485 from nextcloud/debt/noid/psalm-streamer-fh
...
[Psalm] Fix docblock for addFileFromStream
2022-05-31 14:22:05 +02:00
Joas Schilling
cf9660fdf0
Merge pull request #32628 from nextcloud/bugfix/noid/json-throw
...
Use JSON_THROW_ON_ERROR instead of custom error handling
2022-05-31 10:06:21 +02:00
Côme Chilliet
fa041dabf4
Add the ISizeEstimationMigrator interface for method getExportEstimatedSize
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-30 17:49:05 +00:00
Julius Härtl
3901a93c72
Use JSON_THROW_ON_ERROR instead of custom error handling
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-05-30 19:17:49 +02:00
Côme Chilliet
09917b8583
Implement getExportEstimatedSize in migrators
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-30 07:36:13 +00:00
Côme Chilliet
f20b7e5764
Add a method to get estimated export size in IMigrator
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-30 07:36:13 +00:00
Carl Schwan
e4378fd18c
Merge pull request #32349 from nextcloud/enh/projects-event
...
Add event to load additional scripts for projects
2022-05-27 18:36:40 +02:00
Daniel Kesselberg
be99ea969e
Fix type for resource
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-05-24 22:05:59 +02:00
Côme Chilliet
45a75c631e
Merge pull request #32555 from nextcloud/fix/revert-api-break
...
Revert api break
2022-05-24 09:06:00 +02:00
Joas Schilling
53af533853
Merge pull request #32560 from nextcloud/feature/noid/preferences-api
...
Add API to change preferences
2022-05-24 07:58:00 +02:00
Carl Schwan
6147bb611c
Revert api break
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-24 06:59:40 +02:00
Joas Schilling
31dc9aa682
Add API to change preferences
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-23 16:44:23 +02:00
Joas Schilling
be4faebc47
Adjust docs to the same as the implementation
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-23 12:56:47 +02:00
Carl Schwan
8d599c3410
Merge pull request #32378 from nextcloud/fix/psalm-userbackend
...
Fix psalm issues related to the user backend
2022-05-23 11:41:21 +02:00
Christoph Wurst
450136b7cf
Add a helper function that makes it easier to log from anywhere
...
Our DI is able to inject a logger implementation to any server and app
class if they want one. However, sometimes DI isn't applicable or hard
to add. In those cases we typically fell back to the *service locator*
pattern where we acquired a logger from the server via a global
variable.
There were some issues with that
* `\OC` is a private class, apps are not supposed to use it
* `\OC::$server` is a global variable, a well known anti-pattern
* `\OC::$server->get(...)` uses the service locator anti-pattern
* `\OC::$server->get(...)` may throw
* `\OC::$server->get(LoggerInterface::class)` is not scoped to an app
With this patch I'm proposing a new helper function ``\OCP\Log\logger``
that can be used to acquire a logger more easily. This function is meant
to be public API and therefore apps may use it and there is an optional
parameter to specifiy the app ID.
The function hides all the ugly details about the global variable and
the potentially thrown exceptions from the user. Therefore it's
guaranteed that you always get a logger instance. In the worst case you
get a noop, though those occasions should be rare.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-23 09:53:38 +02:00
Carl Schwan
9ec0cb0a90
Fix psalm issues related to the user backend
...
- Reflect the actual return value returned by the implementation in the
the interface. E.g. IUser|bool -> IUser|false
- Remove $hasLoggedIn parameter from private countUser implementation.
Replace the two call with the equivalent countSeenUser
- getBackend is nuallable, add this to the interface
- Use backend interface to make psalm happy about call to undefined
methods. Also helps with getting rid at some point of the old
implementActions
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-20 17:14:58 +02:00
Joas Schilling
ad908cd87a
Make appName of TemplateResponse accessible in BeforeTemplateRenderedEvent
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-20 15:03:40 +02:00
Joas Schilling
bc82fa48d1
Merge pull request #32406 from nextcloud/debt/noid/psalm-warning-idbconnection
...
[Psalm] Fix spelling for PreConditionNotMetException
2022-05-20 14:32:33 +02:00
Thomas Citharel
28b0da59ce
Fix a doctype in OCP for IAddressBook
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-17 15:09:49 +02:00
Côme Chilliet
a4f23b17a9
Merge pull request #32404 from nextcloud/debt/noid/psalm-warning-iaddressbook
...
[Psalm] Drop redundanten return comment
2022-05-17 14:17:43 +02:00
John Molakvoæ
9e18a3be2d
Merge pull request #32405 from nextcloud/debt/noid/psalm-warning-isearchrequest
2022-05-17 08:29:32 +02:00
Thomas Citharel
4d26a9afa0
Allow to tweak default scopes for accounts
...
Close #6582
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-16 22:54:51 +02:00
Carl Schwan
53169890d6
Fix psalm errors fron the end of the baseline file
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-16 10:58:26 +02:00
Daniel Kesselberg
00b9e576b4
Fix spelling for PreConditionNotMetException
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-05-15 22:05:55 +02:00
Daniel Kesselberg
f43df2b917
Fix spelling for return type
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-05-15 22:03:28 +02:00
Daniel Kesselberg
c65952a5e8
Drop redundanten return comment
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-05-15 21:57:50 +02:00
John Molakvoæ
85758a4f70
Merge pull request #31662 from nextcloud/modernize-contactmenu
2022-05-13 20:14:31 +02:00