Full support of YAQL evaluation

Registered by Winson Chan

Mistral evaluation of YAQL expression is mostly string substitutions today. There are other complex YAQL expressions that should be supported (arithmetics, containers, boolean, etc.). There's a bug in the regex @ https://github.com/stackforge/mistral/blob/master/mistral/expressions.py#L82 that some YAQL expression that starts with $ gets evaluated (i.e. expr.evaluate('{$.i in $.list}', {'i': 1, 'list': [1, 2, 3]}) works but not expr.evaluate('{1 in $.list}', {'list': [1, 2, 3]})). So what level of YAQL support mistral has is ambiguous.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
Winson Chan
Direction:
Approved
Assignee:
Winson Chan
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 2015.1
Started by
Winson Chan
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-yaql-eval-full-support,n,z

Addressed by: https://review.openstack.org/150591
    Add full support for YAQL expressions

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.