Skip to content

Conversation

icewind1991
Copy link
Member

Adds the following commands:

  • occ files:object:info <object id> get metadata from an object
  • occ files:object:list list all objects
  • occ files:object:orphans list all objects not referenced in the database

Only implemented for S3 at the moment

use Symfony\Component\Console\Output\OutputInterface;

class ObjectUtil {
class ObjectUtil extends Base {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that needed?
It’s really weird for this helper that’s not a command or a command parent to extend Base.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's to get access to the output helpers

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don’t like it. It should either be a parent class to the commands, or a trait that they use.

Copy link
Member Author

@icewind1991 icewind1991 Mar 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the streaming output logic to Base so it no longer needs to inherit here

@icewind1991 icewind1991 force-pushed the object-store-orphan branch from a91f313 to 7ce06f4 Compare March 31, 2025 12:30
@icewind1991 icewind1991 merged commit 874c283 into master Mar 31, 2025
192 of 196 checks passed
@icewind1991 icewind1991 deleted the object-store-orphan branch March 31, 2025 12:55
@icewind1991
Copy link
Member Author

/backport to stable31

@icewind1991
Copy link
Member Author

/backport to stable30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants