ansible-playbook-bundle icon indicating copy to clipboard operation
ansible-playbook-bundle copied to clipboard

conditional apb param

Open odra opened this issue 6 years ago • 4 comments

Hello,

Is there a way to:

  • show/hide a field based on some criteria?
  • skip a plan (or not) based on a parameter's value?

For example, a field should only be shown if another field is set/filled/validated.

Thanks.

odra avatar Apr 24 '18 11:04 odra

Regarding the first one there currently is not. I think we'd like to find a way as it's come up multiple times.

The second one I am not sure I fully understand. In the current UI work flow plan selection happens before filling out/selecting parameters, so I'm not sure how we could skip the plan based on parameter values. Can you explain a little further about what you'd like to see here?

jmontleon avatar Apr 24 '18 12:04 jmontleon

Something similar when I add a parameter in bind_parameters.

If I choose to create the binding during the apb creation it will add a "Parameter" step right after the "Biding" one:

screenshot from 2018-04-24 09-41-41

I was thinking if such behavior could be applied based on some criteria (checking a checkbox field in this case).

odra avatar Apr 24 '18 12:04 odra

@odra there is an on going discussion here https://github.com/openshift/ansible-service-broker/issues/859 on the topic

maleck13 avatar Apr 24 '18 16:04 maleck13

Related PR: https://github.com/automationbroker/bundle-lib/pull/70

dymurray avatar May 10 '18 13:05 dymurray