Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default of local sidebar sections #448

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

e-five256
Copy link
Member

@e-five256 e-five256 commented Jan 17, 2024

move out from env var similar to federated search

mentioned in #446 adding a new env var comes with the price of either breaking existing instance owners or defaulting, but the defaulting in symfony always appears to have a lot of issues, especially with non-string types like ints and bools (e.g. Invalid env fallback in \"default:false:MBIN_SIDEBAR_SECTIONS_LOCAL_ONLY\")

I think it might be best if we keep new settings to having sane defaults in php, and using the db as the source of truth for when set, and potentially deprecate the use of env var unless absolutely necessary (granted I added one for default theme, before realizing it wasn't a requirement to adding a new admin setting, potentially we could remove it and others)

move out from env var similar to federated search
Copy link
Member

@nobodyatroot nobodyatroot left a comment

Choose a reason for hiding this comment

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

Verified this works as expected on a bare metal dev env.

@e-five256 e-five256 merged commit 4050037 into main Jan 17, 2024
7 checks passed
@e-five256 e-five256 deleted the e5/local-side-default-php branch January 17, 2024 21:33
@e-five256
Copy link
Member Author

@thepaperpilot headsup if you were relying on setting the env var to true locally, you'll want to get it saved and written to the DB settings table before getting this change

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.

None yet

2 participants