Skip to content

chore: Mark IUserConfig entries as lazy#173

Merged
marcelklehr merged 3 commits intomainfrom
fix/maintenance
Feb 5, 2026
Merged

chore: Mark IUserConfig entries as lazy#173
marcelklehr merged 3 commits intomainfrom
fix/maintenance

Conversation

@marcelklehr
Copy link
Member

where needed

where needed

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr marcelklehr requested a review from julien-nc January 29, 2026 14:04
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Optional change request.

* @param array $options
*/
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
foreach ($this->userConfig->getUserIds(Application::APP_ID) as $userId) {
Copy link
Member

Choose a reason for hiding this comment

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

Oh nice, i didn't know about userConfig->getUserIds.

}
}

// store oauth_instance_url as non-lazy
Copy link
Member

Choose a reason for hiding this comment

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

Maybe do the same for the navigation_enabled and url user keys? Check if it's there lazy and store it as non lazy.

I know those values are not supposed to have been stored previously as lazy but why not?

Copy link
Member Author

Choose a reason for hiding this comment

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

They are queried on each request, that's why I didn't make them lazy.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry for the confusion. I'm not saying why not making them lazy? but rather why not adding the extra step to read and store them non-lazy if they are stored lazy?

Copy link
Member Author

@marcelklehr marcelklehr Feb 5, 2026

Choose a reason for hiding this comment

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

But they're not stored as lazy? :D

@marcelklehr marcelklehr merged commit 77abc71 into main Feb 5, 2026
20 checks passed
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.

2 participants