Commit Graph

201 Commits (master)

Author SHA1 Message Date
Julien Veyssier d967151f52
fix(bg-jobs): review adjustments
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2 weeks ago
Marcel Klehr 352d79deee
fix(bg-jobs): fix psalm issues
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2 weeks ago
Julius Härtl d69b8ecf95
fix(bg-jobs): Fix running once when no job was scheduled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2 weeks ago
Julius Härtl 8400bfee01
feat(bg-jobs): Add background worker occ command
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2 weeks ago
yemkareems 703214fd9c
feat: command added to clear avatar cache manually
Signed-off-by: yemkareems <yemkareems@gmail.com>
1 month ago
Marcel Müller e23e89f384 feat(occ): Add user:keys:test command
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
3 months ago
Côme Chilliet ceff16bbf9
chore: Fix DI for integrity checker before installation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
4 months ago
Côme Chilliet 0e1931754a
chore: use DI for \OC\Repair
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
4 months ago
Côme Chilliet aee189f6c7
chore: Revert using DI for IntegrityCodeChecker as it uses a special service name
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
4 months ago
Côme Chilliet 46f729b63b
chore: use DI for Command\Security\ListCertificates
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
4 months ago
Côme Chilliet f4a267536a
chore: use long namespaced class instead of putting it inline
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
4 months ago
Côme Chilliet c1d67cc614
chore: Fix DI for Encryption\DecryptAll command
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
4 months ago
Côme Chilliet cc26a503a3
chore: Use DI in register_command instead of new calls
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
4 months ago
Maxence Lange f7d0c74b10 lazy AppConfig
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
4 months ago
Maxence Lange bd3df759fb occ background-job:delete
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
4 months ago
Maxence Lange e62e9e3dbf IFilesMetadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
6 months ago
Côme Chilliet b5eeaa90d7 Add a command to run the setup checks from CLI
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
6 months ago
Lucas Azevedo 79bc6ba06c Merge branch 'master' into auth-token-commands 9 months ago
Anna 5805ccde1d
Merge pull request #38298 from nextcloud/enh/occ-sync-account-data
feat: Add occ user:user:sync-account-data for updating oc_accounts information from user backends
9 months ago
Lucas Azevedo 5af683d2c4 Namespace user auth token commands
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
9 months ago
Lucas Azevedo f7bf468e22
Use autowiring when registering commands
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
9 months ago
Lucas Azevedo 651044ce17 feat: Add user:delete-auth-token command
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
9 months ago
Lucas Azevedo eed32112c5 feat: Add user:auth-tokens command
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
9 months ago
Joas Schilling b2fd283a30
feat(OCC): Add a command to get the bruteforce state of an IP
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 months ago
Joas Schilling f73f14207c
fix(db): Move missing core columns to typed event
Signed-off-by: Joas Schilling <coding@schilljs.com>
10 months ago
Joas Schilling 77c2b169a5
fix(db): Move missing core primary keys to typed event
Signed-off-by: Joas Schilling <coding@schilljs.com>
10 months ago
Julius Härtl 925bcebcb6
feat: Add public event for missing indices
Signed-off-by: Julius Härtl <jus@bitgrid.net>
10 months ago
Julius Härtl 095b43f396
feat: Add occ user:sync-account-data for updating oc_accounts information from user backends
This can be useful in cases where the state between user backend and
oc_accounts has become inconsistent.

Usually the account data is updated once the change on the user backend
is detected. Potential leftovers from older bugs
(https://github.com/nextcloud/user_saml/pull/582) might though never get
updated. This could lead to the contacts menu never showing the correct
display name. The contacts menu is read from the system address book,
which is only updated from oc_accounts.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
11 months ago
Robin Appelman 2b4bd02be9
add command to summarize space usage
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 year ago
Robin Appelman 60cf0c8f5f
add command for getting fileinfo for debugging
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 year ago
Robin Appelman 013eedabbd
add command to generate a preview for a file
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 year ago
Côme Chilliet f5c361cf44
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 year ago
Robin Appelman 3d68a526e7
move share owner repair to occ command
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Côme Chilliet a2a7150d6d
Migrate Repair events to OCP\EventDispatcher\Event
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Carl Schwan 458c2fa297
Remove OCP\App and OCP\BackgroundJob
Both deprecated since NC 23

IAppManager is the replacement for OCP\App unfortunately it can't be
dependency injected in classes used by the installed otherwise the
database connection is initialised too early

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Côme Chilliet 3cf8c63409 Fix ListCommand constructor call in register_command
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet 3d01179907 Add command to list jobs
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Carl Schwan b70c6a128f Update core to PHP 7.4 standard
- Typed properties
- Port to LoggerInterface

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Côme Chilliet b865722ac0
Remove deprecated occ app:check-code command
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet e8c1f75064
Fixing psalm errors
Encryption constructor is problematic and should still be fixed later.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Joas Schilling f98044ddce
Trigger an event to log an activity when an administrator generates an app password
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Côme Chilliet b0e6a10263
Use the new function in user:setting occ command
instead of direct database queries

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Joas Schilling 9cd9f4b4bc
Move queries to the joblist
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Joas Schilling e2a7482b49
Add a command to show info about a background job and force-execute it
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Julius Härtl 3b6be67719
Align occ status with status.php
Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years ago
John Molakvoæ (skjnldsv) 215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
3 years ago
Joas Schilling dfedd83f79
Remove the migration commands unless in debug mode
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Morris Jobke 726d01843e
Merge pull request #26600 from hosting-de/feature/occ-tags
Add commands to manage tags via OCC
3 years ago
Johannes Leuker d606799ee2 Add commands to manage tags via OCC
list, add, delete, edit

Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
3 years ago
Christoph Wurst 6a5d89c1ac
Merge pull request #26758 from J0WI/more-strict
Some more strict_types
3 years ago