~deeptik/lava-dashboard/kernel-ci-data-veiw-report

« back to all changes in this revision

Viewing changes to views/board-activity.xml

  • Committer: Paul Larson
  • Date: 2011-05-04 04:39:58 UTC
  • Revision ID: paul.larson@canonical.com-20110504043958-qrohaeggm2j0ikmi
Add hostname to board-activity

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<data-view name="board-activity">
2
2
    <sql backend="postgresql"> 
3
3
        SELECT
 
4
            NamedAttribute_Target_Hostname.value AS "Hostname",
4
5
            HardwareDevice_Board.description AS "Board",
5
6
            NamedAttribute_HardwarePack_Type.value
6
7
              || ' '
26
27
            INNER JOIN dashboard_app_test AS Test ON (
27
28
                Test.id = TestRun.test_id
28
29
            )
 
30
            INNER JOIN dashboard_app_namedattribute AS NamedAttribute_Target_Hostname ON (
 
31
                NamedAttribute_Target_Hostname.object_id = TestRun.id
 
32
                AND NamedAttribute_Target_Hostname.content_type_id = (
 
33
                    SELECT
 
34
                        django_content_type.id
 
35
                    FROM
 
36
                        django_content_type
 
37
                    WHERE
 
38
                        app_label = 'dashboard_app'
 
39
                        AND model='testrun'
 
40
                    )
 
41
                AND NamedAttribute_Target_Hostname.name = 'target.hostname'
 
42
            )
29
43
            INNER JOIN dashboard_app_namedattribute AS NamedAttribute_HardwarePack_Type ON (
30
44
                NamedAttribute_HardwarePack_Type.object_id = TestRun.id
31
45
                AND NamedAttribute_HardwarePack_Type.content_type_id = (