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

Comments

Projects
None yet
1 participant
@Al2Klimov
Contributor

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

This comment has been minimized.

Contributor

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