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

Fix UI config conversion yet again #4128

Merged

Conversation

DingDongSoLong4
Copy link
Collaborator

@DingDongSoLong4 DingDongSoLong4 commented Sep 15, 2023

This fixes a bug with the UI config camelCase conversion, which I came across while running #4107. While it does not cause an actual issue right now, when #4107 merges this issue will cause the front page configuration to break, due to sortBy not being converted to sort_by and instead being stored in the config file as sortBy.

The change in viper that triggers the bug is spf13/viper#1387, which is in viper v1.13.0 (we're currently on v1.10.1, and #4107 updates to v1.16.0).

Unfortunately, the key in the config file will only be converted from sortBy to sort_by when the UI configuration is next saved. This means that merging #4107 will cause an issue - either we wait to update viper, or fix the config file automatically in some way.

@WithoutPants WithoutPants modified the milestone: Version 0.23.0 Sep 17, 2023
@WithoutPants WithoutPants added this to the Version 0.24.0 milestone Oct 18, 2023
@WithoutPants WithoutPants added the bug Something isn't working label Oct 18, 2023
@WithoutPants WithoutPants merged commit 24984da into stashapp:develop Oct 18, 2023
2 checks passed
@DingDongSoLong4 DingDongSoLong4 deleted the fix-config-snake-case branch October 18, 2023 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants