Comment 1 for bug 1521038

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Looking at the code, it seems that the two option can't be used at the same time: https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/stacks/forms.py#L327-L336

If custom constraint is used, the allowedvalues is not applied anymore.

The change was introduced here: https://review.openstack.org/#/c/133270/

I suppose the expected behavior is:
1. Apply the custom constraint to get the list of Values
2. then if AllowedValues is defined, filter the list returned.