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

Added a service to generate the customer feed from hotwax to Netsuite. #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Shinde-nutan
Copy link
Contributor

Todo: Add the description

@Shinde-nutan Shinde-nutan marked this pull request as ready for review December 30, 2024 04:25
customerData.remove("areaCode")
customerData.remove("contactNumber")

customerList.add(customerData)

Choose a reason for hiding this comment

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

It's not good practice to keep all data in memory and then write to file. This will cause performance issue,
Instead you should write data to file.

Copy link
Contributor

Choose a reason for hiding this comment

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

So as each customer is iterated, we should be writing to file. Correct? @dixitdeepak

Choose a reason for hiding this comment

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

We should use writer to write data for each row, there are various ways to write large data in file using writer stream.

productStoreId:productStoreId], false)"/>
<set field="csvFilePath" from="ec.resource.getLocationReference(csvFilePathRef).getUri().getPath()"/>

<!--TODO: Here currently the view used to get the eligible orders for the create feed does not have the shipment method
Copy link
Contributor

Choose a reason for hiding this comment

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

eligible orders?

customerData.remove("areaCode")
customerData.remove("contactNumber")

customerList.add(customerData)
Copy link
Contributor

Choose a reason for hiding this comment

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

So as each customer is iterated, we should be writing to file. Correct? @dixitdeepak

}
}
</script>
<!-- Save the Json Feed File path in System Message messageText -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<!-- Save the Json Feed File path in System Message messageText -->
<!-- Save the CSV Feed File path in System Message messageText -->

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.

3 participants