Skip to content

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

Closed
miaulalala wants to merge 1 commit into
mainfrom
refactor/noid/remove-deprecated-config-app-calls
Closed

miaulalala wants to merge 1 commit into
mainfrom
refactor/noid/remove-deprecated-config-app-calls

Conversation

@miaulalala

@miaulalala miaulalala commented Feb 19, 2026 •

Copy link
Copy Markdown
Contributor

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 Resolved
@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

@miaulalala miaulalala Mar 2, 2026 •

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.

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.

@Antreesy

Antreesy commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

@Antreesy Antreesy closed this Oct 23, 2026
@sudormant

Copy link
Copy Markdown
Contributor

Should be fully superseded with @sudormant current refactoring

* [Refactor/config/refactor federation to app config #18850](https://github.com/nextcloud/spreed/pull/18850)

* [chore(config): refactor sip settings to AppConfig, changes to different similar flags #19739](https://github.com/nextcloud/spreed/pull/19739)

* [chore(config): refactor all signaling server related configs to AppConfig #19915](https://github.com/nextcloud/spreed/pull/19915)

Yes, the rest will be merged soon and a cleanup of some leftovers and test will follow soon.

@nickvergessen
nickvergessen deleted the refactor/noid/remove-deprecated-config-app-calls branch October 23, 2026 19:27
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