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

add_field, remove_field, rename_field blocks - support list #43

Closed
spicy-sauce opened this issue Sep 4, 2022 · 0 comments · Fixed by #44
Closed

add_field, remove_field, rename_field blocks - support list #43

spicy-sauce opened this issue Sep 4, 2022 · 0 comments · Fixed by #44
Assignees

Comments

@spicy-sauce
Copy link
Member

Instead of defining multiple blocks for adding new fields, for example, support this format too (list)

  - uses: add_field
    with:
      - field: BillingHouseNumber
        expression: split(`BillingAddress`,'.')[0]
      - field: BillingStreet
        expression: split(`BillingAddress`,'.')[1]
      - field: BillingCountry
        expression: upper(`BillingCountry`)
      - field: VAT
        expression: total * 1.17
        language: sql

The other format should be also supported for dealing with only one field:

  - uses: add_field
    with:
        field: BillingHouseNumber
        expression: split(`BillingAddress`,'.')[0]
@spicy-sauce spicy-sauce changed the title add_field, remove_field, rename_field blocks - support list add_field, remove_field, rename_field blocks - support list Sep 4, 2022
@spicy-sauce spicy-sauce self-assigned this Sep 5, 2022
@spicy-sauce spicy-sauce changed the title add_field, remove_field, rename_field blocks - support list Blocks - support list in with Sep 5, 2022
@spicy-sauce spicy-sauce changed the title Blocks - support list in with Blocks - support list in with property Sep 5, 2022
@spicy-sauce spicy-sauce changed the title Blocks - support list in with property add_field, remove_field, rename_field blocks - support list Sep 5, 2022
zalmane added a commit that referenced this issue Sep 5, 2022
…ame_field-blocks-support-list

`add_field`, `remove_field`, `rename_field` blocks - support list #43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant