-
Notifications
You must be signed in to change notification settings - Fork 141
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
Structure refactoring/incidence rates #797
Conversation
# Conflicts: # js/components/ir-manager.js # js/main.js # js/modules/iranalysis/components/editor.js # js/modules/iranalysis/components/report.js
Something changed in the Incidence Rate API where when we used to get the report data back from this call:
But now the resulting data structure is soemthing resembling an XHR request: The data is buried somewhere under the 'data' field, but the api is just supposed to return the data, not the low level details of the ajax request. Can you change this to have the previous behavior? |
@chrisknoll sure, fixed it |
Fixed css path to report stylesheet found in cohort builder.
@johnSamilin , I pushed up some fixes:
If you don't see any problems with these changes, I can approve and merge it in. |
Yes, seems like I just missed those two functions. When I analyse the code of the component, I convert the callbacks from regular functions to arrow ones to preserve its context. |
No, the arrow-function style is fine with me. It's just that we need to make sure that we are using arrow functions where the function might be called async and 'this' becomes undefined. So, use arrow functions because they handle the 'this' binding to the view model automatically. If you have no objections, I will merge this PR in. |
part of #633