Skip to content

Conversation

@ArtificialOwl
Copy link
Member

@ArtificialOwl ArtificialOwl commented Oct 20, 2025

From internal discussion with @nickvergessen it felt better to switch those boolean config value to non-lazy as most of them are loaded during discovery request and looking for lazy config value at that point might be counter-efficient.

This PR also contains the laziness migration to already stored value in database, using the Lexicon, on the upgrade of core and/or apps.
And remove the laziness migration pre-lexicon.

@ArtificialOwl ArtificialOwl marked this pull request as ready for review October 20, 2025 22:32
@ArtificialOwl ArtificialOwl requested a review from a team as a code owner October 20, 2025 22:32
@ArtificialOwl ArtificialOwl requested review from Altahrim, come-nc and yemkareems and removed request for a team October 20, 2025 22:32
@ArtificialOwl
Copy link
Member Author

/backport to stable32

@ArtificialOwl ArtificialOwl force-pushed the fix/noid/tmp-switch-to-non-lazy branch from 36987f8 to a7e7ca5 Compare October 20, 2025 22:34
Comment on lines 94 to 95
new Entry(self::OCM_DISCOVERY_ENABLED, ValueType::BOOL, true, 'enable/disable OCM', lazy: false),
new Entry(self::OCM_INVITE_ACCEPT_DIALOG, ValueType::STRING, '', 'route to local invite accept dialog', lazy: false, note: 'set as empty string to disable feature'),
Copy link
Member

Choose a reason for hiding this comment

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

Since it's the default:

Suggested change
new Entry(self::OCM_DISCOVERY_ENABLED, ValueType::BOOL, true, 'enable/disable OCM', lazy: false),
new Entry(self::OCM_INVITE_ACCEPT_DIALOG, ValueType::STRING, '', 'route to local invite accept dialog', lazy: false, note: 'set as empty string to disable feature'),
new Entry(self::OCM_DISCOVERY_ENABLED, ValueType::BOOL, true, 'enable/disable OCM'),
new Entry(self::OCM_INVITE_ACCEPT_DIALOG, ValueType::STRING, '', 'route to local invite accept dialog', note: 'set as empty string to disable feature'),

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ArtificialOwl ArtificialOwl force-pushed the fix/noid/tmp-switch-to-non-lazy branch from a7e7ca5 to 1329091 Compare October 21, 2025 10:28
@ArtificialOwl
Copy link
Member Author

(removing default value for lazy parameter)

@ArtificialOwl ArtificialOwl merged commit 11de3cf into master Oct 21, 2025
245 of 267 checks passed
@ArtificialOwl ArtificialOwl deleted the fix/noid/tmp-switch-to-non-lazy branch October 21, 2025 12:18
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.

4 participants