script-server icon indicating copy to clipboard operation
script-server copied to clipboard

Add mapping possibility for list parameters

Open bugy opened this issue 5 years ago • 3 comments

When a user selects a value for the list parameter, this value is passed to the script as an argument. However, sometimes required value could be too complicated (IP or MAC address, for example), then it would be possible to have some kind of mapping: user-friendly name is shown on the UI, but corresponding "technical" value is passed to the script. Example:

{
    "name": "server",
    "type": "list",
    "values": {
        "prod": "192.168.0.10",
        "dev": "192.168.0.11",
        "qa": "192.168.0.12"
    }   
}

In this case user will select from prod, dev an qa, but 192.168.0.xx will be passed to a script

bugy avatar Aug 11 '18 11:08 bugy

Hi, any news about this feature? It could be very useful in test case like the one you've mentioned.

giuman2 avatar Nov 15 '21 11:11 giuman2

Hi, there are no news since noone requested it :) I just added it to a backlog, to implement it, if I would have no other tickets

giuman2 @.***> schrieb am Mo., 15. Nov. 2021, 12:33:

Hi, any news about this feature? It could be very useful in test case like the one you've mentioned.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bugy/script-server/issues/129#issuecomment-968819388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXPJK3D4WTWKNXPPW5PSTUMDVW3ANCNFSM4FPEQT7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bugy avatar Nov 15 '21 13:11 bugy

Done, now it's possible to specify values_ui_mapping: https://github.com/bugy/script-server/wiki/Script-config#values_ui_mapping

bugy avatar Apr 09 '23 13:04 bugy