]> source.dussan.org Git - sonarqube.git/blob
55575bcdea0d784322fc40a8948c0ccd7b4137c3
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`application overview should fetch correctly other branch 1`] = `
4 <Memo(BranchOverviewRenderer)
5   analyses={
6     [
7       {
8         "date": "2017-03-01T09:36:01+0100",
9         "detectedCI": "Cirrus CI",
10         "events": [],
11         "key": "foo",
12         "projectVersion": "1.0",
13       },
14       {
15         "date": "2017-03-01T09:36:01+0100",
16         "events": [],
17         "key": "foo",
18         "projectVersion": "1.0",
19       },
20       {
21         "date": "2017-03-01T09:36:01+0100",
22         "events": [],
23         "key": "foo",
24         "projectVersion": "1.0",
25       },
26       {
27         "date": "2017-03-01T09:36:01+0100",
28         "events": [],
29         "key": "foo",
30         "projectVersion": "1.0",
31       },
32       {
33         "date": "2017-03-01T09:36:01+0100",
34         "events": [],
35         "key": "foo",
36         "projectVersion": "1.0",
37       },
38     ]
39   }
40   appLeak={
41     {
42       "date": "2017-01-05",
43       "project": "foo",
44       "projectName": "Foo",
45     }
46   }
47   branch={
48     {
49       "analysisDate": "2018-01-01",
50       "excludedFromPurge": true,
51       "isMain": false,
52       "name": "branch-6.7",
53     }
54   }
55   component={
56     {
57       "breadcrumbs": [
58         {
59           "breadcrumbs": [],
60           "key": "foo",
61           "name": "MyProject",
62           "qualifier": "APP",
63           "qualityGate": {
64             "isDefault": true,
65             "key": "30",
66             "name": "Sonar way",
67           },
68           "qualityProfiles": [
69             {
70               "deleted": false,
71               "key": "my-qp",
72               "language": "ts",
73               "name": "Sonar way",
74             },
75           ],
76           "tags": [],
77         },
78       ],
79       "key": "my-project",
80       "name": "MyProject",
81       "qualifier": "APP",
82       "qualityGate": {
83         "isDefault": true,
84         "key": "30",
85         "name": "Sonar way",
86       },
87       "qualityProfiles": [
88         {
89           "deleted": false,
90           "key": "my-qp",
91           "language": "ts",
92           "name": "Sonar way",
93         },
94       ],
95       "tags": [],
96     }
97   }
98   detectedCIOnLastAnalysis={true}
99   graph="coverage"
100   loadingHistory={false}
101   loadingStatus={false}
102   measures={
103     [
104       {
105         "bestValue": true,
106         "metric": {
107           "id": "alert_status",
108           "key": "alert_status",
109           "name": "alert_status",
110           "type": "INT",
111         },
112         "period": undefined,
113         "value": "1.0",
114       },
115       {
116         "bestValue": true,
117         "metric": {
118           "id": "quality_gate_details",
119           "key": "quality_gate_details",
120           "name": "quality_gate_details",
121           "type": "INT",
122         },
123         "period": undefined,
124         "value": "1.0",
125       },
126       {
127         "bestValue": true,
128         "metric": {
129           "id": "bugs",
130           "key": "bugs",
131           "name": "bugs",
132           "type": "INT",
133         },
134         "period": undefined,
135         "value": "1.0",
136       },
137       {
138         "bestValue": true,
139         "leak": "1",
140         "metric": {
141           "id": "new_bugs",
142           "key": "new_bugs",
143           "name": "new_bugs",
144           "type": "INT",
145         },
146         "period": {
147           "bestValue": true,
148           "index": 1,
149           "value": "1.0",
150         },
151         "value": "1.0",
152       },
153       {
154         "bestValue": true,
155         "metric": {
156           "id": "reliability_rating",
157           "key": "reliability_rating",
158           "name": "reliability_rating",
159           "type": "RATING",
160         },
161         "period": undefined,
162         "value": "1.0",
163       },
164       {
165         "bestValue": true,
166         "leak": "1",
167         "metric": {
168           "id": "new_reliability_rating",
169           "key": "new_reliability_rating",
170           "name": "new_reliability_rating",
171           "type": "RATING",
172         },
173         "period": {
174           "bestValue": true,
175           "index": 1,
176           "value": "1.0",
177         },
178         "value": "1.0",
179       },
180       {
181         "bestValue": true,
182         "metric": {
183           "id": "vulnerabilities",
184           "key": "vulnerabilities",
185           "name": "vulnerabilities",
186           "type": "INT",
187         },
188         "period": undefined,
189         "value": "1.0",
190       },
191       {
192         "bestValue": true,
193         "leak": "1",
194         "metric": {
195           "id": "new_vulnerabilities",
196           "key": "new_vulnerabilities",
197           "name": "new_vulnerabilities",
198           "type": "INT",
199         },
200         "period": {
201           "bestValue": true,
202           "index": 1,
203           "value": "1.0",
204         },
205         "value": "1.0",
206       },
207       {
208         "bestValue": true,
209         "metric": {
210           "id": "security_rating",
211           "key": "security_rating",
212           "name": "security_rating",
213           "type": "RATING",
214         },
215         "period": undefined,
216         "value": "1.0",
217       },
218       {
219         "bestValue": true,
220         "leak": "1",
221         "metric": {
222           "id": "new_security_rating",
223           "key": "new_security_rating",
224           "name": "new_security_rating",
225           "type": "RATING",
226         },
227         "period": {
228           "bestValue": true,
229           "index": 1,
230           "value": "1.0",
231         },
232         "value": "1.0",
233       },
234       {
235         "bestValue": true,
236         "metric": {
237           "id": "security_hotspots",
238           "key": "security_hotspots",
239           "name": "security_hotspots",
240           "type": "INT",
241         },
242         "period": undefined,
243         "value": "1.0",
244       },
245       {
246         "bestValue": true,
247         "leak": "1",
248         "metric": {
249           "id": "new_security_hotspots",
250           "key": "new_security_hotspots",
251           "name": "new_security_hotspots",
252           "type": "INT",
253         },
254         "period": {
255           "bestValue": true,
256           "index": 1,
257           "value": "1.0",
258         },
259         "value": "1.0",
260       },
261       {
262         "bestValue": true,
263         "metric": {
264           "id": "security_hotspots_reviewed",
265           "key": "security_hotspots_reviewed",
266           "name": "security_hotspots_reviewed",
267           "type": "INT",
268         },
269         "period": undefined,
270         "value": "1.0",
271       },
272       {
273         "bestValue": true,
274         "leak": "1",
275         "metric": {
276           "id": "new_security_hotspots_reviewed",
277           "key": "new_security_hotspots_reviewed",
278           "name": "new_security_hotspots_reviewed",
279           "type": "INT",
280         },
281         "period": {
282           "bestValue": true,
283           "index": 1,
284           "value": "1.0",
285         },
286         "value": "1.0",
287       },
288       {
289         "bestValue": true,
290         "metric": {
291           "id": "security_review_rating",
292           "key": "security_review_rating",
293           "name": "security_review_rating",
294           "type": "RATING",
295         },
296         "period": undefined,
297         "value": "1.0",
298       },
299       {
300         "bestValue": true,
301         "leak": "1",
302         "metric": {
303           "id": "new_security_review_rating",
304           "key": "new_security_review_rating",
305           "name": "new_security_review_rating",
306           "type": "RATING",
307         },
308         "period": {
309           "bestValue": true,
310           "index": 1,
311           "value": "1.0",
312         },
313         "value": "1.0",
314       },
315       {
316         "bestValue": true,
317         "metric": {
318           "id": "code_smells",
319           "key": "code_smells",
320           "name": "code_smells",
321           "type": "INT",
322         },
323         "period": undefined,
324         "value": "1.0",
325       },
326       {
327         "bestValue": true,
328         "leak": "1",
329         "metric": {
330           "id": "new_code_smells",
331           "key": "new_code_smells",
332           "name": "new_code_smells",
333           "type": "INT",
334         },
335         "period": {
336           "bestValue": true,
337           "index": 1,
338           "value": "1.0",
339         },
340         "value": "1.0",
341       },
342       {
343         "bestValue": true,
344         "metric": {
345           "id": "sqale_rating",
346           "key": "sqale_rating",
347           "name": "sqale_rating",
348           "type": "RATING",
349         },
350         "period": undefined,
351         "value": "1.0",
352       },
353       {
354         "bestValue": true,
355         "leak": "1",
356         "metric": {
357           "id": "new_maintainability_rating",
358           "key": "new_maintainability_rating",
359           "name": "new_maintainability_rating",
360           "type": "RATING",
361         },
362         "period": {
363           "bestValue": true,
364           "index": 1,
365           "value": "1.0",
366         },
367         "value": "1.0",
368       },
369       {
370         "bestValue": true,
371         "metric": {
372           "id": "sqale_index",
373           "key": "sqale_index",
374           "name": "sqale_index",
375           "type": "INT",
376         },
377         "period": undefined,
378         "value": "1.0",
379       },
380       {
381         "bestValue": true,
382         "leak": "1",
383         "metric": {
384           "id": "new_technical_debt",
385           "key": "new_technical_debt",
386           "name": "new_technical_debt",
387           "type": "INT",
388         },
389         "period": {
390           "bestValue": true,
391           "index": 1,
392           "value": "1.0",
393         },
394         "value": "1.0",
395       },
396       {
397         "bestValue": true,
398         "metric": {
399           "id": "coverage",
400           "key": "coverage",
401           "name": "coverage",
402           "type": "PERCENT",
403         },
404         "period": undefined,
405         "value": "1.0",
406       },
407       {
408         "bestValue": true,
409         "leak": "1",
410         "metric": {
411           "id": "new_coverage",
412           "key": "new_coverage",
413           "name": "new_coverage",
414           "type": "PERCENT",
415         },
416         "period": {
417           "bestValue": true,
418           "index": 1,
419           "value": "1.0",
420         },
421         "value": "1.0",
422       },
423       {
424         "bestValue": true,
425         "metric": {
426           "id": "lines_to_cover",
427           "key": "lines_to_cover",
428           "name": "lines_to_cover",
429           "type": "INT",
430         },
431         "period": undefined,
432         "value": "1.0",
433       },
434       {
435         "bestValue": true,
436         "leak": "1",
437         "metric": {
438           "id": "new_lines_to_cover",
439           "key": "new_lines_to_cover",
440           "name": "new_lines_to_cover",
441           "type": "INT",
442         },
443         "period": {
444           "bestValue": true,
445           "index": 1,
446           "value": "1.0",
447         },
448         "value": "1.0",
449       },
450       {
451         "bestValue": true,
452         "metric": {
453           "id": "tests",
454           "key": "tests",
455           "name": "tests",
456           "type": "INT",
457         },
458         "period": undefined,
459         "value": "1.0",
460       },
461       {
462         "bestValue": true,
463         "metric": {
464           "id": "duplicated_lines_density",
465           "key": "duplicated_lines_density",
466           "name": "duplicated_lines_density",
467           "type": "INT",
468         },
469         "period": undefined,
470         "value": "1.0",
471       },
472       {
473         "bestValue": true,
474         "leak": "1",
475         "metric": {
476           "id": "new_duplicated_lines_density",
477           "key": "new_duplicated_lines_density",
478           "name": "new_duplicated_lines_density",
479           "type": "INT",
480         },
481         "period": {
482           "bestValue": true,
483           "index": 1,
484           "value": "1.0",
485         },
486         "value": "1.0",
487       },
488       {
489         "bestValue": true,
490         "metric": {
491           "id": "duplicated_blocks",
492           "key": "duplicated_blocks",
493           "name": "duplicated_blocks",
494           "type": "INT",
495         },
496         "period": undefined,
497         "value": "1.0",
498       },
499       {
500         "bestValue": true,
501         "metric": {
502           "id": "ncloc",
503           "key": "ncloc",
504           "name": "ncloc",
505           "type": "INT",
506         },
507         "period": undefined,
508         "value": "1.0",
509       },
510       {
511         "bestValue": true,
512         "metric": {
513           "id": "ncloc_language_distribution",
514           "key": "ncloc_language_distribution",
515           "name": "ncloc_language_distribution",
516           "type": "INT",
517         },
518         "period": undefined,
519         "value": "1.0",
520       },
521       {
522         "bestValue": true,
523         "metric": {
524           "id": "projects",
525           "key": "projects",
526           "name": "projects",
527           "type": "INT",
528         },
529         "period": undefined,
530         "value": "1.0",
531       },
532       {
533         "bestValue": true,
534         "metric": {
535           "id": "lines",
536           "key": "lines",
537           "name": "lines",
538           "type": "INT",
539         },
540         "period": undefined,
541         "value": "1.0",
542       },
543       {
544         "bestValue": true,
545         "leak": "1",
546         "metric": {
547           "id": "new_lines",
548           "key": "new_lines",
549           "name": "new_lines",
550           "type": "INT",
551         },
552         "period": {
553           "bestValue": true,
554           "index": 1,
555           "value": "1.0",
556         },
557         "value": "1.0",
558       },
559     ]
560   }
561   measuresHistory={
562     [
563       {
564         "history": [
565           {
566             "date": "PARSED:2019-01-05",
567             "value": "2.0",
568           },
569         ],
570         "metric": "bugs",
571       },
572       {
573         "history": [
574           {
575             "date": "PARSED:2019-01-05",
576             "value": "0",
577           },
578         ],
579         "metric": "vulnerabilities",
580       },
581       {
582         "history": [
583           {
584             "date": "PARSED:2019-01-01",
585             "value": "1.0",
586           },
587         ],
588         "metric": "sqale_index",
589       },
590       {
591         "history": [
592           {
593             "date": "PARSED:2019-01-02",
594             "value": "1.0",
595           },
596         ],
597         "metric": "duplicated_lines_density",
598       },
599       {
600         "history": [
601           {
602             "date": "PARSED:2019-01-03",
603             "value": "10000",
604           },
605         ],
606         "metric": "ncloc",
607       },
608       {
609         "history": [
610           {
611             "date": "PARSED:2019-01-04",
612             "value": "95.5",
613           },
614         ],
615         "metric": "coverage",
616       },
617     ]
618   }
619   metrics={
620     [
621       {
622         "id": "alert_status",
623         "key": "alert_status",
624         "name": "alert_status",
625         "type": "INT",
626       },
627       {
628         "id": "quality_gate_details",
629         "key": "quality_gate_details",
630         "name": "quality_gate_details",
631         "type": "INT",
632       },
633       {
634         "id": "bugs",
635         "key": "bugs",
636         "name": "bugs",
637         "type": "INT",
638       },
639       {
640         "id": "new_bugs",
641         "key": "new_bugs",
642         "name": "new_bugs",
643         "type": "INT",
644       },
645       {
646         "id": "reliability_rating",
647         "key": "reliability_rating",
648         "name": "reliability_rating",
649         "type": "RATING",
650       },
651       {
652         "id": "new_reliability_rating",
653         "key": "new_reliability_rating",
654         "name": "new_reliability_rating",
655         "type": "RATING",
656       },
657       {
658         "id": "vulnerabilities",
659         "key": "vulnerabilities",
660         "name": "vulnerabilities",
661         "type": "INT",
662       },
663       {
664         "id": "new_vulnerabilities",
665         "key": "new_vulnerabilities",
666         "name": "new_vulnerabilities",
667         "type": "INT",
668       },
669       {
670         "id": "security_rating",
671         "key": "security_rating",
672         "name": "security_rating",
673         "type": "RATING",
674       },
675       {
676         "id": "new_security_rating",
677         "key": "new_security_rating",
678         "name": "new_security_rating",
679         "type": "RATING",
680       },
681       {
682         "id": "security_hotspots",
683         "key": "security_hotspots",
684         "name": "security_hotspots",
685         "type": "INT",
686       },
687       {
688         "id": "new_security_hotspots",
689         "key": "new_security_hotspots",
690         "name": "new_security_hotspots",
691         "type": "INT",
692       },
693       {
694         "id": "security_hotspots_reviewed",
695         "key": "security_hotspots_reviewed",
696         "name": "security_hotspots_reviewed",
697         "type": "INT",
698       },
699       {
700         "id": "new_security_hotspots_reviewed",
701         "key": "new_security_hotspots_reviewed",
702         "name": "new_security_hotspots_reviewed",
703         "type": "INT",
704       },
705       {
706         "id": "security_review_rating",
707         "key": "security_review_rating",
708         "name": "security_review_rating",
709         "type": "RATING",
710       },
711       {
712         "id": "new_security_review_rating",
713         "key": "new_security_review_rating",
714         "name": "new_security_review_rating",
715         "type": "RATING",
716       },
717       {
718         "id": "code_smells",
719         "key": "code_smells",
720         "name": "code_smells",
721         "type": "INT",
722       },
723       {
724         "id": "new_code_smells",
725         "key": "new_code_smells",
726         "name": "new_code_smells",
727         "type": "INT",
728       },
729       {
730         "id": "sqale_rating",
731         "key": "sqale_rating",
732         "name": "sqale_rating",
733         "type": "RATING",
734       },
735       {
736         "id": "new_maintainability_rating",
737         "key": "new_maintainability_rating",
738         "name": "new_maintainability_rating",
739         "type": "RATING",
740       },
741       {
742         "id": "sqale_index",
743         "key": "sqale_index",
744         "name": "sqale_index",
745         "type": "INT",
746       },
747       {
748         "id": "new_technical_debt",
749         "key": "new_technical_debt",
750         "name": "new_technical_debt",
751         "type": "INT",
752       },
753       {
754         "id": "coverage",
755         "key": "coverage",
756         "name": "coverage",
757         "type": "PERCENT",
758       },
759       {
760         "id": "new_coverage",
761         "key": "new_coverage",
762         "name": "new_coverage",
763         "type": "PERCENT",
764       },
765       {
766         "id": "lines_to_cover",
767         "key": "lines_to_cover",
768         "name": "lines_to_cover",
769         "type": "INT",
770       },
771       {
772         "id": "new_lines_to_cover",
773         "key": "new_lines_to_cover",
774         "name": "new_lines_to_cover",
775         "type": "INT",
776       },
777       {
778         "id": "tests",
779         "key": "tests",
780         "name": "tests",
781         "type": "INT",
782       },
783       {
784         "id": "duplicated_lines_density",
785         "key": "duplicated_lines_density",
786         "name": "duplicated_lines_density",
787         "type": "INT",
788       },
789       {
790         "id": "new_duplicated_lines_density",
791         "key": "new_duplicated_lines_density",
792         "name": "new_duplicated_lines_density",
793         "type": "INT",
794       },
795       {
796         "id": "duplicated_blocks",
797         "key": "duplicated_blocks",
798         "name": "duplicated_blocks",
799         "type": "INT",
800       },
801       {
802         "id": "ncloc",
803         "key": "ncloc",
804         "name": "ncloc",
805         "type": "INT",
806       },
807       {
808         "id": "ncloc_language_distribution",
809         "key": "ncloc_language_distribution",
810         "name": "ncloc_language_distribution",
811         "type": "INT",
812       },
813       {
814         "id": "projects",
815         "key": "projects",
816         "name": "projects",
817         "type": "INT",
818       },
819       {
820         "id": "lines",
821         "key": "lines",
822         "name": "lines",
823         "type": "INT",
824       },
825       {
826         "id": "new_lines",
827         "key": "new_lines",
828         "name": "new_lines",
829         "type": "INT",
830       },
831     ]
832   }
833   onGraphChange={[Function]}
834   projectIsEmpty={false}
835   qgStatuses={
836     [
837       {
838         "branchLike": undefined,
839         "failedConditions": [
840           {
841             "actual": "10",
842             "error": "1.0",
843             "level": "ERROR",
844             "measure": {
845               "bestValue": true,
846               "metric": {
847                 "id": "coverage",
848                 "key": "coverage",
849                 "name": "coverage",
850                 "type": "PERCENT",
851               },
852               "period": undefined,
853               "value": "1.0",
854             },
855             "metric": "coverage",
856             "op": "GT",
857             "period": undefined,
858           },
859           {
860             "actual": "5",
861             "error": "1.0",
862             "level": "ERROR",
863             "measure": {
864               "bestValue": true,
865               "leak": "1",
866               "metric": {
867                 "id": "new_bugs",
868                 "key": "new_bugs",
869                 "name": "new_bugs",
870                 "type": "INT",
871               },
872               "period": {
873                 "bestValue": true,
874                 "index": 1,
875                 "value": "1.0",
876               },
877               "value": "1.0",
878             },
879             "metric": "new_bugs",
880             "op": "GT",
881             "period": 1,
882           },
883         ],
884         "key": "foo",
885         "name": "Foo",
886         "status": "ERROR",
887       },
888       {
889         "branchLike": undefined,
890         "failedConditions": [
891           {
892             "actual": "15",
893             "error": "5.0",
894             "level": "ERROR",
895             "measure": {
896               "bestValue": true,
897               "leak": "1",
898               "metric": {
899                 "id": "new_bugs",
900                 "key": "new_bugs",
901                 "name": "new_bugs",
902                 "type": "INT",
903               },
904               "period": {
905                 "bestValue": true,
906                 "index": 1,
907                 "value": "1.0",
908               },
909               "value": "1.0",
910             },
911             "metric": "new_bugs",
912             "op": "GT",
913             "period": 1,
914           },
915         ],
916         "key": "bar",
917         "name": "Bar",
918         "status": "ERROR",
919       },
920     ]
921   }
922 />
923 `;
924
925 exports[`application overview should render correctly 1`] = `
926 <Memo(BranchOverviewRenderer)
927   analyses={
928     [
929       {
930         "date": "2017-03-01T09:36:01+0100",
931         "detectedCI": "Cirrus CI",
932         "events": [],
933         "key": "foo",
934         "projectVersion": "1.0",
935       },
936       {
937         "date": "2017-03-01T09:36:01+0100",
938         "events": [],
939         "key": "foo",
940         "projectVersion": "1.0",
941       },
942       {
943         "date": "2017-03-01T09:36:01+0100",
944         "events": [],
945         "key": "foo",
946         "projectVersion": "1.0",
947       },
948       {
949         "date": "2017-03-01T09:36:01+0100",
950         "events": [],
951         "key": "foo",
952         "projectVersion": "1.0",
953       },
954       {
955         "date": "2017-03-01T09:36:01+0100",
956         "events": [],
957         "key": "foo",
958         "projectVersion": "1.0",
959       },
960     ]
961   }
962   appLeak={
963     {
964       "date": "2017-01-05",
965       "project": "foo",
966       "projectName": "Foo",
967     }
968   }
969   branch={
970     {
971       "analysisDate": "2018-01-01",
972       "excludedFromPurge": true,
973       "isMain": true,
974       "name": "master",
975     }
976   }
977   component={
978     {
979       "breadcrumbs": [
980         {
981           "breadcrumbs": [],
982           "key": "foo",
983           "name": "MyProject",
984           "qualifier": "APP",
985           "qualityGate": {
986             "isDefault": true,
987             "key": "30",
988             "name": "Sonar way",
989           },
990           "qualityProfiles": [
991             {
992               "deleted": false,
993               "key": "my-qp",
994               "language": "ts",
995               "name": "Sonar way",
996             },
997           ],
998           "tags": [],
999         },
1000       ],
1001       "key": "my-project",
1002       "name": "MyProject",
1003       "qualifier": "APP",
1004       "qualityGate": {
1005         "isDefault": true,
1006         "key": "30",
1007         "name": "Sonar way",
1008       },
1009       "qualityProfiles": [
1010         {
1011           "deleted": false,
1012           "key": "my-qp",
1013           "language": "ts",
1014           "name": "Sonar way",
1015         },
1016       ],
1017       "tags": [],
1018     }
1019   }
1020   detectedCIOnLastAnalysis={true}
1021   graph="coverage"
1022   loadingHistory={false}
1023   loadingStatus={false}
1024   measures={
1025     [
1026       {
1027         "bestValue": true,
1028         "metric": {
1029           "id": "alert_status",
1030           "key": "alert_status",
1031           "name": "alert_status",
1032           "type": "INT",
1033         },
1034         "period": undefined,
1035         "value": "1.0",
1036       },
1037       {
1038         "bestValue": true,
1039         "metric": {
1040           "id": "quality_gate_details",
1041           "key": "quality_gate_details",
1042           "name": "quality_gate_details",
1043           "type": "INT",
1044         },
1045         "period": undefined,
1046         "value": "1.0",
1047       },
1048       {
1049         "bestValue": true,
1050         "metric": {
1051           "id": "bugs",
1052           "key": "bugs",
1053           "name": "bugs",
1054           "type": "INT",
1055         },
1056         "period": undefined,
1057         "value": "1.0",
1058       },
1059       {
1060         "bestValue": true,
1061         "leak": "1",
1062         "metric": {
1063           "id": "new_bugs",
1064           "key": "new_bugs",
1065           "name": "new_bugs",
1066           "type": "INT",
1067         },
1068         "period": {
1069           "bestValue": true,
1070           "index": 1,
1071           "value": "1.0",
1072         },
1073         "value": "1.0",
1074       },
1075       {
1076         "bestValue": true,
1077         "metric": {
1078           "id": "reliability_rating",
1079           "key": "reliability_rating",
1080           "name": "reliability_rating",
1081           "type": "RATING",
1082         },
1083         "period": undefined,
1084         "value": "1.0",
1085       },
1086       {
1087         "bestValue": true,
1088         "leak": "1",
1089         "metric": {
1090           "id": "new_reliability_rating",
1091           "key": "new_reliability_rating",
1092           "name": "new_reliability_rating",
1093           "type": "RATING",
1094         },
1095         "period": {
1096           "bestValue": true,
1097           "index": 1,
1098           "value": "1.0",
1099         },
1100         "value": "1.0",
1101       },
1102       {
1103         "bestValue": true,
1104         "metric": {
1105           "id": "vulnerabilities",
1106           "key": "vulnerabilities",
1107           "name": "vulnerabilities",
1108           "type": "INT",
1109         },
1110         "period": undefined,
1111         "value": "1.0",
1112       },
1113       {
1114         "bestValue": true,
1115         "leak": "1",
1116         "metric": {
1117           "id": "new_vulnerabilities",
1118           "key": "new_vulnerabilities",
1119           "name": "new_vulnerabilities",
1120           "type": "INT",
1121         },
1122         "period": {
1123           "bestValue": true,
1124           "index": 1,
1125           "value": "1.0",
1126         },
1127         "value": "1.0",
1128       },
1129       {
1130         "bestValue": true,
1131         "metric": {
1132           "id": "security_rating",
1133           "key": "security_rating",
1134           "name": "security_rating",
1135           "type": "RATING",
1136         },
1137         "period": undefined,
1138         "value": "1.0",
1139       },
1140       {
1141         "bestValue": true,
1142         "leak": "1",
1143         "metric": {
1144           "id": "new_security_rating",
1145           "key": "new_security_rating",
1146           "name": "new_security_rating",
1147           "type": "RATING",
1148         },
1149         "period": {
1150           "bestValue": true,
1151           "index": 1,
1152           "value": "1.0",
1153         },
1154         "value": "1.0",
1155       },
1156       {
1157         "bestValue": true,
1158         "metric": {
1159           "id": "security_hotspots",
1160           "key": "security_hotspots",
1161           "name": "security_hotspots",
1162           "type": "INT",
1163         },
1164         "period": undefined,
1165         "value": "1.0",
1166       },
1167       {
1168         "bestValue": true,
1169         "leak": "1",
1170         "metric": {
1171           "id": "new_security_hotspots",
1172           "key": "new_security_hotspots",
1173           "name": "new_security_hotspots",
1174           "type": "INT",
1175         },
1176         "period": {
1177           "bestValue": true,
1178           "index": 1,
1179           "value": "1.0",
1180         },
1181         "value": "1.0",
1182       },
1183       {
1184         "bestValue": true,
1185         "metric": {
1186           "id": "security_hotspots_reviewed",
1187           "key": "security_hotspots_reviewed",
1188           "name": "security_hotspots_reviewed",
1189           "type": "INT",
1190         },
1191         "period": undefined,
1192         "value": "1.0",
1193       },
1194       {
1195         "bestValue": true,
1196         "leak": "1",
1197         "metric": {
1198           "id": "new_security_hotspots_reviewed",
1199           "key": "new_security_hotspots_reviewed",
1200           "name": "new_security_hotspots_reviewed",
1201           "type": "INT",
1202         },
1203         "period": {
1204           "bestValue": true,
1205           "index": 1,
1206           "value": "1.0",
1207         },
1208         "value": "1.0",
1209       },
1210       {
1211         "bestValue": true,
1212         "metric": {
1213           "id": "security_review_rating",
1214           "key": "security_review_rating",
1215           "name": "security_review_rating",
1216           "type": "RATING",
1217         },
1218         "period": undefined,
1219         "value": "1.0",
1220       },
1221       {
1222         "bestValue": true,
1223         "leak": "1",
1224         "metric": {
1225           "id": "new_security_review_rating",
1226           "key": "new_security_review_rating",
1227           "name": "new_security_review_rating",
1228           "type": "RATING",
1229         },
1230         "period": {
1231           "bestValue": true,
1232           "index": 1,
1233           "value": "1.0",
1234         },
1235         "value": "1.0",
1236       },
1237       {
1238         "bestValue": true,
1239         "metric": {
1240           "id": "code_smells",
1241           "key": "code_smells",
1242           "name": "code_smells",
1243           "type": "INT",
1244         },
1245         "period": undefined,
1246         "value": "1.0",
1247       },
1248       {
1249         "bestValue": true,
1250         "leak": "1",
1251         "metric": {
1252           "id": "new_code_smells",
1253           "key": "new_code_smells",
1254           "name": "new_code_smells",
1255           "type": "INT",
1256         },
1257         "period": {
1258           "bestValue": true,
1259           "index": 1,
1260           "value": "1.0",
1261         },
1262         "value": "1.0",
1263       },
1264       {
1265         "bestValue": true,
1266         "metric": {
1267           "id": "sqale_rating",
1268           "key": "sqale_rating",
1269           "name": "sqale_rating",
1270           "type": "RATING",
1271         },
1272         "period": undefined,
1273         "value": "1.0",
1274       },
1275       {
1276         "bestValue": true,
1277         "leak": "1",
1278         "metric": {
1279           "id": "new_maintainability_rating",
1280           "key": "new_maintainability_rating",
1281           "name": "new_maintainability_rating",
1282           "type": "RATING",
1283         },
1284         "period": {
1285           "bestValue": true,
1286           "index": 1,
1287           "value": "1.0",
1288         },
1289         "value": "1.0",
1290       },
1291       {
1292         "bestValue": true,
1293         "metric": {
1294           "id": "sqale_index",
1295           "key": "sqale_index",
1296           "name": "sqale_index",
1297           "type": "INT",
1298         },
1299         "period": undefined,
1300         "value": "1.0",
1301       },
1302       {
1303         "bestValue": true,
1304         "leak": "1",
1305         "metric": {
1306           "id": "new_technical_debt",
1307           "key": "new_technical_debt",
1308           "name": "new_technical_debt",
1309           "type": "INT",
1310         },
1311         "period": {
1312           "bestValue": true,
1313           "index": 1,
1314           "value": "1.0",
1315         },
1316         "value": "1.0",
1317       },
1318       {
1319         "bestValue": true,
1320         "metric": {
1321           "id": "coverage",
1322           "key": "coverage",
1323           "name": "coverage",
1324           "type": "PERCENT",
1325         },
1326         "period": undefined,
1327         "value": "1.0",
1328       },
1329       {
1330         "bestValue": true,
1331         "leak": "1",
1332         "metric": {
1333           "id": "new_coverage",
1334           "key": "new_coverage",
1335           "name": "new_coverage",
1336           "type": "PERCENT",
1337         },
1338         "period": {
1339           "bestValue": true,
1340           "index": 1,
1341           "value": "1.0",
1342         },
1343         "value": "1.0",
1344       },
1345       {
1346         "bestValue": true,
1347         "metric": {
1348           "id": "lines_to_cover",
1349           "key": "lines_to_cover",
1350           "name": "lines_to_cover",
1351           "type": "INT",
1352         },
1353         "period": undefined,
1354         "value": "1.0",
1355       },
1356       {
1357         "bestValue": true,
1358         "leak": "1",
1359         "metric": {
1360           "id": "new_lines_to_cover",
1361           "key": "new_lines_to_cover",
1362           "name": "new_lines_to_cover",
1363           "type": "INT",
1364         },
1365         "period": {
1366           "bestValue": true,
1367           "index": 1,
1368           "value": "1.0",
1369         },
1370         "value": "1.0",
1371       },
1372       {
1373         "bestValue": true,
1374         "metric": {
1375           "id": "tests",
1376           "key": "tests",
1377           "name": "tests",
1378           "type": "INT",
1379         },
1380         "period": undefined,
1381         "value": "1.0",
1382       },
1383       {
1384         "bestValue": true,
1385         "metric": {
1386           "id": "duplicated_lines_density",
1387           "key": "duplicated_lines_density",
1388           "name": "duplicated_lines_density",
1389           "type": "INT",
1390         },
1391         "period": undefined,
1392         "value": "1.0",
1393       },
1394       {
1395         "bestValue": true,
1396         "leak": "1",
1397         "metric": {
1398           "id": "new_duplicated_lines_density",
1399           "key": "new_duplicated_lines_density",
1400           "name": "new_duplicated_lines_density",
1401           "type": "INT",
1402         },
1403         "period": {
1404           "bestValue": true,
1405           "index": 1,
1406           "value": "1.0",
1407         },
1408         "value": "1.0",
1409       },
1410       {
1411         "bestValue": true,
1412         "metric": {
1413           "id": "duplicated_blocks",
1414           "key": "duplicated_blocks",
1415           "name": "duplicated_blocks",
1416           "type": "INT",
1417         },
1418         "period": undefined,
1419         "value": "1.0",
1420       },
1421       {
1422         "bestValue": true,
1423         "metric": {
1424           "id": "ncloc",
1425           "key": "ncloc",
1426           "name": "ncloc",
1427           "type": "INT",
1428         },
1429         "period": undefined,
1430         "value": "1.0",
1431       },
1432       {
1433         "bestValue": true,
1434         "metric": {
1435           "id": "ncloc_language_distribution",
1436           "key": "ncloc_language_distribution",
1437           "name": "ncloc_language_distribution",
1438           "type": "INT",
1439         },
1440         "period": undefined,
1441         "value": "1.0",
1442       },
1443       {
1444         "bestValue": true,
1445         "metric": {
1446           "id": "projects",
1447           "key": "projects",
1448           "name": "projects",
1449           "type": "INT",
1450         },
1451         "period": undefined,
1452         "value": "1.0",
1453       },
1454       {
1455         "bestValue": true,
1456         "metric": {
1457           "id": "lines",
1458           "key": "lines",
1459           "name": "lines",
1460           "type": "INT",
1461         },
1462         "period": undefined,
1463         "value": "1.0",
1464       },
1465       {
1466         "bestValue": true,
1467         "leak": "1",
1468         "metric": {
1469           "id": "new_lines",
1470           "key": "new_lines",
1471           "name": "new_lines",
1472           "type": "INT",
1473         },
1474         "period": {
1475           "bestValue": true,
1476           "index": 1,
1477           "value": "1.0",
1478         },
1479         "value": "1.0",
1480       },
1481     ]
1482   }
1483   measuresHistory={
1484     [
1485       {
1486         "history": [
1487           {
1488             "date": "PARSED:2019-01-05",
1489             "value": "2.0",
1490           },
1491         ],
1492         "metric": "bugs",
1493       },
1494       {
1495         "history": [
1496           {
1497             "date": "PARSED:2019-01-05",
1498             "value": "0",
1499           },
1500         ],
1501         "metric": "vulnerabilities",
1502       },
1503       {
1504         "history": [
1505           {
1506             "date": "PARSED:2019-01-01",
1507             "value": "1.0",
1508           },
1509         ],
1510         "metric": "sqale_index",
1511       },
1512       {
1513         "history": [
1514           {
1515             "date": "PARSED:2019-01-02",
1516             "value": "1.0",
1517           },
1518         ],
1519         "metric": "duplicated_lines_density",
1520       },
1521       {
1522         "history": [
1523           {
1524             "date": "PARSED:2019-01-03",
1525             "value": "10000",
1526           },
1527         ],
1528         "metric": "ncloc",
1529       },
1530       {
1531         "history": [
1532           {
1533             "date": "PARSED:2019-01-04",
1534             "value": "95.5",
1535           },
1536         ],
1537         "metric": "coverage",
1538       },
1539     ]
1540   }
1541   metrics={
1542     [
1543       {
1544         "id": "alert_status",
1545         "key": "alert_status",
1546         "name": "alert_status",
1547         "type": "INT",
1548       },
1549       {
1550         "id": "quality_gate_details",
1551         "key": "quality_gate_details",
1552         "name": "quality_gate_details",
1553         "type": "INT",
1554       },
1555       {
1556         "id": "bugs",
1557         "key": "bugs",
1558         "name": "bugs",
1559         "type": "INT",
1560       },
1561       {
1562         "id": "new_bugs",
1563         "key": "new_bugs",
1564         "name": "new_bugs",
1565         "type": "INT",
1566       },
1567       {
1568         "id": "reliability_rating",
1569         "key": "reliability_rating",
1570         "name": "reliability_rating",
1571         "type": "RATING",
1572       },
1573       {
1574         "id": "new_reliability_rating",
1575         "key": "new_reliability_rating",
1576         "name": "new_reliability_rating",
1577         "type": "RATING",
1578       },
1579       {
1580         "id": "vulnerabilities",
1581         "key": "vulnerabilities",
1582         "name": "vulnerabilities",
1583         "type": "INT",
1584       },
1585       {
1586         "id": "new_vulnerabilities",
1587         "key": "new_vulnerabilities",
1588         "name": "new_vulnerabilities",
1589         "type": "INT",
1590       },
1591       {
1592         "id": "security_rating",
1593         "key": "security_rating",
1594         "name": "security_rating",
1595         "type": "RATING",
1596       },
1597       {
1598         "id": "new_security_rating",
1599         "key": "new_security_rating",
1600         "name": "new_security_rating",
1601         "type": "RATING",
1602       },
1603       {
1604         "id": "security_hotspots",
1605         "key": "security_hotspots",
1606         "name": "security_hotspots",
1607         "type": "INT",
1608       },
1609       {
1610         "id": "new_security_hotspots",
1611         "key": "new_security_hotspots",
1612         "name": "new_security_hotspots",
1613         "type": "INT",
1614       },
1615       {
1616         "id": "security_hotspots_reviewed",
1617         "key": "security_hotspots_reviewed",
1618         "name": "security_hotspots_reviewed",
1619         "type": "INT",
1620       },
1621       {
1622         "id": "new_security_hotspots_reviewed",
1623         "key": "new_security_hotspots_reviewed",
1624         "name": "new_security_hotspots_reviewed",
1625         "type": "INT",
1626       },
1627       {
1628         "id": "security_review_rating",
1629         "key": "security_review_rating",
1630         "name": "security_review_rating",
1631         "type": "RATING",
1632       },
1633       {
1634         "id": "new_security_review_rating",
1635         "key": "new_security_review_rating",
1636         "name": "new_security_review_rating",
1637         "type": "RATING",
1638       },
1639       {
1640         "id": "code_smells",
1641         "key": "code_smells",
1642         "name": "code_smells",
1643         "type": "INT",
1644       },
1645       {
1646         "id": "new_code_smells",
1647         "key": "new_code_smells",
1648         "name": "new_code_smells",
1649         "type": "INT",
1650       },
1651       {
1652         "id": "sqale_rating",
1653         "key": "sqale_rating",
1654         "name": "sqale_rating",
1655         "type": "RATING",
1656       },
1657       {
1658         "id": "new_maintainability_rating",
1659         "key": "new_maintainability_rating",
1660         "name": "new_maintainability_rating",
1661         "type": "RATING",
1662       },
1663       {
1664         "id": "sqale_index",
1665         "key": "sqale_index",
1666         "name": "sqale_index",
1667         "type": "INT",
1668       },
1669       {
1670         "id": "new_technical_debt",
1671         "key": "new_technical_debt",
1672         "name": "new_technical_debt",
1673         "type": "INT",
1674       },
1675       {
1676         "id": "coverage",
1677         "key": "coverage",
1678         "name": "coverage",
1679         "type": "PERCENT",
1680       },
1681       {
1682         "id": "new_coverage",
1683         "key": "new_coverage",
1684         "name": "new_coverage",
1685         "type": "PERCENT",
1686       },
1687       {
1688         "id": "lines_to_cover",
1689         "key": "lines_to_cover",
1690         "name": "lines_to_cover",
1691         "type": "INT",
1692       },
1693       {
1694         "id": "new_lines_to_cover",
1695         "key": "new_lines_to_cover",
1696         "name": "new_lines_to_cover",
1697         "type": "INT",
1698       },
1699       {
1700         "id": "tests",
1701         "key": "tests",
1702         "name": "tests",
1703         "type": "INT",
1704       },
1705       {
1706         "id": "duplicated_lines_density",
1707         "key": "duplicated_lines_density",
1708         "name": "duplicated_lines_density",
1709         "type": "INT",
1710       },
1711       {
1712         "id": "new_duplicated_lines_density",
1713         "key": "new_duplicated_lines_density",
1714         "name": "new_duplicated_lines_density",
1715         "type": "INT",
1716       },
1717       {
1718         "id": "duplicated_blocks",
1719         "key": "duplicated_blocks",
1720         "name": "duplicated_blocks",
1721         "type": "INT",
1722       },
1723       {
1724         "id": "ncloc",
1725         "key": "ncloc",
1726         "name": "ncloc",
1727         "type": "INT",
1728       },
1729       {
1730         "id": "ncloc_language_distribution",
1731         "key": "ncloc_language_distribution",
1732         "name": "ncloc_language_distribution",
1733         "type": "INT",
1734       },
1735       {
1736         "id": "projects",
1737         "key": "projects",
1738         "name": "projects",
1739         "type": "INT",
1740       },
1741       {
1742         "id": "lines",
1743         "key": "lines",
1744         "name": "lines",
1745         "type": "INT",
1746       },
1747       {
1748         "id": "new_lines",
1749         "key": "new_lines",
1750         "name": "new_lines",
1751         "type": "INT",
1752       },
1753     ]
1754   }
1755   onGraphChange={[Function]}
1756   projectIsEmpty={false}
1757   qgStatuses={
1758     [
1759       {
1760         "branchLike": undefined,
1761         "failedConditions": [
1762           {
1763             "actual": "10",
1764             "error": "1.0",
1765             "level": "ERROR",
1766             "measure": {
1767               "bestValue": true,
1768               "metric": {
1769                 "id": "coverage",
1770                 "key": "coverage",
1771                 "name": "coverage",
1772                 "type": "PERCENT",
1773               },
1774               "period": undefined,
1775               "value": "1.0",
1776             },
1777             "metric": "coverage",
1778             "op": "GT",
1779             "period": undefined,
1780           },
1781           {
1782             "actual": "5",
1783             "error": "1.0",
1784             "level": "ERROR",
1785             "measure": {
1786               "bestValue": true,
1787               "leak": "1",
1788               "metric": {
1789                 "id": "new_bugs",
1790                 "key": "new_bugs",
1791                 "name": "new_bugs",
1792                 "type": "INT",
1793               },
1794               "period": {
1795                 "bestValue": true,
1796                 "index": 1,
1797                 "value": "1.0",
1798               },
1799               "value": "1.0",
1800             },
1801             "metric": "new_bugs",
1802             "op": "GT",
1803             "period": 1,
1804           },
1805         ],
1806         "key": "foo",
1807         "name": "Foo",
1808         "status": "ERROR",
1809       },
1810       {
1811         "branchLike": undefined,
1812         "failedConditions": [
1813           {
1814             "actual": "15",
1815             "error": "5.0",
1816             "level": "ERROR",
1817             "measure": {
1818               "bestValue": true,
1819               "leak": "1",
1820               "metric": {
1821                 "id": "new_bugs",
1822                 "key": "new_bugs",
1823                 "name": "new_bugs",
1824                 "type": "INT",
1825               },
1826               "period": {
1827                 "bestValue": true,
1828                 "index": 1,
1829                 "value": "1.0",
1830               },
1831               "value": "1.0",
1832             },
1833             "metric": "new_bugs",
1834             "op": "GT",
1835             "period": 1,
1836           },
1837         ],
1838         "key": "bar",
1839         "name": "Bar",
1840         "status": "ERROR",
1841       },
1842     ]
1843   }
1844 />
1845 `;
1846
1847 exports[`project overview should render correctly 1`] = `
1848 <Memo(BranchOverviewRenderer)
1849   analyses={
1850     [
1851       {
1852         "date": "2017-03-01T09:36:01+0100",
1853         "detectedCI": "Cirrus CI",
1854         "events": [],
1855         "key": "foo",
1856         "projectVersion": "1.0",
1857       },
1858       {
1859         "date": "2017-03-01T09:36:01+0100",
1860         "events": [],
1861         "key": "foo",
1862         "projectVersion": "1.0",
1863       },
1864       {
1865         "date": "2017-03-01T09:36:01+0100",
1866         "events": [],
1867         "key": "foo",
1868         "projectVersion": "1.0",
1869       },
1870       {
1871         "date": "2017-03-01T09:36:01+0100",
1872         "events": [],
1873         "key": "foo",
1874         "projectVersion": "1.0",
1875       },
1876       {
1877         "date": "2017-03-01T09:36:01+0100",
1878         "events": [],
1879         "key": "foo",
1880         "projectVersion": "1.0",
1881       },
1882     ]
1883   }
1884   branch={
1885     {
1886       "analysisDate": "2018-01-01",
1887       "excludedFromPurge": true,
1888       "isMain": true,
1889       "name": "master",
1890     }
1891   }
1892   component={
1893     {
1894       "breadcrumbs": [
1895         {
1896           "breadcrumbs": [],
1897           "key": "foo",
1898           "name": "MyProject",
1899           "qualifier": "TRK",
1900           "qualityGate": {
1901             "isDefault": true,
1902             "key": "30",
1903             "name": "Sonar way",
1904           },
1905           "qualityProfiles": [
1906             {
1907               "deleted": false,
1908               "key": "my-qp",
1909               "language": "ts",
1910               "name": "Sonar way",
1911             },
1912           ],
1913           "tags": [],
1914         },
1915       ],
1916       "key": "foo",
1917       "name": "Foo",
1918       "qualifier": "TRK",
1919       "qualityGate": {
1920         "isDefault": true,
1921         "key": "30",
1922         "name": "Sonar way",
1923       },
1924       "qualityProfiles": [
1925         {
1926           "deleted": false,
1927           "key": "my-qp",
1928           "language": "ts",
1929           "name": "Sonar way",
1930         },
1931       ],
1932       "tags": [],
1933     }
1934   }
1935   detectedCIOnLastAnalysis={true}
1936   graph="coverage"
1937   loadingHistory={false}
1938   loadingStatus={false}
1939   measures={
1940     [
1941       {
1942         "bestValue": true,
1943         "metric": {
1944           "id": "alert_status",
1945           "key": "alert_status",
1946           "name": "alert_status",
1947           "type": "INT",
1948         },
1949         "period": undefined,
1950         "value": "1.0",
1951       },
1952       {
1953         "bestValue": true,
1954         "metric": {
1955           "id": "quality_gate_details",
1956           "key": "quality_gate_details",
1957           "name": "quality_gate_details",
1958           "type": "INT",
1959         },
1960         "period": undefined,
1961         "value": "1.0",
1962       },
1963       {
1964         "bestValue": true,
1965         "metric": {
1966           "id": "bugs",
1967           "key": "bugs",
1968           "name": "bugs",
1969           "type": "INT",
1970         },
1971         "period": undefined,
1972         "value": "1.0",
1973       },
1974       {
1975         "bestValue": true,
1976         "leak": "1",
1977         "metric": {
1978           "id": "new_bugs",
1979           "key": "new_bugs",
1980           "name": "new_bugs",
1981           "type": "INT",
1982         },
1983         "period": {
1984           "bestValue": true,
1985           "index": 1,
1986           "value": "1.0",
1987         },
1988         "value": "1.0",
1989       },
1990       {
1991         "bestValue": true,
1992         "metric": {
1993           "id": "reliability_rating",
1994           "key": "reliability_rating",
1995           "name": "reliability_rating",
1996           "type": "RATING",
1997         },
1998         "period": undefined,
1999         "value": "1.0",
2000       },
2001       {
2002         "bestValue": true,
2003         "leak": "1",
2004         "metric": {
2005           "id": "new_reliability_rating",
2006           "key": "new_reliability_rating",
2007           "name": "new_reliability_rating",
2008           "type": "RATING",
2009         },
2010         "period": {
2011           "bestValue": true,
2012           "index": 1,
2013           "value": "1.0",
2014         },
2015         "value": "1.0",
2016       },
2017       {
2018         "bestValue": true,
2019         "metric": {
2020           "id": "vulnerabilities",
2021           "key": "vulnerabilities",
2022           "name": "vulnerabilities",
2023           "type": "INT",
2024         },
2025         "period": undefined,
2026         "value": "1.0",
2027       },
2028       {
2029         "bestValue": true,
2030         "leak": "1",
2031         "metric": {
2032           "id": "new_vulnerabilities",
2033           "key": "new_vulnerabilities",
2034           "name": "new_vulnerabilities",
2035           "type": "INT",
2036         },
2037         "period": {
2038           "bestValue": true,
2039           "index": 1,
2040           "value": "1.0",
2041         },
2042         "value": "1.0",
2043       },
2044       {
2045         "bestValue": true,
2046         "metric": {
2047           "id": "security_rating",
2048           "key": "security_rating",
2049           "name": "security_rating",
2050           "type": "RATING",
2051         },
2052         "period": undefined,
2053         "value": "1.0",
2054       },
2055       {
2056         "bestValue": true,
2057         "leak": "1",
2058         "metric": {
2059           "id": "new_security_rating",
2060           "key": "new_security_rating",
2061           "name": "new_security_rating",
2062           "type": "RATING",
2063         },
2064         "period": {
2065           "bestValue": true,
2066           "index": 1,
2067           "value": "1.0",
2068         },
2069         "value": "1.0",
2070       },
2071       {
2072         "bestValue": true,
2073         "metric": {
2074           "id": "security_hotspots",
2075           "key": "security_hotspots",
2076           "name": "security_hotspots",
2077           "type": "INT",
2078         },
2079         "period": undefined,
2080         "value": "1.0",
2081       },
2082       {
2083         "bestValue": true,
2084         "leak": "1",
2085         "metric": {
2086           "id": "new_security_hotspots",
2087           "key": "new_security_hotspots",
2088           "name": "new_security_hotspots",
2089           "type": "INT",
2090         },
2091         "period": {
2092           "bestValue": true,
2093           "index": 1,
2094           "value": "1.0",
2095         },
2096         "value": "1.0",
2097       },
2098       {
2099         "bestValue": true,
2100         "metric": {
2101           "id": "security_hotspots_reviewed",
2102           "key": "security_hotspots_reviewed",
2103           "name": "security_hotspots_reviewed",
2104           "type": "INT",
2105         },
2106         "period": undefined,
2107         "value": "1.0",
2108       },
2109       {
2110         "bestValue": true,
2111         "leak": "1",
2112         "metric": {
2113           "id": "new_security_hotspots_reviewed",
2114           "key": "new_security_hotspots_reviewed",
2115           "name": "new_security_hotspots_reviewed",
2116           "type": "INT",
2117         },
2118         "period": {
2119           "bestValue": true,
2120           "index": 1,
2121           "value": "1.0",
2122         },
2123         "value": "1.0",
2124       },
2125       {
2126         "bestValue": true,
2127         "metric": {
2128           "id": "security_review_rating",
2129           "key": "security_review_rating",
2130           "name": "security_review_rating",
2131           "type": "RATING",
2132         },
2133         "period": undefined,
2134         "value": "1.0",
2135       },
2136       {
2137         "bestValue": true,
2138         "leak": "1",
2139         "metric": {
2140           "id": "new_security_review_rating",
2141           "key": "new_security_review_rating",
2142           "name": "new_security_review_rating",
2143           "type": "RATING",
2144         },
2145         "period": {
2146           "bestValue": true,
2147           "index": 1,
2148           "value": "1.0",
2149         },
2150         "value": "1.0",
2151       },
2152       {
2153         "bestValue": true,
2154         "metric": {
2155           "id": "code_smells",
2156           "key": "code_smells",
2157           "name": "code_smells",
2158           "type": "INT",
2159         },
2160         "period": undefined,
2161         "value": "1.0",
2162       },
2163       {
2164         "bestValue": true,
2165         "leak": "1",
2166         "metric": {
2167           "id": "new_code_smells",
2168           "key": "new_code_smells",
2169           "name": "new_code_smells",
2170           "type": "INT",
2171         },
2172         "period": {
2173           "bestValue": true,
2174           "index": 1,
2175           "value": "1.0",
2176         },
2177         "value": "1.0",
2178       },
2179       {
2180         "bestValue": true,
2181         "metric": {
2182           "id": "sqale_rating",
2183           "key": "sqale_rating",
2184           "name": "sqale_rating",
2185           "type": "RATING",
2186         },
2187         "period": undefined,
2188         "value": "1.0",
2189       },
2190       {
2191         "bestValue": true,
2192         "leak": "1",
2193         "metric": {
2194           "id": "new_maintainability_rating",
2195           "key": "new_maintainability_rating",
2196           "name": "new_maintainability_rating",
2197           "type": "RATING",
2198         },
2199         "period": {
2200           "bestValue": true,
2201           "index": 1,
2202           "value": "1.0",
2203         },
2204         "value": "1.0",
2205       },
2206       {
2207         "bestValue": true,
2208         "metric": {
2209           "id": "sqale_index",
2210           "key": "sqale_index",
2211           "name": "sqale_index",
2212           "type": "INT",
2213         },
2214         "period": undefined,
2215         "value": "1.0",
2216       },
2217       {
2218         "bestValue": true,
2219         "leak": "1",
2220         "metric": {
2221           "id": "new_technical_debt",
2222           "key": "new_technical_debt",
2223           "name": "new_technical_debt",
2224           "type": "INT",
2225         },
2226         "period": {
2227           "bestValue": true,
2228           "index": 1,
2229           "value": "1.0",
2230         },
2231         "value": "1.0",
2232       },
2233       {
2234         "bestValue": true,
2235         "metric": {
2236           "id": "coverage",
2237           "key": "coverage",
2238           "name": "coverage",
2239           "type": "PERCENT",
2240         },
2241         "period": undefined,
2242         "value": "1.0",
2243       },
2244       {
2245         "bestValue": true,
2246         "leak": "1",
2247         "metric": {
2248           "id": "new_coverage",
2249           "key": "new_coverage",
2250           "name": "new_coverage",
2251           "type": "PERCENT",
2252         },
2253         "period": {
2254           "bestValue": true,
2255           "index": 1,
2256           "value": "1.0",
2257         },
2258         "value": "1.0",
2259       },
2260       {
2261         "bestValue": true,
2262         "metric": {
2263           "id": "lines_to_cover",
2264           "key": "lines_to_cover",
2265           "name": "lines_to_cover",
2266           "type": "INT",
2267         },
2268         "period": undefined,
2269         "value": "1.0",
2270       },
2271       {
2272         "bestValue": true,
2273         "leak": "1",
2274         "metric": {
2275           "id": "new_lines_to_cover",
2276           "key": "new_lines_to_cover",
2277           "name": "new_lines_to_cover",
2278           "type": "INT",
2279         },
2280         "period": {
2281           "bestValue": true,
2282           "index": 1,
2283           "value": "1.0",
2284         },
2285         "value": "1.0",
2286       },
2287       {
2288         "bestValue": true,
2289         "metric": {
2290           "id": "tests",
2291           "key": "tests",
2292           "name": "tests",
2293           "type": "INT",
2294         },
2295         "period": undefined,
2296         "value": "1.0",
2297       },
2298       {
2299         "bestValue": true,
2300         "metric": {
2301           "id": "duplicated_lines_density",
2302           "key": "duplicated_lines_density",
2303           "name": "duplicated_lines_density",
2304           "type": "INT",
2305         },
2306         "period": undefined,
2307         "value": "1.0",
2308       },
2309       {
2310         "bestValue": true,
2311         "leak": "1",
2312         "metric": {
2313           "id": "new_duplicated_lines_density",
2314           "key": "new_duplicated_lines_density",
2315           "name": "new_duplicated_lines_density",
2316           "type": "INT",
2317         },
2318         "period": {
2319           "bestValue": true,
2320           "index": 1,
2321           "value": "1.0",
2322         },
2323         "value": "1.0",
2324       },
2325       {
2326         "bestValue": true,
2327         "metric": {
2328           "id": "duplicated_blocks",
2329           "key": "duplicated_blocks",
2330           "name": "duplicated_blocks",
2331           "type": "INT",
2332         },
2333         "period": undefined,
2334         "value": "1.0",
2335       },
2336       {
2337         "bestValue": true,
2338         "metric": {
2339           "id": "ncloc",
2340           "key": "ncloc",
2341           "name": "ncloc",
2342           "type": "INT",
2343         },
2344         "period": undefined,
2345         "value": "1.0",
2346       },
2347       {
2348         "bestValue": true,
2349         "metric": {
2350           "id": "ncloc_language_distribution",
2351           "key": "ncloc_language_distribution",
2352           "name": "ncloc_language_distribution",
2353           "type": "INT",
2354         },
2355         "period": undefined,
2356         "value": "1.0",
2357       },
2358       {
2359         "bestValue": true,
2360         "metric": {
2361           "id": "projects",
2362           "key": "projects",
2363           "name": "projects",
2364           "type": "INT",
2365         },
2366         "period": undefined,
2367         "value": "1.0",
2368       },
2369       {
2370         "bestValue": true,
2371         "metric": {
2372           "id": "lines",
2373           "key": "lines",
2374           "name": "lines",
2375           "type": "INT",
2376         },
2377         "period": undefined,
2378         "value": "1.0",
2379       },
2380       {
2381         "bestValue": true,
2382         "leak": "1",
2383         "metric": {
2384           "id": "new_lines",
2385           "key": "new_lines",
2386           "name": "new_lines",
2387           "type": "INT",
2388         },
2389         "period": {
2390           "bestValue": true,
2391           "index": 1,
2392           "value": "1.0",
2393         },
2394         "value": "1.0",
2395       },
2396     ]
2397   }
2398   measuresHistory={
2399     [
2400       {
2401         "history": [
2402           {
2403             "date": "PARSED:2019-01-05",
2404             "value": "2.0",
2405           },
2406         ],
2407         "metric": "bugs",
2408       },
2409       {
2410         "history": [
2411           {
2412             "date": "PARSED:2019-01-05",
2413             "value": "0",
2414           },
2415         ],
2416         "metric": "vulnerabilities",
2417       },
2418       {
2419         "history": [
2420           {
2421             "date": "PARSED:2019-01-01",
2422             "value": "1.0",
2423           },
2424         ],
2425         "metric": "sqale_index",
2426       },
2427       {
2428         "history": [
2429           {
2430             "date": "PARSED:2019-01-02",
2431             "value": "1.0",
2432           },
2433         ],
2434         "metric": "duplicated_lines_density",
2435       },
2436       {
2437         "history": [
2438           {
2439             "date": "PARSED:2019-01-03",
2440             "value": "10000",
2441           },
2442         ],
2443         "metric": "ncloc",
2444       },
2445       {
2446         "history": [
2447           {
2448             "date": "PARSED:2019-01-04",
2449             "value": "95.5",
2450           },
2451         ],
2452         "metric": "coverage",
2453       },
2454     ]
2455   }
2456   metrics={
2457     [
2458       {
2459         "id": "alert_status",
2460         "key": "alert_status",
2461         "name": "alert_status",
2462         "type": "INT",
2463       },
2464       {
2465         "id": "quality_gate_details",
2466         "key": "quality_gate_details",
2467         "name": "quality_gate_details",
2468         "type": "INT",
2469       },
2470       {
2471         "id": "bugs",
2472         "key": "bugs",
2473         "name": "bugs",
2474         "type": "INT",
2475       },
2476       {
2477         "id": "new_bugs",
2478         "key": "new_bugs",
2479         "name": "new_bugs",
2480         "type": "INT",
2481       },
2482       {
2483         "id": "reliability_rating",
2484         "key": "reliability_rating",
2485         "name": "reliability_rating",
2486         "type": "RATING",
2487       },
2488       {
2489         "id": "new_reliability_rating",
2490         "key": "new_reliability_rating",
2491         "name": "new_reliability_rating",
2492         "type": "RATING",
2493       },
2494       {
2495         "id": "vulnerabilities",
2496         "key": "vulnerabilities",
2497         "name": "vulnerabilities",
2498         "type": "INT",
2499       },
2500       {
2501         "id": "new_vulnerabilities",
2502         "key": "new_vulnerabilities",
2503         "name": "new_vulnerabilities",
2504         "type": "INT",
2505       },
2506       {
2507         "id": "security_rating",
2508         "key": "security_rating",
2509         "name": "security_rating",
2510         "type": "RATING",
2511       },
2512       {
2513         "id": "new_security_rating",
2514         "key": "new_security_rating",
2515         "name": "new_security_rating",
2516         "type": "RATING",
2517       },
2518       {
2519         "id": "security_hotspots",
2520         "key": "security_hotspots",
2521         "name": "security_hotspots",
2522         "type": "INT",
2523       },
2524       {
2525         "id": "new_security_hotspots",
2526         "key": "new_security_hotspots",
2527         "name": "new_security_hotspots",
2528         "type": "INT",
2529       },
2530       {
2531         "id": "security_hotspots_reviewed",
2532         "key": "security_hotspots_reviewed",
2533         "name": "security_hotspots_reviewed",
2534         "type": "INT",
2535       },
2536       {
2537         "id": "new_security_hotspots_reviewed",
2538         "key": "new_security_hotspots_reviewed",
2539         "name": "new_security_hotspots_reviewed",
2540         "type": "INT",
2541       },
2542       {
2543         "id": "security_review_rating",
2544         "key": "security_review_rating",
2545         "name": "security_review_rating",
2546         "type": "RATING",
2547       },
2548       {
2549         "id": "new_security_review_rating",
2550         "key": "new_security_review_rating",
2551         "name": "new_security_review_rating",
2552         "type": "RATING",
2553       },
2554       {
2555         "id": "code_smells",
2556         "key": "code_smells",
2557         "name": "code_smells",
2558         "type": "INT",
2559       },
2560       {
2561         "id": "new_code_smells",
2562         "key": "new_code_smells",
2563         "name": "new_code_smells",
2564         "type": "INT",
2565       },
2566       {
2567         "id": "sqale_rating",
2568         "key": "sqale_rating",
2569         "name": "sqale_rating",
2570         "type": "RATING",
2571       },
2572       {
2573         "id": "new_maintainability_rating",
2574         "key": "new_maintainability_rating",
2575         "name": "new_maintainability_rating",
2576         "type": "RATING",
2577       },
2578       {
2579         "id": "sqale_index",
2580         "key": "sqale_index",
2581         "name": "sqale_index",
2582         "type": "INT",
2583       },
2584       {
2585         "id": "new_technical_debt",
2586         "key": "new_technical_debt",
2587         "name": "new_technical_debt",
2588         "type": "INT",
2589       },
2590       {
2591         "id": "coverage",
2592         "key": "coverage",
2593         "name": "coverage",
2594         "type": "PERCENT",
2595       },
2596       {
2597         "id": "new_coverage",
2598         "key": "new_coverage",
2599         "name": "new_coverage",
2600         "type": "PERCENT",
2601       },
2602       {
2603         "id": "lines_to_cover",
2604         "key": "lines_to_cover",
2605         "name": "lines_to_cover",
2606         "type": "INT",
2607       },
2608       {
2609         "id": "new_lines_to_cover",
2610         "key": "new_lines_to_cover",
2611         "name": "new_lines_to_cover",
2612         "type": "INT",
2613       },
2614       {
2615         "id": "tests",
2616         "key": "tests",
2617         "name": "tests",
2618         "type": "INT",
2619       },
2620       {
2621         "id": "duplicated_lines_density",
2622         "key": "duplicated_lines_density",
2623         "name": "duplicated_lines_density",
2624         "type": "INT",
2625       },
2626       {
2627         "id": "new_duplicated_lines_density",
2628         "key": "new_duplicated_lines_density",
2629         "name": "new_duplicated_lines_density",
2630         "type": "INT",
2631       },
2632       {
2633         "id": "duplicated_blocks",
2634         "key": "duplicated_blocks",
2635         "name": "duplicated_blocks",
2636         "type": "INT",
2637       },
2638       {
2639         "id": "ncloc",
2640         "key": "ncloc",
2641         "name": "ncloc",
2642         "type": "INT",
2643       },
2644       {
2645         "id": "ncloc_language_distribution",
2646         "key": "ncloc_language_distribution",
2647         "name": "ncloc_language_distribution",
2648         "type": "INT",
2649       },
2650       {
2651         "id": "projects",
2652         "key": "projects",
2653         "name": "projects",
2654         "type": "INT",
2655       },
2656       {
2657         "id": "lines",
2658         "key": "lines",
2659         "name": "lines",
2660         "type": "INT",
2661       },
2662       {
2663         "id": "new_lines",
2664         "key": "new_lines",
2665         "name": "new_lines",
2666         "type": "INT",
2667       },
2668     ]
2669   }
2670   onGraphChange={[Function]}
2671   projectIsEmpty={false}
2672   qgStatuses={
2673     [
2674       {
2675         "branchLike": {
2676           "analysisDate": "2018-01-01",
2677           "excludedFromPurge": true,
2678           "isMain": true,
2679           "name": "master",
2680         },
2681         "failedConditions": [
2682           {
2683             "actual": "2",
2684             "error": "1.0",
2685             "level": "ERROR",
2686             "measure": {
2687               "bestValue": true,
2688               "leak": "1",
2689               "metric": {
2690                 "id": "new_bugs",
2691                 "key": "new_bugs",
2692                 "name": "new_bugs",
2693                 "type": "INT",
2694               },
2695               "period": {
2696                 "bestValue": true,
2697                 "index": 1,
2698                 "value": "1.0",
2699               },
2700               "value": "1.0",
2701             },
2702             "metric": "new_bugs",
2703             "op": "GT",
2704             "period": 1,
2705           },
2706           {
2707             "actual": "5",
2708             "error": "2.0",
2709             "level": "ERROR",
2710             "measure": {
2711               "bestValue": true,
2712               "metric": {
2713                 "id": "bugs",
2714                 "key": "bugs",
2715                 "name": "bugs",
2716                 "type": "INT",
2717               },
2718               "period": undefined,
2719               "value": "1.0",
2720             },
2721             "metric": "bugs",
2722             "op": "GT",
2723             "period": 0,
2724           },
2725         ],
2726         "ignoredConditions": false,
2727         "key": "foo",
2728         "name": "Foo",
2729         "status": "ERROR",
2730       },
2731     ]
2732   }
2733 />
2734 `;