Joas Schilling
fd473f89e8
Merge pull request #37674 from nextcloud/feature/speech-to-text
...
feat(SpeechToText): Add SpeechToText OCP provider API
2023-04-19 16:29:44 +02:00
Joas Schilling
ab7b63db84
fix(autoloader): Rebuild
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-19 13:45:44 +02:00
Joas Schilling
db9901a02e
Fix(docs): Fix parameter type in doc block
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-19 12:42:23 +02:00
Marcel Klehr
fbcd275acb
Context params: Make userId nullable
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-19 12:39:39 +02:00
Marcel Klehr
a2f5421fc3
SpeechToTextManager#scheduleFileTranscription: Take context params and expose them on the Transcription*Events
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-19 12:35:13 +02:00
Marcel Klehr
a8b27c9126
TranscriptionJob: Add owner argument to simplify filesystem setup
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-19 11:26:04 +02:00
Nextcloud bot
9db33055b2
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-04-19 02:28:19 +00:00
Simon L
d6f51cf943
Merge pull request #37582 from Jerome-Herbinet/patch-16
...
To be consistent with the same field's title in the list of users
2023-04-18 23:48:18 +02:00
Christoph Wurst
2c0cfd3772
feat(app-framework): Add native argument types for middleware
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-04-18 17:15:05 +02:00
Marcel Klehr
eb996cbbb0
TranscriptionJob: Ensure filesystem is setup before trying to retrieve file
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-18 16:24:06 +02:00
Marcel Klehr
ce651e53b9
Run cs:fix
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-18 16:24:06 +02:00
Jérôme Herbinet
c343569b3f
To be consistent with the list of users
...
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2023-04-18 15:47:26 +02:00
Marcel Klehr
9649f91892
Update lib/private/SpeechToText/SpeechToTextManager.php
...
Co-authored-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-18 15:24:14 +02:00
Simon L
8508865eaf
Merge pull request #37772 from nextcloud/enh/30986/follow-up
...
Prevent the OpenDocument preview generator from trying to open empty files
2023-04-18 12:18:14 +02:00
Simon L
8fe22ebf60
Merge pull request #36617 from nextcloud/update/psr-container
...
chore: Update PSR container to 2.0.2
2023-04-18 11:40:12 +02:00
Simon L
5f879a705b
Merge pull request #37316 from nextcloud/fix/security/strict-cookie-check-status-codes
...
fix(security)!: Use consistent HTTP status for strict cookie checks
2023-04-18 11:39:18 +02:00
Joas Schilling
bef4cf0ad1
Fix missing import
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-18 10:01:00 +02:00
Simon L
855e7a2efb
Merge pull request #36774 from nextcloud/bugfix/noid/sabre-nodes
...
fix: always use proper path on node api when calling the view
2023-04-18 04:11:44 +02:00
Simon L
45a0fe490c
Merge pull request #37534 from Rsplwe/master
...
Adjust the value of the "max-parts" parameter of the object storage 'ListPart' interface to 1000
2023-04-18 00:16:38 +02:00
Simon L
5952a027c3
Merge pull request #37324 from nextcloud/fix/mapper-exception
...
Allow to catch `IMapperException` by implementing `Throwable`
2023-04-18 00:10:44 +02:00
Simon L
0a763820bc
Merge pull request #37676 from nextcloud/fix/auth/atomic-password-db-statements
...
fix(auth): Run token bulk update statements in atomic transaction
2023-04-17 23:48:24 +02:00
Julius Härtl
160bd75d0a
fix: Use proper path when creating node instances
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-17 23:46:52 +02:00
Simon L
85c9e75f33
Merge pull request #32314 from nextcloud/object-mkdir-logging
...
additional logging when mkdir fails for object storage
2023-04-17 23:42:08 +02:00
Simon L
5cda8f0f45
Merge pull request #35129 from Glandos/previewperf2
...
[Performance] Reuse preview directory listing
2023-04-17 20:22:39 +02:00
Simon L
d87cc208bb
Merge pull request #31286 from rotdrop/bugfix/dont-start-session-when-session-is-already-open
...
Don't call session_start() when PHP session is still or already open.
2023-04-17 20:14:53 +02:00
Ferdinand Thiessen
dc9d8c42bb
fix: Adjust console formatter code to match with Symfony type hints
...
Symfony has added type hints on the `OutputFormatterInterface`,
so we must adjust our type hints to match with Symfony.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-04-17 18:35:10 +02:00
Christoph Wurst
a06898a2d0
fix(security)!: Use consistent HTTP status for strict cookie checks
...
Before: 503/412
Now: 412 + json body explaining the error
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-04-17 16:06:37 +00:00
Ferdinand Thiessen
bdbff2181e
fix: Allow to catch IMapperException by implementing Throwable
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-04-17 16:05:10 +00:00
Simon L
800f40b71c
fix php-lint
...
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-04-17 17:18:09 +02:00
Marcel Klehr
3f57725a7c
SpeechToTextManager#transcribeFile: Try next provider if one fails
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-17 16:59:46 +02:00
Marcel Klehr
47cff5d651
Update lib/public/SpeechToText/ISpeechToTextManager.php
...
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-17 16:43:43 +02:00
Marcel Klehr
b082657252
Update lib/public/SpeechToText/ISpeechToTextManager.php
...
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-17 16:43:28 +02:00
Marcel Klehr
aac6a186c1
Update lib/public/SpeechToText/ISpeechToTextManager.php
...
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-17 16:43:19 +02:00
Glandos
e542e60dbc
try to make linters happy
...
Signed-off-by: Glandos <bugs-github@antipoul.fr>
2023-04-17 16:29:14 +02:00
Glandos
3440387f0f
gather code from small and max preview
...
use directory listing in both functions to gain 25% speed on run where
every preview already exist.
Signed-off-by: Glandos <bugs-github@antipoul.fr>
2023-04-17 16:29:13 +02:00
Glandos
24c121347a
Revert 0e49b40
...
Signed-off-by: Glandos <bugs-github@antipoul.fr>
2023-04-17 16:29:13 +02:00
Glandos
06a7e90383
improve parameter doc
...
Signed-off-by: Glandos <bugs-github@antipoul.fr>
2023-04-17 16:29:13 +02:00
Glandos
4954bead1d
Ensure max preview image is not null
...
Signed-off-by: Glandos <bugs-github@antipoul.fr>
2023-04-17 16:29:13 +02:00
Glandos
b6c65fee2a
php-cs-fix
...
Signed-off-by: Glandos <bugs-github@antipoul.fr>
2023-04-17 16:29:13 +02:00
Glandos
9b4d5146d5
List preview directory only once
...
getCachedPreview used to call `getFile`, and this calls `getDirectoryListing` (or underlying function that list directory) to find the file. This was done for every preview spec.
Now, this is done only once at the beginning of the loop, and the array is just iterated when needed to find the correct entry.
Signed-off-by: Glandos <bugs-github@antipoul.fr>
2023-04-17 16:29:13 +02:00
Claus-Justus Heine
45ec432492
Don't call session_start() when PHP session is still or already open.
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-04-17 16:23:02 +02:00
Claus-Justus Heine
456679c6fb
Update lib/private/Preview/Bundled.php
...
Co-authored-by: Carl Schwan <carl@carlschwan.eu>
2023-04-17 16:19:02 +02:00
Claus-Justus Heine
b3d8363327
Prevent the OpenDocument preview generator from trying to open empty files.
...
Rationale: does not make sense, and triggers a deprecation error in
\ZipArchive.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-04-17 16:19:02 +02:00
Marcel Klehr
6e9f260348
Update lib/private/SpeechToText/SpeechToTextManager.php
...
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-17 15:49:50 +02:00
Thomas Citharel
036cd47bf4
Put Mimeloader insertion and read in the same transaction
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-17 13:32:02 +00:00
Marcel Klehr
3779cc3d88
SpeechToTextManager: Deduplicate transcription jobs
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-17 14:57:19 +02:00
Marcel Klehr
ad1a0d88ef
Transcription*Event: Add doc block
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-17 14:57:19 +02:00
Marcel Klehr
71523b9816
AbstractTranscriptionEvent: Add File param
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-04-17 14:57:19 +02:00
Nextcloud bot
6746a7aebc
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-04-15 02:27:32 +00:00
Julius Härtl
eecd4601ac
Merge pull request #37429 from nextcloud/object-store-rmdir
...
improve objectstore rmdir handling
2023-04-13 18:45:12 +02:00