Skip to content

refactor: remove deprecated calls to IConfig::getAppValue#17171

Draft
miaulalala wants to merge 1 commit intomainfrom
refactor/noid/remove-deprecated-config-app-calls
Draft

refactor: remove deprecated calls to IConfig::getAppValue#17171
miaulalala wants to merge 1 commit intomainfrom
refactor/noid/remove-deprecated-config-app-calls

Conversation

@miaulalala
Copy link
Copy Markdown
Contributor

@miaulalala miaulalala commented Feb 19, 2026

To fix:

image

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • πŸ“˜ API documentation in docs/ has been updated or is not required
  • πŸ”– Capability is added or not needed

@miaulalala miaulalala self-assigned this Feb 19, 2026
@miaulalala miaulalala marked this pull request as draft February 19, 2026 16:44
@miaulalala miaulalala marked this pull request as draft February 19, 2026 16:44
Comment thread lib/Config.php Outdated
@miaulalala miaulalala marked this pull request as ready for review February 27, 2026 20:11
Comment thread lib/Config.php
$groups = $this->config->getAppValue('spreed', 'allowed_groups', '[]');
$groups = json_decode($groups, true);
return \is_array($groups) ? $groups : [];
$groups = $this->appConfig->getAppValueArray('allowed_groups');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should document the types and included changed defaults in the settings.md

Copy link
Copy Markdown
Contributor Author

@miaulalala miaulalala Mar 2, 2026

Choose a reason for hiding this comment

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

but the setter didn't change?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well we should use the same type in get and set, otherwise this is "based on assumptions that might change".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ah I see, fair enough. I just figured your comment in #17171 (comment) was meant to point me towards using getArrayValue

@miaulalala miaulalala force-pushed the refactor/noid/remove-deprecated-config-app-calls branch from 0bdd092 to bb2ab2c Compare March 2, 2026 13:20
Signed-off-by: Anna Larch <anna@nextcloud.com>
@miaulalala miaulalala force-pushed the refactor/noid/remove-deprecated-config-app-calls branch from bb2ab2c to 1adc137 Compare March 2, 2026 14:26
@miaulalala miaulalala requested a review from nickvergessen March 2, 2026 14:52
@miaulalala miaulalala marked this pull request as draft March 4, 2026 14:25
@miaulalala
Copy link
Copy Markdown
Contributor Author

to do: do the config values one by one and change settings itself, the documentation, the occ config options and every part of the code where the config options is written or read.

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.

2 participants