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

Output config options ordered randomly #4745

Closed
Al2Klimov opened this issue Apr 20, 2018 · 1 comment
Closed

Output config options ordered randomly #4745

Al2Klimov opened this issue Apr 20, 2018 · 1 comment

Comments

@Al2Klimov
Copy link
Contributor

@Al2Klimov Al2Klimov commented Apr 20, 2018

Expected Behavior

My plugin's output's config options are show in the same order as I added them in the output config class independent of their amount.

Current Behavior

My plugin's output's config options are show in a random order if there are more than 10.

Possible Solution

Use a stable sort algorithm while sorting by optionality.

Steps to Reproduce (for bugs)

  1. Create an output plugin with more than 10 non-optional config options.
  2. View the config in the web UI.

Context

@N-o-X and me are developing a Graylog plugin.

Your Environment

  • Graylog Version: 2.4.3
  • Operating System: CentOS 7
@Al2Klimov
Copy link
Contributor Author

@Al2Klimov Al2Klimov commented Apr 20, 2018

PS: PR coming soon.

CC @bobapple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant