diff --git a/app/javascript/spec/action-form/__snapshots__/action-form.spec.js.snap b/app/javascript/spec/action-form/__snapshots__/action-form.spec.js.snap index 7de06568939..7963bcc8637 100644 --- a/app/javascript/spec/action-form/__snapshots__/action-form.spec.js.snap +++ b/app/javascript/spec/action-form/__snapshots__/action-form.spec.js.snap @@ -8832,6 +8832,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "assign_scan_profile", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -8880,6 +8884,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "assign_scan_profile", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -8942,6 +8950,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "assign_scan_profile", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -8996,6 +9008,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "assign_scan_profile", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -9049,6 +9065,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "assign_scan_profile", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -9133,6 +9153,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "create_snapshot", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -9158,6 +9182,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "create_snapshot", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -9197,6 +9225,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "create_snapshot", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -9228,6 +9260,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "create_snapshot", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -9258,6 +9294,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "create_snapshot", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -9334,6 +9374,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "delete_snapshots_by_age", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -9374,6 +9418,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "delete_snapshots_by_age", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -9428,6 +9476,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "delete_snapshots_by_age", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -9474,6 +9526,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "delete_snapshots_by_age", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -9519,6 +9575,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "delete_snapshots_by_age", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -9630,6 +9690,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "evaluate_alerts", + "when": "action_type", + }, "fields": Array [ Object { "AddAllButtonProps": Object { @@ -9690,6 +9754,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "evaluate_alerts", + "when": "action_type", + }, "fields": Array [ Object { "AddAllButtonProps": Object { @@ -9764,6 +9832,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "evaluate_alerts", + "when": "action_type", + }, "fields": Array [ Object { "AddAllButtonProps": Object { @@ -9830,6 +9902,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "evaluate_alerts", + "when": "action_type", + }, "fields": Array [ Object { "AddAllButtonProps": Object { @@ -9895,6 +9971,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "evaluate_alerts", + "when": "action_type", + }, "fields": Array [ Object { "AddAllButtonProps": Object { @@ -10016,6 +10096,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "inherit_parent_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -10066,6 +10150,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "inherit_parent_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -10130,6 +10218,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "inherit_parent_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -10186,6 +10278,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "inherit_parent_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -10241,6 +10337,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "inherit_parent_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -10334,6 +10434,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -10366,6 +10470,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -10412,6 +10520,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -10450,6 +10562,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -10487,6 +10603,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -10590,6 +10710,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` Object { "className": "attribute_value_pair_wrapper", "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -10649,6 +10773,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` Object { "className": "attribute_value_pair_wrapper", "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -10722,6 +10850,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` Object { "className": "attribute_value_pair_wrapper", "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -10787,6 +10919,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` Object { "className": "attribute_value_pair_wrapper", "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -10851,6 +10987,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` Object { "className": "attribute_value_pair_wrapper", "component": "sub-form", + "condition": Object { + "is": "custom_automation", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -10959,6 +11099,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_cpus", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -10998,6 +11142,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_cpus", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11051,6 +11199,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_cpus", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11096,6 +11248,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_cpus", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11140,6 +11296,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_cpus", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11216,6 +11376,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_memory", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -11242,6 +11406,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_memory", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -11282,6 +11450,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_memory", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -11314,6 +11486,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_memory", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -11345,6 +11521,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "reconfigure_memory", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -11418,6 +11598,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "remove_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11454,6 +11638,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "remove_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11504,6 +11692,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "remove_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11546,6 +11738,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "remove_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11587,6 +11783,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "remove_tags", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11691,6 +11891,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11748,6 +11952,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11819,6 +12027,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11882,6 +12094,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -11944,6 +12160,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -12052,6 +12272,18 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "and": Array [ + Object { + "is": "Specific Hosts", + "when": "options.inventory_type", + }, + Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, + ], + }, "fields": Array [ Object { "component": "text-field", @@ -12084,6 +12316,18 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "and": Array [ + Object { + "is": "Specific Hosts", + "when": "options.inventory_type", + }, + Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, + ], + }, "fields": Array [ Object { "component": "text-field", @@ -12131,6 +12375,18 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "and": Array [ + Object { + "is": "Specific Hosts", + "when": "options.inventory_type", + }, + Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, + ], + }, "fields": Array [ Object { "component": "text-field", @@ -12184,6 +12440,18 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "and": Array [ + Object { + "is": "Specific Hosts", + "when": "options.inventory_type", + }, + Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, + ], + }, "fields": Array [ Object { "component": "text-field", @@ -12225,6 +12493,18 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "and": Array [ + Object { + "is": "Specific Hosts", + "when": "options.inventory_type", + }, + Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, + ], + }, "fields": Array [ Object { "component": "text-field", @@ -12265,6 +12545,18 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "and": Array [ + Object { + "is": "Specific Hosts", + "when": "options.inventory_type", + }, + Object { + "is": "run_ansible_playbook", + "when": "action_type", + }, + ], + }, "fields": Array [ Object { "component": "text-field", @@ -12338,6 +12630,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "email", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12371,6 +12667,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "email", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12418,6 +12718,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "email", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12457,6 +12761,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "email", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12495,6 +12803,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "email", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12588,6 +12900,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12637,6 +12953,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12700,6 +13020,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12755,6 +13079,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12809,6 +13137,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -12921,6 +13253,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -12973,6 +13309,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -13039,6 +13379,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -13097,6 +13441,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -13154,6 +13502,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "snmp_trap", + "when": "action_type", + }, "fields": Array [ Object { "AddButtonProps": Object { @@ -13249,6 +13601,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "set_custom_attribute", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -13281,6 +13637,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "set_custom_attribute", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -13327,6 +13687,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "set_custom_attribute", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -13365,6 +13729,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "set_custom_attribute", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -13402,6 +13770,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "set_custom_attribute", + "when": "action_type", + }, "fields": Array [ Object { "component": "text-field", @@ -13506,6 +13878,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "tag", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -13567,6 +13943,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "tag", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -13642,6 +14022,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "tag", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -13709,6 +14093,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "tag", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", @@ -13775,6 +14163,10 @@ exports[`Action Form Component should render adding a new action 1`] = ` field={ Object { "component": "sub-form", + "condition": Object { + "is": "tag", + "when": "action_type", + }, "fields": Array [ Object { "component": "select", diff --git a/app/javascript/spec/ansible-credentials-form/__snapshots__/ansible-credentials-form.spec.js.snap b/app/javascript/spec/ansible-credentials-form/__snapshots__/ansible-credentials-form.spec.js.snap index 72d514ebd70..2453440315e 100644 --- a/app/javascript/spec/ansible-credentials-form/__snapshots__/ansible-credentials-form.spec.js.snap +++ b/app/javascript/spec/ansible-credentials-form/__snapshots__/ansible-credentials-form.spec.js.snap @@ -683,6 +683,7 @@ exports[`Ansible Credential Form Component should render adding a new credential field={ Object { "component": "text-field", + "hideField": true, "label": "manager_resource", "name": "manager_resource", "value": "", @@ -2259,6 +2260,7 @@ exports[`Ansible Credential Form Component should render editing a credential 1` field={ Object { "component": "text-field", + "hideField": true, "label": "manager_resource", "name": "manager_resource", "value": "", diff --git a/app/javascript/spec/ansible-edit-catalog-form/__snapshots__/ansible-edit-catalog-form.spec.js.snap b/app/javascript/spec/ansible-edit-catalog-form/__snapshots__/ansible-edit-catalog-form.spec.js.snap index 9b32f3a026d..9f5ef55b70f 100644 --- a/app/javascript/spec/ansible-edit-catalog-form/__snapshots__/ansible-edit-catalog-form.spec.js.snap +++ b/app/javascript/spec/ansible-edit-catalog-form/__snapshots__/ansible-edit-catalog-form.spec.js.snap @@ -31155,6 +31155,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -31172,6 +31176,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -31203,6 +31211,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -31226,6 +31238,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -31248,6 +31264,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -41895,6 +41915,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -41920,6 +41944,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -41959,6 +41987,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -41994,6 +42026,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -42028,6 +42064,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -43698,6 +43738,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -43744,6 +43788,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -43804,6 +43852,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -43860,6 +43912,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -43915,6 +43971,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -44401,6 +44461,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -44419,6 +44483,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -44451,6 +44519,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -44479,6 +44551,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -44506,6 +44582,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -44761,6 +44841,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -44805,6 +44889,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -44863,6 +44951,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -44917,6 +45009,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -44970,6 +45066,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -45435,6 +45535,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -45461,6 +45573,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -45502,6 +45626,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -45551,6 +45687,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -45588,6 +45736,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -45624,6 +45784,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -46058,6 +46230,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -46083,6 +46259,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -46122,6 +46302,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -46157,6 +46341,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -46191,6 +46379,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -47666,6 +47858,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -48035,6 +48231,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -48418,6 +48618,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -48797,6 +49001,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -49175,6 +49383,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -52551,6 +52763,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -52574,6 +52790,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -52611,6 +52831,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -52644,6 +52868,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -52676,6 +52904,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -53590,6 +53822,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -53614,6 +53850,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -53652,6 +53892,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -53686,6 +53930,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -53719,6 +53967,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -53806,6 +54058,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -53852,6 +54108,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -53912,6 +54172,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -53968,6 +54232,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -54023,6 +54291,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -54131,6 +54403,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -54149,6 +54425,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -54181,6 +54461,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -54209,6 +54493,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -54236,6 +54524,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -54313,6 +54605,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -54357,6 +54653,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -54415,6 +54715,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -54469,6 +54773,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -54522,6 +54830,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -54641,6 +54953,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -54693,6 +55017,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -54760,6 +55096,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -54835,6 +55183,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -54898,6 +55258,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -54960,6 +55332,18 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -55235,6 +55619,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -55259,6 +55647,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -55297,6 +55689,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -55331,6 +55727,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -55364,6 +55764,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -56244,6 +56648,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -56274,6 +56682,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -56318,6 +56730,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -56358,6 +56774,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -56397,6 +56817,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -56468,6 +56892,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -56494,6 +56922,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -56534,6 +56966,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -56570,6 +57006,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -56605,6 +57045,10 @@ exports[`Ansible playbook edit catalog Form Component should not render some fie field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -92809,6 +93253,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -92826,6 +93274,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -92857,6 +93309,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -92880,6 +93336,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -92902,6 +93362,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -103549,6 +104013,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -103574,6 +104042,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -103613,6 +104085,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -103648,6 +104124,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -103682,6 +104162,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -105352,6 +105836,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -105398,6 +105886,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -105458,6 +105950,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -105514,6 +106010,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -105569,6 +106069,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -106055,6 +106559,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -106073,6 +106581,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -106105,6 +106617,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -106133,6 +106649,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -106160,6 +106680,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -106415,6 +106939,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -106459,6 +106987,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -106517,6 +107049,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -106571,6 +107107,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -106624,6 +107164,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -107089,6 +107633,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -107115,6 +107671,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -107156,6 +107724,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -107205,6 +107785,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -107242,6 +107834,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -107278,6 +107882,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -107712,6 +108328,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -107737,6 +108357,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -107776,6 +108400,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -107811,6 +108439,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -107845,6 +108477,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -109320,6 +109956,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -109689,6 +110329,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -110072,6 +110716,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -110451,6 +111099,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -110829,6 +111481,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -114205,6 +114861,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -114228,6 +114888,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -114265,6 +114929,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -114298,6 +114966,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -114330,6 +115002,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -115244,6 +115920,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -115268,6 +115948,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -115306,6 +115990,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -115340,6 +116028,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -115373,6 +116065,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -117020,6 +117716,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -117066,6 +117766,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -117126,6 +117830,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -117182,6 +117890,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -117237,6 +117949,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -117703,6 +118419,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -117721,6 +118441,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -117753,6 +118477,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -117781,6 +118509,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -117808,6 +118540,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -118063,6 +118799,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -118107,6 +118847,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -118165,6 +118909,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -118219,6 +118967,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -118272,6 +119024,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -118765,6 +119521,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -118817,6 +119585,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -118884,6 +119664,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -118959,6 +119751,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -119022,6 +119826,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -119084,6 +119900,18 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -119571,6 +120399,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -119595,6 +120427,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -119633,6 +120469,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -119667,6 +120507,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -119700,6 +120544,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -120580,6 +121428,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -120610,6 +121462,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -120654,6 +121510,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -120694,6 +121554,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -120733,6 +121597,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -121053,6 +121921,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -121079,6 +121951,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -121119,6 +121995,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -121155,6 +122035,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -121190,6 +122074,10 @@ exports[`Ansible playbook edit catalog Form Component should render correct form field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -157175,6 +158063,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -157192,6 +158084,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -157223,6 +158119,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -157246,6 +158146,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -157268,6 +158172,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": true, + "when": "display", + }, "id": "long_description", "label": "Long Description", "name": "long_description", @@ -167915,6 +168823,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -167940,6 +168852,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -167979,6 +168895,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -168014,6 +168934,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -168048,6 +168972,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.playbook_id", "includeEmpty": true, "isRequired": true, @@ -169718,6 +170646,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -169764,6 +170696,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -169824,6 +170760,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -169880,6 +170820,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -169935,6 +170879,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.credential_id", "includeEmpty": true, "isRequired": true, @@ -170421,6 +171369,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -170439,6 +171391,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -170471,6 +171427,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -170499,6 +171459,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -170526,6 +171490,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -170781,6 +171749,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -170825,6 +171797,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -170883,6 +171859,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -170937,6 +171917,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -170990,6 +171974,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, "id": "config_info.provision.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -171455,6 +172443,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -171481,6 +172481,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -171522,6 +172534,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -171571,6 +172595,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -171608,6 +172644,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -171644,6 +172692,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.provision.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.provision.repository_id", + }, + ], + }, "id": "config_info.provision.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -172078,6 +173138,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -172103,6 +173167,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -172142,6 +173210,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -172177,6 +173249,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -172211,6 +173287,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "textarea", + "condition": Object { + "is": "specify", + "when": "config_info.provision.specify_host_type", + }, "id": "config_info.provision.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -173686,6 +174766,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -174055,6 +175139,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -174438,6 +175526,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -174817,6 +175909,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -175195,6 +176291,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "is": "useExisting", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.dialog_id", "includeEmpty": true, "isRequired": true, @@ -178571,6 +179671,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -178594,6 +179698,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -178631,6 +179739,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -178664,6 +179776,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -178696,6 +179812,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "createNew", + "when": "config_info.provision.dialog_type", + }, "id": "config_info.provision.new_dialog_name", "isRequired": true, "label": "Enter a new Dialog", @@ -179609,6 +180729,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -179633,6 +180757,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -179671,6 +180799,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -179705,6 +180837,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -179738,6 +180874,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.playbook_id", "includeEmpty": true, "label": "Playbook", @@ -181433,6 +182573,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -181479,6 +182623,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -181539,6 +182687,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -181595,6 +182747,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -181650,6 +182806,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.credential_id", "includeEmpty": true, "label": "Machine Credential", @@ -182164,6 +183324,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -182182,6 +183346,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -182214,6 +183382,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -182242,6 +183414,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -182269,6 +183445,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.vault_credential_id", "includeEmpty": true, "label": "Vault Credential", @@ -182524,6 +183704,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -182568,6 +183752,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -182626,6 +183814,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -182680,6 +183872,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -182733,6 +183929,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.cloud_type", "includeEmpty": true, "label": "Cloud Type", @@ -183226,6 +184426,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -183278,6 +184490,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -183345,6 +184569,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -183420,6 +184656,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -183483,6 +184731,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -183545,6 +184805,18 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "and": Array [ + Object { + "isNotEmpty": true, + "when": "config_info.retirement.cloud_type", + }, + Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, + ], + }, "id": "config_info.retirement.cloud_credential_id", "includeEmpty": true, "label": "Cloud Credential", @@ -183820,6 +185092,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -183844,6 +185120,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -183882,6 +185162,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -183916,6 +185200,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -183949,6 +185237,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "text-field", + "condition": Object { + "is": "specify", + "when": "config_info.retirement.specify_host_type", + }, "id": "config_info.retirement.hosts", "isRequired": true, "label": "Enter a comma separated list of IP or DNS names", @@ -184829,6 +186121,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -184859,6 +186155,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -184903,6 +186203,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -184943,6 +186247,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -184982,6 +186290,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources", "label": "Remove resources?", "name": "config_info.retirement.remove_resources", @@ -185302,6 +186614,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -185328,6 +186644,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -185368,6 +186688,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -185404,6 +186728,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", @@ -185439,6 +186767,10 @@ exports[`Ansible playbook edit catalog Form Component should render retirement p field={ Object { "component": "select", + "condition": Object { + "isEmpty": true, + "when": "config_info.retirement.repository_id", + }, "id": "config_info.retirement.remove_resources_with_no_repistory_id", "label": "Remove resources?", "name": "config_info.retirement.remove_resources_with_no_repistory_id", diff --git a/app/javascript/spec/embedded-terraform-credentials-form/__snapshots__/embedded-terraform-credentials-form.spec.js.snap b/app/javascript/spec/embedded-terraform-credentials-form/__snapshots__/embedded-terraform-credentials-form.spec.js.snap index 1a982c6d89e..94b3528dfd2 100644 --- a/app/javascript/spec/embedded-terraform-credentials-form/__snapshots__/embedded-terraform-credentials-form.spec.js.snap +++ b/app/javascript/spec/embedded-terraform-credentials-form/__snapshots__/embedded-terraform-credentials-form.spec.js.snap @@ -692,6 +692,7 @@ exports[`Embedded Terraform Credential Form Component should render adding a new field={ Object { "component": "text-field", + "hideField": true, "label": "manager_resource", "name": "manager_resource", "value": "", @@ -2297,6 +2298,7 @@ exports[`Embedded Terraform Credential Form Component should render editing a cr field={ Object { "component": "text-field", + "hideField": true, "label": "manager_resource", "name": "manager_resource", "value": "", diff --git a/app/javascript/spec/evacuate-form/__snapshots__/evacuate-form.spec.js.snap b/app/javascript/spec/evacuate-form/__snapshots__/evacuate-form.spec.js.snap index 15f6a164181..838c6f79d42 100644 --- a/app/javascript/spec/evacuate-form/__snapshots__/evacuate-form.spec.js.snap +++ b/app/javascript/spec/evacuate-form/__snapshots__/evacuate-form.spec.js.snap @@ -1250,6 +1250,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -1272,6 +1276,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -1308,6 +1316,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -1336,6 +1348,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -1363,6 +1379,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -1421,6 +1441,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -1446,6 +1470,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -1485,6 +1513,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -1516,6 +1548,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -1546,6 +1582,10 @@ exports[`evacuate form component should render evacuate form when hosts empty 1` field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3416,6 +3456,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -3438,6 +3482,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -3474,6 +3522,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -3502,6 +3554,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -3529,6 +3585,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -3610,6 +3670,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3656,6 +3720,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3716,6 +3784,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3768,6 +3840,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3819,6 +3895,10 @@ exports[`evacuate form component should render evacuate form with host options 1 field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5500,6 +5580,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -5522,6 +5606,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -5558,6 +5646,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -5586,6 +5678,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -5613,6 +5709,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "password-field", + "condition": Object { + "is": false, + "when": "on_shared_storage", + }, "id": "admin_password", "isRequired": true, "label": "Admin Password", @@ -5671,6 +5771,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5696,6 +5800,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5735,6 +5843,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5766,6 +5878,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5796,6 +5912,10 @@ exports[`evacuate form component should render evacuate form with multiple insta field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, diff --git a/app/javascript/spec/generic-objects-form/__snapshots__/generic-objects-form.spec.js.snap b/app/javascript/spec/generic-objects-form/__snapshots__/generic-objects-form.spec.js.snap index c9ef5598baa..a5721ca2e2a 100644 --- a/app/javascript/spec/generic-objects-form/__snapshots__/generic-objects-form.spec.js.snap +++ b/app/javascript/spec/generic-objects-form/__snapshots__/generic-objects-form.spec.js.snap @@ -10773,6 +10773,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -10802,6 +10806,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -10845,6 +10853,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -10880,6 +10892,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -10914,6 +10930,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -10978,6 +10998,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -11002,6 +11026,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -11040,6 +11068,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -11070,6 +11102,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -11099,6 +11135,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -11375,6 +11415,7 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "switch", + "hideField": true, "name": "image_update", } } @@ -18452,6 +18493,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -18481,6 +18526,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -18524,6 +18573,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -18559,6 +18612,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -18593,6 +18650,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": true, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-upload", @@ -18780,6 +18841,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -18804,6 +18869,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -18842,6 +18911,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -18872,6 +18945,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -18901,6 +18978,10 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "sub-form", + "condition": Object { + "is": false, + "when": "image_update", + }, "fields": Array [ Object { "component": "file-edit", @@ -18937,6 +19018,7 @@ exports[`Generic Object Form Component should render editing a generic object wi field={ Object { "component": "switch", + "hideField": true, "name": "image_update", } } diff --git a/app/javascript/spec/host-initiator-group-form/__snapshots__/host-initiator-group.spec.js.snap b/app/javascript/spec/host-initiator-group-form/__snapshots__/host-initiator-group.spec.js.snap index 30477885555..4e51279a086 100644 --- a/app/javascript/spec/host-initiator-group-form/__snapshots__/host-initiator-group.spec.js.snap +++ b/app/javascript/spec/host-initiator-group-form/__snapshots__/host-initiator-group.spec.js.snap @@ -1211,6 +1211,10 @@ exports[`Host Initiator Group Form Loads data and renders 1`] = ` field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_id", "includeEmpty": true, "isRequired": true, @@ -1236,6 +1240,10 @@ exports[`Host Initiator Group Form Loads data and renders 1`] = ` field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_id", "includeEmpty": true, "isRequired": true, @@ -1275,6 +1283,10 @@ exports[`Host Initiator Group Form Loads data and renders 1`] = ` field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_id", "includeEmpty": true, "isRequired": true, @@ -1306,6 +1318,10 @@ exports[`Host Initiator Group Form Loads data and renders 1`] = ` field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_id", "includeEmpty": true, "isRequired": true, @@ -1336,6 +1352,10 @@ exports[`Host Initiator Group Form Loads data and renders 1`] = ` field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_id", "includeEmpty": true, "isRequired": true, diff --git a/app/javascript/spec/live-migrate-form/__snapshots__/live-migrate-form.spec.js.snap b/app/javascript/spec/live-migrate-form/__snapshots__/live-migrate-form.spec.js.snap index 0fdc2142561..41de6e1ad45 100644 --- a/app/javascript/spec/live-migrate-form/__snapshots__/live-migrate-form.spec.js.snap +++ b/app/javascript/spec/live-migrate-form/__snapshots__/live-migrate-form.spec.js.snap @@ -1351,6 +1351,10 @@ exports[`Live Migrate form component should render live migrate form when hosts field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -1376,6 +1380,10 @@ exports[`Live Migrate form component should render live migrate form when hosts field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -1415,6 +1423,10 @@ exports[`Live Migrate form component should render live migrate form when hosts field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -1446,6 +1458,10 @@ exports[`Live Migrate form component should render live migrate form when hosts field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -1476,6 +1492,10 @@ exports[`Live Migrate form component should render live migrate form when hosts field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3485,6 +3505,10 @@ exports[`Live Migrate form component should render live migrate form with host o field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3531,6 +3555,10 @@ exports[`Live Migrate form component should render live migrate form with host o field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3591,6 +3619,10 @@ exports[`Live Migrate form component should render live migrate form with host o field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3643,6 +3675,10 @@ exports[`Live Migrate form component should render live migrate form with host o field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -3694,6 +3730,10 @@ exports[`Live Migrate form component should render live migrate form with host o field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5491,6 +5531,10 @@ exports[`Live Migrate form component should render live migrate form with multip field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5516,6 +5560,10 @@ exports[`Live Migrate form component should render live migrate form with multip field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5555,6 +5603,10 @@ exports[`Live Migrate form component should render live migrate form with multip field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5586,6 +5638,10 @@ exports[`Live Migrate form component should render live migrate form with multip field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, @@ -5616,6 +5672,10 @@ exports[`Live Migrate form component should render live migrate form with multip field={ Object { "component": "select", + "condition": Object { + "is": false, + "when": "auto_select_host", + }, "id": "destination_host", "includeEmpty": true, "isRequired": true, diff --git a/app/javascript/spec/physical-storage-form/__snapshots__/physical-storage-form.spec.js.snap b/app/javascript/spec/physical-storage-form/__snapshots__/physical-storage-form.spec.js.snap index acafccdf077..ccdb5932e4f 100644 --- a/app/javascript/spec/physical-storage-form/__snapshots__/physical-storage-form.spec.js.snap +++ b/app/javascript/spec/physical-storage-form/__snapshots__/physical-storage-form.spec.js.snap @@ -3485,6 +3485,7 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "hideField": false, "id": "name", "isDisabled": true, "label": "Name:", @@ -3606,6 +3607,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_family_id", "includeEmpty": true, "isDisabled": true, @@ -3632,6 +3637,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_family_id", "includeEmpty": true, "isDisabled": true, @@ -3672,6 +3681,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_family_id", "includeEmpty": true, "isDisabled": true, @@ -3704,6 +3717,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_family_id", "includeEmpty": true, "isDisabled": true, @@ -3735,6 +3752,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "isNotEmpty": true, + "when": "ems_id", + }, "id": "physical_storage_family_id", "includeEmpty": true, "isDisabled": true, @@ -3806,6 +3827,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "radio", + "condition": Object { + "isNotEmpty": true, + "when": "physical_storage_family_id", + }, "id": "capabilities", "isDisabled": undefined, "isRequired": true, @@ -3839,6 +3864,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "radio", + "condition": Object { + "isNotEmpty": true, + "when": "physical_storage_family_id", + }, "id": "capabilities", "isDisabled": undefined, "isRequired": true, @@ -3886,6 +3915,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "radio", + "condition": Object { + "isNotEmpty": true, + "when": "physical_storage_family_id", + }, "id": "capabilities", "isDisabled": undefined, "isRequired": true, @@ -3925,6 +3958,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "radio", + "condition": Object { + "isNotEmpty": true, + "when": "physical_storage_family_id", + }, "id": "capabilities", "isDisabled": undefined, "isRequired": true, @@ -3963,6 +4000,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "radio", + "condition": Object { + "isNotEmpty": true, + "when": "physical_storage_family_id", + }, "id": "capabilities", "isDisabled": undefined, "isRequired": true, @@ -4034,6 +4075,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "is": "Custom", + "when": "capabilities", + }, "id": "enabled_capability_values", "includeEmpty": false, "isDisabled": true, @@ -4061,6 +4106,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "is": "Custom", + "when": "capabilities", + }, "id": "enabled_capability_values", "includeEmpty": false, "isDisabled": true, @@ -4102,6 +4151,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "is": "Custom", + "when": "capabilities", + }, "id": "enabled_capability_values", "includeEmpty": false, "isDisabled": true, @@ -4135,6 +4188,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "is": "Custom", + "when": "capabilities", + }, "id": "enabled_capability_values", "includeEmpty": false, "isDisabled": true, @@ -4167,6 +4224,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "select", + "condition": Object { + "is": "Custom", + "when": "capabilities", + }, "id": "enabled_capability_values", "includeEmpty": false, "isDisabled": true, @@ -4209,6 +4270,7 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "hideField": true, "id": "edit", "initialValue": "", "isDisabled": undefined, @@ -4323,6 +4385,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "checkbox", + "condition": Object { + "is": "yes", + "when": "edit", + }, "id": "edit_authentication", "initialValue": false, "isDisabled": undefined, @@ -4341,6 +4407,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "checkbox", + "condition": Object { + "is": "yes", + "when": "edit", + }, "id": "edit_authentication", "initialValue": false, "isDisabled": undefined, @@ -4373,6 +4443,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "checkbox", + "condition": Object { + "is": "yes", + "when": "edit", + }, "id": "edit_authentication", "initialValue": false, "isDisabled": undefined, @@ -4397,6 +4471,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "checkbox", + "condition": Object { + "is": "yes", + "when": "edit", + }, "id": "edit_authentication", "initialValue": false, "isDisabled": undefined, @@ -4420,6 +4498,10 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "checkbox", + "condition": Object { + "is": "yes", + "when": "edit", + }, "id": "edit_authentication", "initialValue": false, "isDisabled": undefined, @@ -4488,6 +4570,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "management_ip", "isDisabled": undefined, "isRequired": true, @@ -4520,6 +4614,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "management_ip", "isDisabled": undefined, "isRequired": true, @@ -4567,6 +4673,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "management_ip", "isDisabled": undefined, "isRequired": true, @@ -4618,6 +4736,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "management_ip", "isDisabled": undefined, "isRequired": true, @@ -4657,6 +4787,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "management_ip", "isDisabled": undefined, "isRequired": true, @@ -4695,6 +4837,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "management_ip", "isDisabled": undefined, "isRequired": true, @@ -4867,6 +5021,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "user", "isDisabled": undefined, "isRequired": true, @@ -4899,6 +5065,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "user", "isDisabled": undefined, "isRequired": true, @@ -4946,6 +5124,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "user", "isDisabled": undefined, "isRequired": true, @@ -4997,6 +5187,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "user", "isDisabled": undefined, "isRequired": true, @@ -5036,6 +5238,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "user", "isDisabled": undefined, "isRequired": true, @@ -5074,6 +5288,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "user", "isDisabled": undefined, "isRequired": true, @@ -5246,6 +5472,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "physical_storage_password", "isDisabled": undefined, "isRequired": true, @@ -5278,6 +5516,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "physical_storage_password", "isDisabled": undefined, "isRequired": true, @@ -5325,6 +5575,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "physical_storage_password", "isDisabled": undefined, "isRequired": true, @@ -5376,6 +5638,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "physical_storage_password", "isDisabled": undefined, "isRequired": true, @@ -5415,6 +5689,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "physical_storage_password", "isDisabled": undefined, "isRequired": true, @@ -5453,6 +5739,18 @@ exports[`Physical storage form component should render editing form variant 1`] field={ Object { "component": "text-field", + "condition": Object { + "or": Array [ + Object { + "is": true, + "when": "edit_authentication", + }, + Object { + "is": "", + "when": "edit", + }, + ], + }, "id": "physical_storage_password", "isDisabled": undefined, "isRequired": true, diff --git a/app/javascript/spec/reconfigure-vm-form/__snapshots__/reconfigure-vm-form.spec.js.snap b/app/javascript/spec/reconfigure-vm-form/__snapshots__/reconfigure-vm-form.spec.js.snap index eca37940c1c..7766a7a8d07 100644 --- a/app/javascript/spec/reconfigure-vm-form/__snapshots__/reconfigure-vm-form.spec.js.snap +++ b/app/javascript/spec/reconfigure-vm-form/__snapshots__/reconfigure-vm-form.spec.js.snap @@ -2996,6 +2996,10 @@ exports[`Reconfigure VM form component should render form with only fields it ha Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -3052,6 +3056,10 @@ exports[`Reconfigure VM form component should render form with only fields it ha Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -3122,6 +3130,10 @@ exports[`Reconfigure VM form component should render form with only fields it ha Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -3184,6 +3196,10 @@ exports[`Reconfigure VM form component should render form with only fields it ha Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -3245,6 +3261,10 @@ exports[`Reconfigure VM form component should render form with only fields it ha Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -3826,6 +3846,7 @@ exports[`Reconfigure VM form component should render form with only fields it ha "key": "action", }, ], + "hideField": true, "label": "CD/DVD Drives", "name": "drive", "onCellClick": [Function], @@ -8551,6 +8572,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -8607,6 +8632,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -8677,6 +8706,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -8739,6 +8772,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -8800,6 +8837,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -9057,6 +9098,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -9148,6 +9193,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -9253,6 +9302,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -9350,6 +9403,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -9446,6 +9503,10 @@ exports[`Reconfigure VM form component should render reconfigure form and click Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -14671,6 +14732,7 @@ exports[`Reconfigure VM form component should render reconfigure form and click "key": "action", }, ], + "hideField": false, "label": "CD/DVD Drives", "name": "drive", "onCellClick": [Function], @@ -19486,6 +19548,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d field={ Object { "component": "text-field", + "hideField": true, "id": "name", "initialValue": "", "isReadOnly": true, @@ -20381,6 +20444,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d Object { "component": "select", "disabled": false, + "hideField": false, "id": "mode", "includeEmpty": true, "initialValue": "", @@ -20739,6 +20803,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d Object { "component": "select", "disabled": false, + "hideField": false, "id": "controller", "initialValue": "", "isReadOnly": false, @@ -21043,6 +21108,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d Object { "component": "switch", "disabled": false, + "hideField": false, "id": "dependent", "initialValue": "Yes", "label": "Dependent", @@ -21153,6 +21219,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d field={ Object { "component": "switch", + "hideField": false, "initialValue": false, "isReadOnly": false, "label": "Bootable", @@ -23317,6 +23384,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d field={ Object { "component": "text-field", + "hideField": false, "id": "name", "initialValue": "disk test 2", "isReadOnly": true, @@ -24209,6 +24277,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d Object { "component": "select", "disabled": true, + "hideField": false, "id": "mode", "includeEmpty": true, "initialValue": "persistent", @@ -24568,6 +24637,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d Object { "component": "select", "disabled": true, + "hideField": false, "id": "controller", "initialValue": "None", "isReadOnly": true, @@ -24873,6 +24943,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d Object { "component": "switch", "disabled": true, + "hideField": false, "id": "dependent", "initialValue": false, "label": "Dependent", @@ -24983,6 +25054,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show d field={ Object { "component": "switch", + "hideField": false, "initialValue": false, "isReadOnly": true, "label": "Bootable", @@ -27338,6 +27410,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -27394,6 +27470,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -27464,6 +27544,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -27526,6 +27610,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -27587,6 +27675,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -27723,6 +27815,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -27745,6 +27841,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -27781,6 +27881,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -27809,6 +27913,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -27836,6 +27944,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -27990,6 +28102,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -28018,6 +28134,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -28060,6 +28180,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -28094,6 +28218,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -28127,6 +28255,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -28605,6 +28737,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -28696,6 +28832,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -28801,6 +28941,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -28898,6 +29042,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -28994,6 +29142,10 @@ exports[`Reconfigure VM form component should render reconfigure form and show h Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -29210,6 +29362,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "select", + "hideField": false, "id": "socket", "label": "Sockets", "name": "socket_count", @@ -29584,6 +29737,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show h field={ Object { "component": "select", + "hideField": false, "id": "cores", "label": "Cores Per Socket", "name": "cores_per_socket_count", @@ -31444,6 +31598,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show n Object { "autoFocus": true, "component": "text-field", + "hideField": true, "id": "name", "initialValue": "", "isReadOnly": false, @@ -31580,6 +31735,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show n field={ Object { "component": "select", + "hideField": false, "id": "vlan", "includeEmpty": true, "initialValue": "", @@ -31956,6 +32112,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show n field={ Object { "component": "select", + "hideField": true, "id": "network", "includeEmpty": true, "initialValue": "", @@ -32213,6 +32370,7 @@ exports[`Reconfigure VM form component should render reconfigure form and show n field={ Object { "component": "text-field", + "hideField": true, "id": "mac", "initialValue": "", "isReadOnly": false, @@ -36467,6 +36625,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -36523,6 +36685,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -36593,6 +36759,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -36655,6 +36825,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -36716,6 +36890,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -36973,6 +37151,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -37064,6 +37246,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -37169,6 +37355,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -37266,6 +37456,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -37362,6 +37556,10 @@ exports[`Reconfigure VM form component should render reconfigure form with datat Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -43458,6 +43656,7 @@ exports[`Reconfigure VM form component should render reconfigure form with datat "key": "action", }, ], + "hideField": true, "label": "CD/DVD Drives", "name": "drive", "onCellClick": [Function], @@ -46293,6 +46492,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -46349,6 +46552,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -46419,6 +46626,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -46481,6 +46692,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -46542,6 +46757,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -46678,6 +46897,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -46700,6 +46923,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -46736,6 +46963,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -46764,6 +46995,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -46791,6 +47026,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "text-field", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "initialValue": 16, "isRequired": true, "label": "Memory Size", @@ -46945,6 +47184,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -46973,6 +47216,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -47015,6 +47262,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -47049,6 +47300,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -47082,6 +47337,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "select", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "helperText": "Between undefinedMB and NaNGB", "id": "memoryType", "initialValue": "GB", @@ -47560,6 +47819,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -47651,6 +47914,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -47756,6 +48023,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -47853,6 +48124,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -47949,6 +48224,10 @@ exports[`Reconfigure VM form component should render reconfigure form without da Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -48165,6 +48444,7 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "select", + "hideField": false, "id": "socket", "label": "Sockets", "name": "socket_count", @@ -48539,6 +48819,7 @@ exports[`Reconfigure VM form component should render reconfigure form without da field={ Object { "component": "select", + "hideField": false, "id": "cores", "label": "Cores Per Socket", "name": "cores_per_socket_count", @@ -53218,6 +53499,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -53274,6 +53559,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -53344,6 +53633,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -53406,6 +53699,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -53467,6 +53764,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "cb_memory", + }, "fields": Array [ Object { "component": "text-field", @@ -53724,6 +54025,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -53815,6 +54120,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -53920,6 +54229,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -54017,6 +54330,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -54113,6 +54430,10 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl Object { "className": "reconfigure-sub-form", "component": "sub-form", + "condition": Object { + "is": true, + "when": "processor", + }, "fields": Array [ Object { "component": "select", @@ -59319,6 +59640,7 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl "key": "action", }, ], + "hideField": false, "label": "CD/DVD Drives", "name": "drive", "onCellClick": [Function], diff --git a/app/javascript/spec/schedule-form/__snapshots__/schedule-form.spec.js.snap b/app/javascript/spec/schedule-form/__snapshots__/schedule-form.spec.js.snap index 80f39a785c7..82718ad0b65 100644 --- a/app/javascript/spec/schedule-form/__snapshots__/schedule-form.spec.js.snap +++ b/app/javascript/spec/schedule-form/__snapshots__/schedule-form.spec.js.snap @@ -7971,6 +7971,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "select", + "hideField": false, "id": "filter_type", "isRequired": true, "label": "Filter", @@ -8356,6 +8357,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "select", + "hideField": true, "id": "filter_value", "initialValue": "", "initializeOnMount": true, @@ -8568,6 +8570,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "select", + "hideField": true, "id": "zone", "includeEmpty": true, "isRequired": true, @@ -9041,6 +9044,7 @@ exports[`Schedule form component should render edit form when filter_type is not Object { "component": "plain-text", "element": "h3", + "hideField": true, "label": "Object Details", "name": "object_details", } @@ -9094,6 +9098,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "select", + "hideField": true, "id": "system", "includeEmpty": true, "isRequired": true, @@ -9355,6 +9360,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "text-field", + "hideField": true, "id": "message", "isRequired": true, "label": "Message", @@ -9491,6 +9497,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "text-field", + "hideField": true, "id": "request", "isRequired": true, "label": "Request", @@ -9619,6 +9626,7 @@ exports[`Schedule form component should render edit form when filter_type is not Object { "component": "plain-text", "element": "h3", + "hideField": true, "label": "Object", "name": "object_attributes", } @@ -9676,6 +9684,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "select", + "hideField": true, "id": "object_type", "includeEmpty": true, "isClearable": true, @@ -10031,6 +10040,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "select", + "hideField": true, "id": "object_item", "includeEmpty": true, "isClearable": true, @@ -10541,6 +10551,10 @@ exports[`Schedule form component should render edit form when filter_type is not Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -10715,6 +10729,10 @@ exports[`Schedule form component should render edit form when filter_type is not Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -10903,6 +10921,10 @@ exports[`Schedule form component should render edit form when filter_type is not Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -11083,6 +11105,10 @@ exports[`Schedule form component should render edit form when filter_type is not Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -11262,6 +11288,10 @@ exports[`Schedule form component should render edit form when filter_type is not Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -11889,6 +11919,7 @@ exports[`Schedule form component should render edit form when filter_type is not field={ Object { "component": "select", + "hideField": false, "id": "timer_value", "initialValue": 5, "initializeOnMount": true, @@ -23639,6 +23670,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "select", + "hideField": true, "id": "filter_type", "isRequired": true, "label": "Filter", @@ -23834,6 +23866,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "select", + "hideField": true, "id": "filter_value", "initialValue": "", "initializeOnMount": true, @@ -24046,6 +24079,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "select", + "hideField": false, "id": "zone", "includeEmpty": true, "isRequired": true, @@ -24515,6 +24549,7 @@ exports[`Schedule form component should render edit form when filter_type is nul Object { "component": "plain-text", "element": "h3", + "hideField": false, "label": "Object Details", "name": "object_details", } @@ -24599,6 +24634,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "select", + "hideField": false, "id": "system", "includeEmpty": true, "isRequired": true, @@ -25148,6 +25184,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "text-field", + "hideField": false, "id": "message", "isRequired": true, "label": "Message", @@ -25280,6 +25317,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "text-field", + "hideField": false, "id": "request", "isRequired": true, "label": "Request", @@ -25404,6 +25442,7 @@ exports[`Schedule form component should render edit form when filter_type is nul Object { "component": "plain-text", "element": "h3", + "hideField": false, "label": "Object", "name": "object_attributes", } @@ -25484,6 +25523,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "select", + "hideField": false, "id": "object_type", "includeEmpty": true, "isClearable": true, @@ -26021,6 +26061,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "select", + "hideField": false, "id": "object_item", "includeEmpty": true, "isClearable": true, @@ -26699,6 +26740,10 @@ exports[`Schedule form component should render edit form when filter_type is nul Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -26873,6 +26918,10 @@ exports[`Schedule form component should render edit form when filter_type is nul Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -27061,6 +27110,10 @@ exports[`Schedule form component should render edit form when filter_type is nul Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -27241,6 +27294,10 @@ exports[`Schedule form component should render edit form when filter_type is nul Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -27420,6 +27477,10 @@ exports[`Schedule form component should render edit form when filter_type is nul Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -29479,6 +29540,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "text-field", + "hideField": true, "id": "starting_object", "label": " ", "name": "starting_object", @@ -30030,6 +30092,7 @@ exports[`Schedule form component should render edit form when filter_type is nul field={ Object { "component": "select", + "hideField": false, "id": "timer_value", "initialValue": 5, "initializeOnMount": true, @@ -40332,6 +40395,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "select", + "hideField": false, "id": "filter_type", "isRequired": true, "label": "Filter", @@ -40717,6 +40781,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "select", + "hideField": true, "id": "filter_value", "initialValue": "", "initializeOnMount": true, @@ -40902,6 +40967,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "select", + "hideField": true, "id": "zone", "includeEmpty": true, "isRequired": true, @@ -41155,6 +41221,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` Object { "component": "plain-text", "element": "h3", + "hideField": true, "label": "Object Details", "name": "object_details", } @@ -41208,6 +41275,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "select", + "hideField": true, "id": "system", "includeEmpty": true, "isRequired": true, @@ -41469,6 +41537,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "text-field", + "hideField": true, "id": "message", "isRequired": true, "label": "Message", @@ -41605,6 +41674,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "text-field", + "hideField": true, "id": "request", "isRequired": true, "label": "Request", @@ -41733,6 +41803,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` Object { "component": "plain-text", "element": "h3", + "hideField": true, "label": "Object", "name": "object_attributes", } @@ -41790,6 +41861,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "select", + "hideField": true, "id": "object_type", "includeEmpty": true, "isClearable": true, @@ -42145,6 +42217,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "select", + "hideField": true, "id": "object_item", "includeEmpty": true, "isClearable": true, @@ -42655,6 +42728,10 @@ exports[`Schedule form component should render schedule add form 1`] = ` Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -42829,6 +42906,10 @@ exports[`Schedule form component should render schedule add form 1`] = ` Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -43017,6 +43098,10 @@ exports[`Schedule form component should render schedule add form 1`] = ` Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -43197,6 +43282,10 @@ exports[`Schedule form component should render schedule add form 1`] = ` Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -43376,6 +43465,10 @@ exports[`Schedule form component should render schedule add form 1`] = ` Object { "className": "attribute-value-fields-subform", "component": "sub-form", + "condition": Object { + "is": "automation_request", + "when": "action_typ", + }, "fields": Array [ Array [ Object { @@ -43976,6 +44069,7 @@ exports[`Schedule form component should render schedule add form 1`] = ` field={ Object { "component": "select", + "hideField": true, "id": "timer_value", "initialValue": 1, "initializeOnMount": true, diff --git a/app/javascript/spec/settings-time-profile-form/__snapshots__/settings-time-profile-form.spec.js.snap b/app/javascript/spec/settings-time-profile-form/__snapshots__/settings-time-profile-form.spec.js.snap index 68d9769856b..2a9ed94659b 100644 --- a/app/javascript/spec/settings-time-profile-form/__snapshots__/settings-time-profile-form.spec.js.snap +++ b/app/javascript/spec/settings-time-profile-form/__snapshots__/settings-time-profile-form.spec.js.snap @@ -5262,6 +5262,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "DaysSelectAll", + }, "isRequired": true, "label": "Days", "name": "profile.days", @@ -5313,6 +5317,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "DaysSelectAll", + }, "isRequired": true, "label": "Days", "name": "profile.days", @@ -5378,6 +5386,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "DaysSelectAll", + }, "isRequired": true, "label": "Days", "name": "profile.days", @@ -5435,6 +5447,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "DaysSelectAll", + }, "isRequired": true, "label": "Days", "name": "profile.days", @@ -5491,6 +5507,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "DaysSelectAll", + }, "isRequired": true, "label": "Days", "name": "profile.days", @@ -6531,6 +6551,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "DaysSelectAll", + }, "initialValue": Array [ 0, 1, @@ -6587,6 +6611,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "DaysSelectAll", + }, "initialValue": Array [ 0, 1, @@ -6657,6 +6685,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "DaysSelectAll", + }, "initialValue": Array [ 0, 1, @@ -6719,6 +6751,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "DaysSelectAll", + }, "initialValue": Array [ 0, 1, @@ -6780,6 +6816,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "DaysSelectAll", + }, "initialValue": Array [ 0, 1, @@ -7882,6 +7922,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (AM)", "name": "profile.hoursAM", @@ -7948,6 +7992,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (AM)", "name": "profile.hoursAM", @@ -8028,6 +8076,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (AM)", "name": "profile.hoursAM", @@ -8100,6 +8152,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (AM)", "name": "profile.hoursAM", @@ -8171,6 +8227,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (AM)", "name": "profile.hoursAM", @@ -9805,6 +9865,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (PM)", "name": "profile.hoursPM", @@ -9871,6 +9935,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (PM)", "name": "profile.hoursPM", @@ -9951,6 +10019,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (PM)", "name": "profile.hoursPM", @@ -10023,6 +10095,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (PM)", "name": "profile.hoursPM", @@ -10094,6 +10170,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": false, + "when": "HoursSelectAll", + }, "isRequired": true, "label": "Hours (PM)", "name": "profile.hoursPM", @@ -11745,6 +11825,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 0, 1, @@ -11826,6 +11910,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 0, 1, @@ -11921,6 +12009,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 0, 1, @@ -12008,6 +12100,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 0, 1, @@ -12094,6 +12190,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 0, 1, @@ -12269,6 +12369,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 12, 13, @@ -12350,6 +12454,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 12, 13, @@ -12445,6 +12553,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 12, 13, @@ -12532,6 +12644,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 12, 13, @@ -12618,6 +12734,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "checkbox", + "condition": Object { + "is": true, + "when": "HoursSelectAll", + }, "initialValue": Array [ 12, 13, @@ -12953,6 +13073,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "switch", + "condition": Object { + "pattern": /\\[\\^null\\]/, + "when": "profile.tz", + }, "id": "rollup_daily_metrics", "label": "Roll Up Daily Performance", "name": "rollup_daily_metrics", @@ -12971,6 +13095,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "switch", + "condition": Object { + "pattern": /\\[\\^null\\]/, + "when": "profile.tz", + }, "id": "rollup_daily_metrics", "label": "Roll Up Daily Performance", "name": "rollup_daily_metrics", @@ -13003,6 +13131,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "switch", + "condition": Object { + "pattern": /\\[\\^null\\]/, + "when": "profile.tz", + }, "id": "rollup_daily_metrics", "label": "Roll Up Daily Performance", "name": "rollup_daily_metrics", @@ -13029,6 +13161,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "switch", + "condition": Object { + "pattern": /\\[\\^null\\]/, + "when": "profile.tz", + }, "id": "rollup_daily_metrics", "label": "Roll Up Daily Performance", "name": "rollup_daily_metrics", @@ -13054,6 +13190,10 @@ exports[`VM common form component should render adding form variant add new time field={ Object { "component": "switch", + "condition": Object { + "pattern": /\\[\\^null\\]/, + "when": "profile.tz", + }, "id": "rollup_daily_metrics", "label": "Roll Up Daily Performance", "name": "rollup_daily_metrics", diff --git a/app/javascript/spec/workflow-credential-mapping-form/__snapshots__/workflow-credential-mapping-form.spec.js.snap b/app/javascript/spec/workflow-credential-mapping-form/__snapshots__/workflow-credential-mapping-form.spec.js.snap index e1f5d9cb9da..39d0eeb5ff7 100644 --- a/app/javascript/spec/workflow-credential-mapping-form/__snapshots__/workflow-credential-mapping-form.spec.js.snap +++ b/app/javascript/spec/workflow-credential-mapping-form/__snapshots__/workflow-credential-mapping-form.spec.js.snap @@ -3779,6 +3779,10 @@ exports[`Workflow Credential Form Component should render mapping credentials to field={ Object { "component": "sub-form", + "condition": Object { + "isNotEmpty": true, + "when": "credential_references", + }, "fields": Array [ Object { "component": "select", @@ -3842,6 +3846,10 @@ exports[`Workflow Credential Form Component should render mapping credentials to field={ Object { "component": "sub-form", + "condition": Object { + "isNotEmpty": true, + "when": "credential_references", + }, "fields": Array [ Object { "component": "select", @@ -3919,6 +3927,10 @@ exports[`Workflow Credential Form Component should render mapping credentials to field={ Object { "component": "sub-form", + "condition": Object { + "isNotEmpty": true, + "when": "credential_references", + }, "fields": Array [ Object { "component": "select", @@ -3988,6 +4000,10 @@ exports[`Workflow Credential Form Component should render mapping credentials to field={ Object { "component": "sub-form", + "condition": Object { + "isNotEmpty": true, + "when": "credential_references", + }, "fields": Array [ Object { "component": "select", @@ -4056,6 +4072,10 @@ exports[`Workflow Credential Form Component should render mapping credentials to field={ Object { "component": "sub-form", + "condition": Object { + "isNotEmpty": true, + "when": "credential_references", + }, "fields": Array [ Object { "component": "select", diff --git a/app/javascript/spec/workflow-credentials-form/__snapshots__/workflow-credentials-form.spec.js.snap b/app/javascript/spec/workflow-credentials-form/__snapshots__/workflow-credentials-form.spec.js.snap index 6ee6e4b3f94..ad58af6023b 100644 --- a/app/javascript/spec/workflow-credentials-form/__snapshots__/workflow-credentials-form.spec.js.snap +++ b/app/javascript/spec/workflow-credentials-form/__snapshots__/workflow-credentials-form.spec.js.snap @@ -692,6 +692,7 @@ exports[`Workflow Credential Form Component should render adding a new credentia field={ Object { "component": "text-field", + "hideField": true, "label": "manager_resource", "name": "manager_resource", "value": "", @@ -2297,6 +2298,7 @@ exports[`Workflow Credential Form Component should render editing a credential 1 field={ Object { "component": "text-field", + "hideField": true, "label": "manager_resource", "name": "manager_resource", "value": "", diff --git a/package.json b/package.json index 966ebe0765e..72a98f77133 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "@carbon/charts-react": "^0.58.2", "@carbon/react": "~1.100.0", "@carbon/themes": "~11.64.0", - "@data-driven-forms/carbon-component-mapper": "~4.1.2", - "@data-driven-forms/react-form-renderer": "~4.1.2", + "@data-driven-forms/carbon-component-mapper": "~4.1.13", + "@data-driven-forms/react-form-renderer": "~4.1.13", "@manageiq/font-fabulous": "~1.0.5", "@manageiq/ui-components": "~1.6.1", "@novnc/novnc": "~1.2.0", diff --git a/yarn.lock b/yarn.lock index ba8cffaee56..0e349e08daa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1784,18 +1784,18 @@ __metadata: languageName: node linkType: hard -"@data-driven-forms/carbon-component-mapper@npm:~4.1.2": - version: 4.1.6 - resolution: "@data-driven-forms/carbon-component-mapper@npm:4.1.6" +"@data-driven-forms/carbon-component-mapper@npm:~4.1.13": + version: 4.1.14 + resolution: "@data-driven-forms/carbon-component-mapper@npm:4.1.14" dependencies: "@data-driven-forms/common": "npm:*" clsx: "npm:^1.1.1" - lodash: "npm:^4.17.21" + lodash: "npm:^4.17.23" react-jss: "npm:^10.5.0" peerDependencies: react: ^17.0.2 || ^18.0.0 || ^19.0.0 react-dom: ^17.0.2 || ^18.0.0 || ^19.0.0 - checksum: 10/d3b36bbf52da5fa4588785ce02a852e5a9487673929700146b5b3691db8b2dce9dc664c6bb5575b5bb9c7d58f2a6948aba7fdf83ead27c7a7fe070ead1cb5cf7 + checksum: 10/c88198cbc1b0d4fc62b96398c23fbfc81412de3afca647eef2120a17a3d55b9e6c8f9e6e715a4832e1b19946ddb44fb14df0d9684f2b4291388bfb1ba4e46763 languageName: node linkType: hard @@ -1812,20 +1812,20 @@ __metadata: languageName: node linkType: hard -"@data-driven-forms/react-form-renderer@npm:~4.1.2": - version: 4.1.6 - resolution: "@data-driven-forms/react-form-renderer@npm:4.1.6" +"@data-driven-forms/react-form-renderer@npm:~4.1.13": + version: 4.1.13 + resolution: "@data-driven-forms/react-form-renderer@npm:4.1.13" dependencies: - final-form: "npm:^4.20.4" + final-form: "npm:^4.20.10" final-form-arrays: "npm:^3.0.2" final-form-focus: "npm:^1.1.2" - lodash: "npm:^4.17.15" + lodash: "npm:^4.17.23" react-final-form: "npm:^6.5.0" react-final-form-arrays: "npm:^3.1.1" peerDependencies: react: ^17.0.2 || ^18.0.0 || ^19.0.0 react-dom: ^17.0.2 || ^18.0.0 || ^19.0.0 - checksum: 10/d7eb7d13fc054f8e6e9d910ce8188697307c42f6a81f8f6e8f272fc101debf4fc42cd8c92d37a2bb3e8092b39aa1cff2ccf055727dde4c939546b0a7b681380a + checksum: 10/646e5a5ce3f2a47ff72b9c1e7996be755f89259386ea7078f554b4156fd5a2d6057200ee1cdb7120d0cd9b20f31cdf1616293737b007496fb15a7f592e8fa0bd languageName: node linkType: hard @@ -9668,7 +9668,7 @@ __metadata: languageName: node linkType: hard -"final-form@npm:^4.20.4": +"final-form@npm:^4.20.10": version: 4.20.10 resolution: "final-form@npm:4.20.10" dependencies: @@ -13664,8 +13664,8 @@ __metadata: "@carbon/charts-react": "npm:^0.58.2" "@carbon/react": "npm:~1.100.0" "@carbon/themes": "npm:~11.64.0" - "@data-driven-forms/carbon-component-mapper": "npm:~4.1.2" - "@data-driven-forms/react-form-renderer": "npm:~4.1.2" + "@data-driven-forms/carbon-component-mapper": "npm:~4.1.13" + "@data-driven-forms/react-form-renderer": "npm:~4.1.13" "@manageiq/font-fabulous": "npm:~1.0.5" "@manageiq/ui-components": "npm:~1.6.1" "@novnc/novnc": "npm:~1.2.0"