Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Add graphs for useful trends #2

@jdm

Description

@jdm

We're interested in graphs showing the following:

  • average number of intermittent failures per PR over time
  • average number of intermittent failures per PR per platform over time

It's probably easiest to generate the required data in a JS array as part of

#endpoint for production front end - serves form for getting records from the db by name and date range
@app.route("/search")
def search():
if request.args.get('isQuery') :
if request.args.get('dateCheck') :
result = db.adv_query(request.args.get('filename'), request.args.get('start'), request.args.get('end'))
sorted_result = sorted(result, key=itemgetter('test_file'))
grouped = itertools.groupby(sorted_result, lambda x: x['test_file'])
unsorted_summary = map(lambda x: {'test_file': x[0], 'count': len(list(x[1]))}, grouped)
summary = sorted(unsorted_summary, key=itemgetter('count'), reverse=True)
else :
result = db.adv_query(request.args.get('filename'), request.args.get('defaultStart'), request.args.get('defaultEnd'))
summary = [{'test_file': request.args.get('filename'), 'count': len(result)}]
return render_template('searchtool.html', records=result, summary=summary)
else :
return render_template('searchtool.html')
and and then create the actual graph using your favourite JS charting library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions