Skip to content

Conversation

@alxtsg
Copy link

@alxtsg alxtsg commented Jan 19, 2022

New formatters for calculating the sum/ average of an array of values. User can
specify an optional value path to extract values from an array of objects.

A formatter for calculating the sum of an array of values. User can
specify an optional value path to extract values from an array of objects.
@alxtsg alxtsg changed the title New array formatter for calculating the sum of of values New array formatter for calculating the sum of values Jan 19, 2022
A formatter for calculating the average of an array of values. User can
specify  an optional value path to extract values from an array of objects.
@alxtsg alxtsg changed the title New array formatter for calculating the sum of values New array formatter for calculating the sum/ average of values Jan 19, 2022
@alxtsg alxtsg changed the title New array formatter for calculating the sum/ average of values New array formatters for calculating the sum/ average of values Jan 19, 2022
@zerotraceme
Copy link

This functionality is what I'd need now. Any updates on the merging?

@alxtsg
Copy link
Author

alxtsg commented Mar 30, 2022

This functionality is what I'd need now. Any updates on the merging?

I'm also waiting for the team to merge and include the formatters in the next release. At the moment you can use something like patch-package to prepare a patch with the changes I made. When you deploy your Node.js application, run npx patch-package to apply the changes after npm install (you can also add the postinstall script in your package.json to run that automatically), then you will have the formatters ready for use. I'm using this approach and it works quite well.

@zerotraceme
Copy link

Thank you @alxtsg !

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.

2 participants