Skip to content

Migrate settings to the declarative v1.13.0 format - #3

Open
zormit wants to merge 3 commits into
noop-ptf:mainfrom
zormit:settings-migration
Open

Migrate settings to the declarative v1.13.0 format#3
zormit wants to merge 3 commits into
noop-ptf:mainfrom
zormit:settings-migration

Conversation

@zormit

@zormit zormit commented Aug 24, 2026

Copy link
Copy Markdown
Member

Following the guide, I first tried support multiple version (Path B). But the code for this is quite ugly, see bd37ce0 and it seems that it's not really worth it: We can probably assume the auto-updater is working well enough and almost everyone is on the newest version anyways. I tried to clarify this assumption on Discord and they said it should be ok as long as we correctly set the minAppVersion.

As for how to solve it in the new declarative format, I struggled with mapping our config. The main problem seems to be that we want to configure instances, which are a list of complex configurations ("groups"). The declarative approach has lists, which in my testing only worked with singular setting objects, not groups. Also tried to consult the Discord on that without success so far.

So I chose to render a new page as described here. Would be curious if you find another approach that works, but I think a page is okay. The downside is that your tutorial is outdated and that the configuration is a bit more nested.

One thing we could consider going forward (independently of this migration) is to provide the flagship instance as a pre-defined default instance, so that the plugin works "off the shelf".

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.

1 participant