Commit graph

12 commits

Author SHA1 Message Date
Julius Härtl
4ee9deea00 fix(theming): Fix query for configvalue as CLOB on OCI
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-07 13:15:43 +00:00
Vincent Petry
e127a927af
Remove "mixed" argument to make psalm happy
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-11 10:06:41 +01:00
Côme Chilliet
c5eb39b8ff
Fix theming migration repair step by passing correct type for argument
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-11 09:53:14 +01:00
Arthur Schiwon
6916a311e7
rename placeholder
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:51:28 +01:00
Arthur Schiwon
2f8ff76061
fix const visibility
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:51:24 +01:00
blizzz
8992ba85c7
use const
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-11-22 13:51:18 +01:00
blizzz
300148b21d
use .json extentions
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-11-22 13:51:13 +01:00
Arthur Schiwon
854bfcc38d
do not store state in appconfig
- and use count over isset for better understanding

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:51:09 +01:00
Arthur Schiwon
266426f5e4
remove dashboard check, as fallback did not consider it either
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:51:00 +01:00
Arthur Schiwon
20859a3f3f
optimize background image migration job
- separate in two stages: to prepare, and to actually migrate
- in step one, prepare a list of users to be migrated, and store it
  compressed as app config
  - gzcompress can be used, because we already require zlib
- upon the next calls (step two), slice off the first 5000 users
  and migrate them. Re-add job if necessary to repeat.
- downside is that an app config value will in the beginning use the
  RAM with any request, until it thins out. Examples: 2m UUIDs (75 MiB)
  result in ~40 MiB compressed data, while 0.2Mib for 10 000 UUIDs,
  0.4MiB for 20 000 and 4.1 MiB for 200 000. Acceptable.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:50:54 +01:00
John Molakvoæ
98a95fb986
Fix migration
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-14 16:19:38 +02:00
Arthur Schiwon
1309459fee
graceful background image handling
- fallback to background image from old location
- migrate background images to new location as insensitive job

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-10-13 18:01:48 +02:00