-
Feature Request
-
Resolution: Can't Do
-
Minor
-
None
-
2.8 GA
-
None
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
The UI order of policy params (on the admin portal) should be more intuitive, especially the conditional part of the policy.
Example (custom metric policy) https://github.com/3scale/APIcast/blob/master/gateway/src/apicast/policy/custom_metrics/apicast-policy.json
Order in the JSON file:
"properties": { "left": { }, "op": { }, "right": { }, "left_type": { }, "right_type": { }, }
Order in the UI is:
- op
- right
- left_type
- left
- right_type**
The order in the UI should be:
- left
- op
- right
- left_type
- right_type**
DEV notes:
I had done some investigation, and it seems that this is caused by the conversion of JSON file to Lua table https://github.com/3scale/APIcast/blob/master/gateway/src/apicast/policy_manifests_loader.lua#L50. Lua tables are not ordered, and the ordering is lost when
cjson.decode(manifest)
is performed.
- is blocked by
-
THREESCALE-6116 Conditional Policy User Interface issues on Admin Portal
- To Define