Skip to content

Conversation

@kyteinsky
Copy link
Contributor

@kyteinsky kyteinsky commented Nov 14, 2025

  • use isEnabledForAnyone instead of isInstalled to check for app_api
  • type annotations for both OCP and the OCA IContentProvider
  • migrate all config values to be lazy

Copy link
Contributor Author

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

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

a few confusion points here. It'd nice to have a piece of your mind on them.

- use `isEnabledForAnyone` instead of `isInstalled` to check for app_api
- type annotations for both OCP and the OCA IContentProvider
- make `indexed_files_count` app config non-lazy

Signed-off-by: Anupam Kumar <[email protected]>
- use `isEnabledForAnyone` instead of `isInstalled` to check for app_api
- type annotations for both OCP and the OCA IContentProvider
- make `indexed_files_count` app config non-lazy

Signed-off-by: Anupam Kumar <[email protected]>
Signed-off-by: Anupam Kumar <[email protected]>
}

$qb = $this->connection->getQueryBuilder();
$qb->update('appconfig')
Copy link
Member

@marcelklehr marcelklehr Nov 24, 2025

Choose a reason for hiding this comment

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

Mmh, why are you bypassing the Appconfig interface? The db table is not guaranteed to be stable, while the OCP interface is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it would be hard to guess if the config was originally set or not so we might end up setting it

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants