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

Improve node ordering when updating configs #4954

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

Konicai
Copy link
Member

@Konicai Konicai commented Aug 9, 2024

Ensures that the position of nodes modified or created during migrations does not differ from the config classes. For example, renaming the key of a node no longer results in the node being at the end of the map it belongs to.

I need to do some more testing for ConfigurateCommentMover, along with unit tests, as I've made some changes since last testing it, but it isn't actually triggered currently as described in the code.


A remaining issue (unrelated to this PR) is that due to the behaviour of configurate-interfaces, and the usage of subclasses of GeyserConfig, the subclass methods that add nodes or update comments are promoted to the top of the generated class. In other words, the ordering does not respect that declared in GeyserConfig.

For example with plugin impls, the following are promoted to the top of their sections:

  • clone-remote-port
  • half the ping passthrough settings
  • the hidden settings

I would really like to not see this. Unfortunately I don't have time to improve configurate-interfaces currently.

@Camotoy Camotoy merged commit 85d63de into GeyserMC:feature/configurate Aug 21, 2024
2 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