Cumulative per-build pass/fail statistics in image report
Hello,
I am trying to add some per-build pass/fail graphs to the Image Report (build_A: X pass Y fail, build_B: M pass N fail, etc). However, I did not find a convenient way to get the data I need.
Right now, I have to parse each row of the table, adding passes and fails to the according build as they go. I did a quick proof-of-concept in Javascript:
{% for col in cols %}
ddates.
dpasses[
dfails[
{% endfor %}
{% for row_data in table_data %}
{% for result in row_data %}
{% if result.present %}
dpasses[
dfails[
{% endif %}
{% endfor %}
{% endfor %}
However, this is slow. On the other hand, from examining the model and view, I didn't find a more convenient way to get this data.
It would be faster to move these calculations inside the view, but do you have a better recommendation? Or am I perhaps missing something obvious?
Thank you,
Vivia
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Vivia Nikolaidou for more information if necessary.