Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coalesce operator breaks iteration of objects in nested array #569

Open
jadzdtc opened this issue Jun 7, 2022 · 1 comment
Open

Coalesce operator breaks iteration of objects in nested array #569

jadzdtc opened this issue Jun 7, 2022 · 1 comment
Labels
Area: Yaml question Further information is requested

Comments

@jadzdtc
Copy link

jadzdtc commented Jun 7, 2022

Following pipeline won't run

parameters:
- name: array
  type: object  
  default:
  - nestedArray: 
    - nestedArrayObject: foo
    - nestedArrayObject: bar
- name: otherArray
  type: object  
  default:
  - bar
  - baz
      
jobs:
- ${{ each item in parameters.array }}:
  - ${{ each nestedItem in coalesce(item.nestedArray, parameters.otherArray) }}: 
    - job: baz

yielding error:
image

If coalesce operator is removed, pipeline works as expected (fails due to not unique job names). Also if nested array consist of simple types, there will be no type conversion issues.

Please fix this behavior cause it is not obvious why such a construct would not work.

@vmapetr vmapetr added question Further information is requested and removed triage labels Jun 15, 2022
@vmapetr
Copy link
Contributor

vmapetr commented Jun 15, 2022

@jadzdtc Thanks for reporting! We are working on more prioritized issues now but will get back to this one soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Yaml question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants