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

Carry precompiled templates from notification pipeline #41

Merged
merged 1 commit into from
May 22, 2017

Conversation

xla
Copy link
Member

@xla xla commented Apr 12, 2017

To finally support all the local notifications we need a way to send the configured template per language in the actual notification. This change compiles all templates for all messages before returning it as part of a map from the pipeline. This could certainly be improved to not do unnecessary work but would need that the channel which has the device knowledge has to know about the templates, either way could be wasteful. For now we trade cpu time for complexity.

@xla xla self-assigned this Apr 12, 2017
@xla xla force-pushed the localised-notifications branch 3 times, most recently from 9ef425c to 32bf24f Compare April 12, 2017 13:58
To finally support all the local notifications we need a way to send
the configured template per language in the actual notification. This
change compiles all templates for all messages before returning it as
part of a map from the pipeline. This could certainly be improved to not
do unnecessary work but would need that the channel which has the
device knowledge has to know about the templates, either way could be
wasteful. For now we trade cpu time for complexity.
@xla xla force-pushed the localised-notifications branch from 32bf24f to e9240be Compare May 8, 2017 12:51
@xla xla merged commit 18f76bf into master May 22, 2017
@xla xla deleted the localised-notifications branch May 22, 2017 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant