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

Add mapping possibility for list parameters #129

Open
bugy opened this issue Aug 11, 2018 · 3 comments
Open

Add mapping possibility for list parameters #129

bugy opened this issue Aug 11, 2018 · 3 comments

Comments

@bugy
Copy link
Owner

bugy commented Aug 11, 2018

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

@giuman2
Copy link

giuman2 commented Nov 15, 2021

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

@bugy
Copy link
Owner Author

bugy commented Nov 15, 2021 via email

@bugy bugy added this to the 1.18.0 milestone Apr 9, 2023
@bugy bugy added the resolved label Apr 9, 2023
@bugy
Copy link
Owner Author

bugy commented Apr 9, 2023

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

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

No branches or pull requests

2 participants