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

Repeat action #2284

Closed
wants to merge 9 commits into from
Closed

Repeat action #2284

wants to merge 9 commits into from

Conversation

shanthi4647
Copy link
Collaborator

Support for Repeat action through
f(x) "expression": "Repeat(count(sourceArrayField), sourceSimpleField)"

  • value of the 'sourceSimpleField' value gets repeated based on count of 'sourceArrayField' and assigned to target mapped field

Linked to issue - #2276

# Conflicts:
#	lib/api/src/main/java/io/atlasmap/spi/AtlasFieldReader.java
#	lib/core/src/main/java/io/atlasmap/core/DefaultAtlasFieldActionService.java
#	lib/model/src/main/java/io/atlasmap/v2/OneToManyAction.java
#	lib/model/src/main/java/io/atlasmap/v2/RepeatForFieldPathCount.java
#	lib/modules/csv/core/src/main/java/io/atlasmap/csv/core/CsvFieldReader.java
#	lib/modules/java/core/src/main/java/io/atlasmap/java/core/JavaFieldReader.java
#	lib/modules/json/core/src/main/java/io/atlasmap/json/core/JsonFieldReader.java
#	lib/modules/xml/core/src/main/java/io/atlasmap/xml/core/XmlFieldReader.java
… HEAD

# Conflicts:
#	__ui-old/src/app/lib/atlasmap-data-mapper/components/mapping-detail/mapping-field-action-argument.component.html
#	lib/api/src/main/java/io/atlasmap/spi/AtlasFieldReader.java
#	lib/core/src/main/java/io/atlasmap/actions/StringComplexFieldActions.java
#	lib/core/src/main/java/io/atlasmap/core/DefaultAtlasFieldActionService.java
#	lib/itests/core/src/test/resources/data/json-source-repeat.json
#	lib/itests/core/src/test/resources/mappings/atlasmapping-multiplicity-transformation-action_repeat.json
#	lib/model/src/main/java/io/atlasmap/v2/OneToManyAction.java
#	lib/model/src/main/resources/META-INF/services/io.atlasmap.v2.Action
#	lib/modules/java/core/src/main/java/io/atlasmap/java/core/JavaFieldReader.java
#	lib/modules/json/core/src/main/java/io/atlasmap/json/core/JsonFieldReader.java
#	lib/modules/xml/core/src/main/java/io/atlasmap/xml/core/XmlFieldReader.java
@netlify
Copy link

netlify bot commented Aug 13, 2020

Deploy preview for atlasmap canceled.

Built with commit 28a2531

https://app.netlify.com/sites/atlasmap/deploys/5f34ea521510da0007b5bd3f

@rkorytkowski
Copy link
Contributor

@shanthi4647 please squash all your commits into one and correct the commit message to conform to our conventions:

fix: one_to_many mapping - repeat source value based on count 
Fixes #2276 


</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No changes should be needed in the UI...

Copy link
Contributor

@rkorytkowski rkorytkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Squash commits
  2. Get rid of UI changes

@rkorytkowski
Copy link
Contributor

Opening a new one at #2287

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 this pull request may close these issues.

None yet

2 participants