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

New array formatters for calculating the sum/ average of values #148

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

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