Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-3015

Sort attribute lists returned by maxctrl alphabetically

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.1
    • Component/s: REST-API
    • Labels:
      None

      Description

      Things like Parameters attributes in maxctrl show maxscale output (but also in other show results) are not sorted alphabetically. This makes it harder for the human eye to check for a specific setting, as it could be anywhere in the list.

      See e.g.:

      # maxctrl show maxscale
      ┌──────────────┬──────────────────────────────────────────────────────────────────────┐
      │ Version      │ 2.4.9                                                                │
      ├──────────────┼──────────────────────────────────────────────────────────────────────┤
      │ Commit       │ 321126660f222a96c2f5132de50f496199644483                             │
      ├──────────────┼──────────────────────────────────────────────────────────────────────┤
      │ Started At   │ Fri, 29 May 2020 06:54:43 GMT                                        │
      ├──────────────┼──────────────────────────────────────────────────────────────────────┤
      │ Activated At │ Fri, 29 May 2020 06:54:43 GMT                                        │
      ├──────────────┼──────────────────────────────────────────────────────────────────────┤
      │ Uptime       │ 11                                                                   │
      ├──────────────┼──────────────────────────────────────────────────────────────────────┤
      │ Parameters   │ {                                                                    │
      │              │     "libdir": "/usr/lib/x86_64-linux-gnu/maxscale",                  │
      │              │     "datadir": "/var/lib/maxscale",                                  │
      │              │     "process_datadir": "/var/lib/maxscale/data4605",                 │
      │              │     "cachedir": "/var/cache/maxscale",                               │
      │              │     "configdir": "/etc",                                             │
      │              │     "config_persistdir": "/var/lib/maxscale/maxscale.cnf.d",         │
      │              │     "module_configdir": "/etc/maxscale.modules.d",                   │
      │              │     "piddir": "/var/run/maxscale",                                   │
      │              │     "logdir": "/var/log/maxscale",                                   │
      │              │     "langdir": "/var/lib/maxscale",                                  │
      │              │     "execdir": "/usr/bin",                                           │
      │              │     "connector_plugindir": "/usr/lib/x86_64-linux-gnu/mysql/plugin", │
      │              │     "threads": 2,                                                    │
      │              │     "thread_stack_size": 8388608,                                    │
      │              │     "writeq_high_water": 0,                                          │
      │              │     "writeq_low_water": 0,                                           │
      │              │     "auth_connect_timeout": 3,                                       │
      │              │     "auth_read_timeout": 1,                                          │
      │              │     "auth_write_timeout": 2,                                         │
      │              │     "skip_permission_checks": false,                                 │
      │              │     "admin_auth": true,                                              │
      │              │     "admin_enabled": true,                                           │
      │              │     "admin_log_auth_failures": true,                                 │
      │              │     "admin_host": "127.0.0.1",                                       │
      │              │     "admin_port": 8989,                                              │
      │              │     "admin_ssl_key": "",                                             │
      │              │     "admin_ssl_cert": "",                                            │
      │              │     "admin_ssl_ca_cert": "",                                         │
      │              │     "admin_pam_readwrite_service": "",                               │
      │              │     "admin_pam_readonly_service": "",                                │
      │              │     "passive": false,                                                │
      │              │     "query_classifier": "",                                          │
      │              │     "query_classifier_cache_size": 313468723,                        │
      │              │     "retain_last_statements": 0,                                     │
      │              │     "dump_last_statements": "never",                                 │
      │              │     "session_trace": 0,                                              │
      │              │     "load_persisted_configs": true,                                  │
      │              │     "max_auth_errors_until_block": 10                                │
      │              │ }                                                                    │
      └──────────────┴──────────────────────────────────────────────────────────────────────┘
      
      

        Attachments

          Activity

            People

            Assignee:
            markus makela markus makela
            Reporter:
            hholzgra Hartmut Holzgraefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration