Skip to content

Commit b524069

Browse files
Merge pull request #156 from simranb86/challenge_30121747
Challenge 30121747
2 parents fa64369 + 9f16940 commit b524069

34 files changed

+7883
-5369
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
at: .
3030
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
3131
- run: npm publish
32-
32+
# dont change anything
3333
workflows:
3434
version: 2
3535
build:

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The [Topcoder](https://www.topcoder.com) lib for internal ReactJS projects.
1010

1111
Change the property in `AV_SCAN_SCORER_REVIEW_TYPE_ID` in config.
1212

13+
### Configuration for AV-Scan scorer review type ID
14+
15+
Change the property in `PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID` in config.
16+
1317
### Development
1418
```shell
1519
# Install dependencies
@@ -19,7 +23,7 @@ npm install
1923
npm test
2024
npm run build
2125

22-
# Go to other project which depends on the topcoder-react-lib, config its package.json so
26+
# Go to other project which depends on the topcoder-react-lib, config its package.json so
2327
# that the 'topcoder-react-lib' points to the local foler path of topcoder-react-lib:
2428
#
2529
# "dependencies": {

__tests__/__snapshots__/index.js.snap

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,22 @@ Object {
6262
"getAllCountriesInit": [Function],
6363
"getCountriesDone": [Function],
6464
"getCountriesInit": [Function],
65+
"getReviewTypesDone": [Function],
66+
"getReviewTypesInit": [Function],
6567
"getSkillTagsDone": [Function],
6668
"getSkillTagsInit": [Function],
6769
},
70+
"memberSearch": Object {
71+
"checkIfSearchTermIsATag": [Function],
72+
"clearMemberSearch": [Function],
73+
"loadMoreUsernames": [Function],
74+
"memberSearchSuccess": [Function],
75+
"resetSearchTerm": [Function],
76+
"setSearchTag": [Function],
77+
"setSearchTerm": [Function],
78+
"topMemberSearchSuccess": [Function],
79+
"usernameSearchSuccess": [Function],
80+
},
6881
"memberTasks": Object {
6982
"dropAll": [Function],
7083
"getDone": [Function],
@@ -93,6 +106,18 @@ Object {
93106
"getUserSrmDone": [Function],
94107
"getUserSrmInit": [Function],
95108
},
109+
"notifications": Object {
110+
"dismissChallengeNotificationsDone": [Function],
111+
"dismissChallengeNotificationsInit": [Function],
112+
"getNotificationsDone": [Function],
113+
"getNotificationsInit": [Function],
114+
"markAllNotificationAsReadDone": [Function],
115+
"markAllNotificationAsReadInit": [Function],
116+
"markAllNotificationAsSeenDone": [Function],
117+
"markAllNotificationAsSeenInit": [Function],
118+
"markNotificationAsReadDone": [Function],
119+
"markNotificationAsReadInit": [Function],
120+
},
96121
"profile": Object {
97122
"addSkillDone": [Function],
98123
"addSkillInit": [Function],
@@ -238,9 +263,11 @@ Object {
238263
"groups": [Function],
239264
"looker": [Function],
240265
"lookup": [Function],
266+
"memberSearch": [Function],
241267
"memberTasks": [Function],
242268
"members": [Function],
243269
"mySubmissionsManagement": [Function],
270+
"notifications": [Function],
244271
"profile": [Function],
245272
"reviewOpportunity": [Function],
246273
"settings": [Function],
@@ -290,10 +317,18 @@ Object {
290317
"default": undefined,
291318
"getService": [Function],
292319
},
320+
"memberSearch": Object {
321+
"default": undefined,
322+
"getService": [Function],
323+
},
293324
"members": Object {
294325
"default": undefined,
295326
"getService": [Function],
296327
},
328+
"notifications": Object {
329+
"default": undefined,
330+
"getService": [Function],
331+
},
297332
"reviewOpportunities": Object {
298333
"default": undefined,
299334
"getReviewOpportunitiesService": [Function],

__tests__/actions/__snapshots__/lookup.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Object {
77
"getAllCountriesInit": [Function],
88
"getCountriesDone": [Function],
99
"getCountriesInit": [Function],
10+
"getReviewTypesDone": [Function],
11+
"getReviewTypesInit": [Function],
1012
"getSkillTagsDone": [Function],
1113
"getSkillTagsInit": [Function],
1214
},

__tests__/reducers/__snapshots__/lookup.js.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Object {
1111
],
1212
"loadingCountriesError": false,
1313
"loadingSkillTagsError": true,
14+
"reviewTypes": Array [],
1415
"skillTags": Array [
1516
Object {
1617
"domain": "SKILLS",
@@ -33,6 +34,7 @@ Object {
3334
],
3435
"loadingCountriesError": true,
3536
"loadingSkillTagsError": true,
37+
"reviewTypes": Array [],
3638
"skillTags": Array [
3739
Object {
3840
"domain": "SKILLS",
@@ -49,6 +51,7 @@ Object {
4951
"allCountries": Array [],
5052
"countries": Array [],
5153
"loadingSkillTagsError": false,
54+
"reviewTypes": Array [],
5255
"skillTags": Array [
5356
Object {
5457
"domain": "SKILLS",
@@ -65,6 +68,7 @@ Object {
6568
"allCountries": Array [],
6669
"countries": Array [],
6770
"loadingSkillTagsError": true,
71+
"reviewTypes": Array [],
6872
"skillTags": Array [
6973
Object {
7074
"domain": "SKILLS",
@@ -80,6 +84,7 @@ exports[`Default reducer Initial state 1`] = `
8084
Object {
8185
"allCountries": Array [],
8286
"countries": Array [],
87+
"reviewTypes": Array [],
8388
"skillTags": Array [],
8489
}
8590
`;
@@ -95,6 +100,7 @@ Object {
95100
],
96101
"loadingCountriesError": false,
97102
"loadingSkillTagsError": true,
103+
"reviewTypes": Array [],
98104
"skillTags": Array [
99105
Object {
100106
"domain": "SKILLS",
@@ -117,6 +123,7 @@ Object {
117123
],
118124
"loadingCountriesError": true,
119125
"loadingSkillTagsError": true,
126+
"reviewTypes": Array [],
120127
"skillTags": Array [
121128
Object {
122129
"domain": "SKILLS",
@@ -133,6 +140,7 @@ Object {
133140
"allCountries": Array [],
134141
"countries": Array [],
135142
"loadingSkillTagsError": false,
143+
"reviewTypes": Array [],
136144
"skillTags": Array [
137145
Object {
138146
"domain": "SKILLS",
@@ -149,6 +157,7 @@ Object {
149157
"allCountries": Array [],
150158
"countries": Array [],
151159
"loadingSkillTagsError": true,
160+
"reviewTypes": Array [],
152161
"skillTags": Array [
153162
Object {
154163
"domain": "SKILLS",
@@ -164,6 +173,7 @@ exports[`Factory without server side rendering Initial state 1`] = `
164173
Object {
165174
"allCountries": Array [],
166175
"countries": Array [],
176+
"reviewTypes": Array [],
167177
"skillTags": Array [],
168178
}
169179
`;

config/default.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"AV_SCAN_SCORER_REVIEW_TYPE_ID": "",
3+
"PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "",
34
"PAGE_SIZE": 50,
45
"REVIEW_OPPORTUNITY_PAGE_SIZE": 1000
56
}

config/development.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"AV_SCAN_SCORER_REVIEW_TYPE_ID": "68c5a381-c8ab-48af-92a7-7a869a4ee6c3"
2+
"AV_SCAN_SCORER_REVIEW_TYPE_ID": "68c5a381-c8ab-48af-92a7-7a869a4ee6c3",
3+
"PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "52c91e85-745f-4e62-b592-9879a2dfe9fd"
34
}

config/production.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"AV_SCAN_SCORER_REVIEW_TYPE_ID": "55bbb17d-aac2-45a6-89c3-a8d102863d05"
2+
"AV_SCAN_SCORER_REVIEW_TYPE_ID": "55bbb17d-aac2-45a6-89c3-a8d102863d05",
3+
"PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "df51ca7d-fb0a-4147-9569-992fcf5aae48"
34
}

config/test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@ module.exports = {
44
V3: 'https://api.topcoder-dev.com/v3',
55
},
66
dummyConfigKey: 'Dummy config value',
7+
SECRET: {
8+
TC_M2M: {
9+
AUTH0_URL: '',
10+
AUTH0_AUDIENCE: '',
11+
TOKEN_CACHE_TIME: '',
12+
AUTH0_PROXY_SERVER_URL: '',
13+
},
14+
},
715
};

config/webpack/default.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
const webpack = require('webpack');
33

44
module.exports = {
5-
plugins: [
6-
// eslint-disable-next-line global-require
7-
new webpack.DefinePlugin({ CONFIG: JSON.stringify(require('config')) }),
8-
],
5+
node: {
6+
tls: 'empty',
7+
fs: 'empty',
8+
net: 'empty',
9+
},
910
// Don't include the dependencies to keep built bundle small,
1011
// they will be provided by the app using this lib
1112
externals: [
@@ -24,8 +25,10 @@ module.exports = {
2425
'tc-accounts',
2526
'to-capital-case',
2627
'topcoder-react-utils',
28+
'tc-core-library-js',
29+
],
30+
plugins: [
31+
// eslint-disable-next-line global-require
32+
new webpack.DefinePlugin({ CONFIG: JSON.stringify(require('config')) }),
2733
],
28-
node: {
29-
fs: 'empty',
30-
},
3134
};

0 commit comments

Comments
 (0)