-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add new param for getting chat data #307
Conversation
(parse-http :get url) => :some-chart))) | ||
(parse-http :get url) => :some-chart)) | ||
|
||
(facts "About get chart 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.
The get function was not tested. Added tests for all the three possible scenarios
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.
small change that might be needed though: the assertions should be inside the fact
statements
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.
For example (from the documentation here)
(fact "one plus one is two" (+ 1 1) => 2)
src/milia/api/charts.cljc
Outdated
url (if field-xpath | ||
(make-url (format url-template id field-xpath group-by)) | ||
(make-url (format url-template id field-name group-by)))] |
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.
url (if field-xpath | |
(make-url (format url-template id field-xpath group-by)) | |
(make-url (format url-template id field-name group-by)))] | |
url (make-url (format url-template id (or field-xpath field-name) group-by))] |
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.
looks good
b68f4f2
to
0c2243a
Compare
Part of https://github.com/onaio/zebra/issues/6675
Add an option of using field_xpath param to get single chart data.