-
Notifications
You must be signed in to change notification settings - Fork 22
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
move to production #2181
move to production #2181
Conversation
Baalmart
commented
Sep 13, 2023
•
edited
Loading
edited
- Adding missing mongoose Import to models #2180
- Translations to French for health tips from the API #2159
- Fix Translate on Staging #2182
- Followup Pr for translate functionality #2184
- Fix Failing task in AirQo Bam DAG #2183
Adding missing mongoose Import to models
Translations to French for health tips from the API
@@ -589,6 +591,16 @@ const createEvent = { | |||
filter, | |||
page, | |||
}); | |||
if (language !== undefined && constants.ENVIRONMENT === "STAGING ENVIRONMENT") { | |||
let data = responseFromListEvents.data[0].data; | |||
for (const event of data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @BenjaminSsempala , this logic is still confusing me a little bit :)......
Especially the part of manipulating a const variable....and the logical flow of things is bit confusing!
Can we do this translation from somewhere else within the create-health-tips use case and minimise changes to this particular util function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Baalmart The translation is also in the create-health-tips, however The tips in the mobile app come along with the measurements using the /events
endpoint.
Followup Pr for translate functionality
filter, | ||
limit, | ||
skip, | ||
}); | ||
if (language !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, this logic is easier to understand than the one inside the create-events util. :) @BenjaminSsempala
Fix Failing task in AirQo Bam DAG