Yaql Range(stop) function fails in Murano dashboard

Bug #1700579 reported by Ellen Batbouta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
New
Undecided
Unassigned

Bug Description

In the UI yaml file for my package, I tried to use the range function with the signature:

range(stop)

and I got this error:

File "/usr/local/lib/python2.7/dist-packages/yaql/language/utils.py", line 198, in limiting_iterator
    raise exceptions.CollectionTooLargeException(max_count)
CollectionTooLargeException: Collection length exceeds 10000 elements

This is not a high priority bug since there is a work-around. The range function with 2 input
parameters:

signature: range(start, stop, step => 1)

works just fine.

Revision history for this message
Ellen Batbouta (ellen-batbouta) wrote :

The reason this function does not work in the murano dashboard is because the dashboard is using legacy mode for yaql. Legacy mode enables yaql 0.2 as well as yaql 1.0. This range function was broken in yaql 0.2 and explains the behavior reported in this bug.

The solution is to increment the minor version of the murano UI. Then add a version check to determine if legacy mode should be enabled or not.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.