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

Commit 895367c

Browse files
committed
updated reliability links
1 parent 84e89f8 commit 895367c

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

app/index.jade

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ html
154154
script(src='../bower_components/react/react.js')
155155
script(src='../bower_components/react/react-dom.js')
156156
script(src='../bower_components/classnames/index.js')
157+
script(src='../bower_components/classnames/bind.js')
158+
script(src='../bower_components/classnames/dedupe.js')
157159
script(src='../bower_components/react-input-autosize/dist/react-input-autosize.min.js')
158160
script(src='../bower_components/react-select/dist/react-select.min.js')
159161
script(src='../bower_components/ngReact/ngReact.js')

app/profile/subtrack/subtrack.controller.js

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,46 @@
2424
vm.showNav = showNav;
2525
vm.back = back;
2626
vm.subTrackStats = [];
27+
vm.reliabilityMapping = {
28+
'DESIGN': 1,
29+
'DEVELOPMENT': 1,
30+
'SECURITY': 1,
31+
'TESTING_COMPETITION': 1,
32+
'SPECIFICATION': 2,
33+
'ARCHITECTURE': 2,
34+
'COMPONENT_PRODUCTION': 2,
35+
'BUG_HUNT': 2,
36+
'DEPLOYMENT': 2,
37+
'SECURITY': 2,
38+
'PROCESS': 2,
39+
'TEST_SUITES': 2,
40+
'ASSEMBLY_COMPETITION': 2,
41+
'LEGACY': 2,
42+
'BANNERS_OR_ICONS': 3,
43+
'WEB_DESIGN': 3,
44+
'WIREFRAMES': 3,
45+
'UI_PROTOTYPE_COMPETITION': 2,
46+
'LOGO_DESIGN': 3,
47+
'PRINT_OR_PRESENTATION': 3,
48+
'CONCEPTUALIZATION': 2,
49+
'RIA_BUILD_COMPETITION': 2,
50+
'RIA_COMPONENT_COMPETITION': 2,
51+
'TEST_SCENARIOS': 2,
52+
'SPEC_REVIEW': 2,
53+
'GENERIC_SCORECARDS': 4,
54+
'COPILOT_POSTING': 2,
55+
'CONTENT_CREATION': 2,
56+
'WIDGET_OR_MOBILE_SCREEN_DESIGN': 3,
57+
'FRONT_END_FLASH': 3,
58+
'APPLICATION_FRONT_END_DESIGN': 3,
59+
'STUDIO_OTHER': 3,
60+
'IDEA_GENERATION': 3,
61+
'REPORTING': 2,
62+
'MARATHON_MATCH': 2,
63+
'FIRST_2_FINISH': 2,
64+
'CODE': 2,
65+
'DESIGN_FIRST_2_FINISH': 3
66+
};
2767

2868
vm.pageName = vm.subTrack.toLowerCase().replace(/_/g, ' ');
2969

@@ -76,9 +116,11 @@
76116
vm.subTrackStats = UserStatsService.getIterableStats(vm.track, vm.subTrack, data);
77117
if (vm.track === 'DEVELOP') {
78118
var reliability = vm.subTrackStats.filter(function(stat) { return stat.label === 'reliability'; });
119+
console.log('yo')
120+
console.log(reliability)
79121
if (reliability.length > 0) {
80122
reliability = reliability[0];
81-
reliability.link = 'http://community.' + vm.domain + '/tc?module=ReliabilityDetail&pt=2&cr=' + profileVm.profile.userId;
123+
reliability.link = 'http://community.' + vm.domain + '/tc?module=ReliabilityDetail&pt=' + (vm.reliabilityMapping[vm.subTrack] || 2) + '&cr=' + profileVm.profile.userId;
82124
}
83125
var mustHaveMetrics = ["rank", "rating", "reliability"];
84126
// check if rating, rank & reliability are all set

0 commit comments

Comments
 (0)