Skip to content

Commit bd61d11

Browse files
Merge pull request #5031 from topcoder-platform/feature-refactor-challengelist-fixes
fix groupId issues
2 parents aab2a5a + 635e834 commit bd61d11

File tree

38 files changed

+86
-97
lines changed

38 files changed

+86
-97
lines changed

__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,7 @@ exports[`Matches shallow shapshot 1`] = `
8282
clearable={false}
8383
id="community-select"
8484
onChange={[Function]}
85-
options={
86-
Array [
87-
Object {
88-
"data": <div>
89-
Sample community
90-
</div>,
91-
"label": "Sample community",
92-
"name": "Sample community",
93-
"value": "",
94-
},
95-
]
96-
}
85+
options={Array []}
9786
selectRef={[Function]}
9887
simpleValue={true}
9988
value=""
@@ -278,18 +267,7 @@ exports[`Matches shallow shapshot 2`] = `
278267
clearable={false}
279268
id="community-select"
280269
onChange={[Function]}
281-
options={
282-
Array [
283-
Object {
284-
"data": <div>
285-
Sample community
286-
</div>,
287-
"label": "Sample community",
288-
"name": "Sample community",
289-
"value": "",
290-
},
291-
]
292-
}
270+
options={Array []}
293271
selectRef={[Function]}
294272
simpleValue={true}
295273
value=""

src/server/tc-communities/blockchain/metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"challengeFilter": {
3-
"groups": ["blockchain"],
3+
"groupIds": ["20000010"],
44
"or": [{
55
"tags": ["Blockchain", "Ethereum"]
66
}]
77
},
88
"communityId": "blockchain",
9+
"hidden": true,
910
"communityName": "Blockchain Community",
10-
"groups": ["blockchain"],
11+
"groupIds": ["20000010"],
1112
"hideSearch": true,
1213
"logos": [{
1314
"img": "/community-app-assets/themes/blockchain/logo_topcoder_with_name.svg",

src/server/tc-communities/cognitive/metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"challengeFilter": {
3-
"groups": ["cognitive"],
3+
"groupIds": ["20000015"],
44
"or": [{
55
"tags": ["Cognitive", "IBM Cognitive", "IBM Watson"]
66
}]
@@ -9,8 +9,9 @@
99
"openChallengesInNewTabs": false
1010
},
1111
"communityId": "cognitive",
12+
"hidden": true,
1213
"communityName": "Topcoder Cognitive Community",
13-
"groups": ["cognitive"],
14+
"groupIds": ["20000015"],
1415
"logos": [{
1516
"img": "/community-app-assets/themes/cognitive/logo_topcoder_with_name.svg",
1617
"url": "https://www.topcoder.com"

src/server/tc-communities/comcast/metadata.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
"authorizedGroups": [
3-
"comcast"
2+
"authorizedGroupIds": [
3+
"20000867"
44
],
55
"challengeFilter": {
6-
"groups": ["comcast"],
6+
"groupIds": ["20000867"],
77
"or": [{
88
"tags": ["Comcast"]
99
}]
1010
},
1111
"communityId": "comcast",
12+
"hidden": true,
1213
"communityName": "Comcast Community",
13-
"groups": ["comcast"],
14+
"groupIds": ["20000867"],
1415
"hideSearch": true,
1516
"logos": [{
1617
"img": "/community-app-assets/themes/comcast/corporate_Official-Comcast-Logo.png",

src/server/tc-communities/community-2/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"challengeFilter": {
3-
"groups": ["community-2"]
3+
"groupIds": ["20000002"]
44
},
55
"communityId": "community-2",
66
"communityName": "Community 2",
7-
"groups": ["community-2"],
7+
"groupIds": ["20000002"],
88
"hidden": true,
99
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/",
1010
"logos": [{

src/server/tc-communities/cs/metadata.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
2-
"authorizedGroups": [
3-
"cs"
2+
"authorizedGroupIds": [
3+
"20000044"
44
],
55
"challengeFilter": {
6-
"groups": ["cs"]
6+
"groupIds": ["20000044"]
77
},
88
"challengeListing": {
99
"ignoreCommunityFilterByDefault": true,
1010
"openChallengesInNewTabs": false
1111
},
1212
"communityId": "cs",
13+
"hidden": true,
1314
"communityName": "CS Community",
14-
"groups": ["cs"],
15+
"groupIds": ["20000044"],
1516
"hideSearch": true,
1617
"logos": [{
1718
"img": "/community-app-assets/themes/cs/credit-suisse-logo.jpg",

src/server/tc-communities/demo-expert/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"challengeFilter": {
3-
"groups": ["demo-expert"],
3+
"groupIds": ["20000003"],
44
"tags": [".NET"]
55
},
66
"communityId": "demo-expert",
77
"communityName": "Demo Expert Community",
8-
"groups": ["demo-expert"],
8+
"groupIds": ["20000003"],
99
"hidden": true,
1010
"logos": [{
1111
"img": "/community-app-assets/themes/demo-expert/logo_topcoder_with_name.svg",

src/server/tc-communities/iot/metadata.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"authorizedGroups": ["hide-challenges"],
2+
"authorizedGroupIds": ["20000014"],
33
"challengeFilter": {
4-
"groups": ["iot"],
4+
"groupIds": ["20000045"],
55
"or": [{
66
"tags": ["IoT", "Predix"]
77
}]
88
},
99
"communityId": "iot",
10+
"hidden": true,
1011
"communityName": "IoT Community",
11-
"groups": ["iot"],
12+
"groupIds": ["20000045"],
1213
"hideSearch": true,
1314
"logos": [{
1415
"img": "/community-app-assets/themes/iot/logo_topcoder_with_name.svg",

src/server/tc-communities/mobile/metadata.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"authorizedGroups": ["hide-challenges"],
2+
"authorizedGroupIds": ["20000014"],
33
"challengeFilter": {
4-
"groups": ["mobile"],
4+
"groupIds": ["20000047"],
55
"or": [{
66
"tags": ["Mobile", "iOS", "Android"]
77
}]
@@ -11,8 +11,9 @@
1111
"openChallengesInNewTabs": false
1212
},
1313
"communityId": "mobile",
14+
"hidden": true,
1415
"communityName": "Mobile Community",
15-
"groups": ["mobile"],
16+
"groupIds": ["20000047"],
1617
"hideSearch": true,
1718
"logos": [{
1819
"img": "/community-app-assets/themes/mobile/logo_topcoder_with_name.svg",

src/server/tc-communities/qa/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"authorizedGroups": ["hide-challenges"],
2+
"authorizedGroupIds": ["20000014"],
33
"challengeFilter": {
4-
"groups": ["qa-public","wipro-qaas"],
4+
"groupIds": ["20000012","20000004"],
55
"or": [{
66
"tags": ["QA"]
77
}]
88
},
99
"communityId": "qa",
1010
"communityName": "QA Community",
11-
"groups": ["qa-public","wipro-qaas"],
11+
"groupIds": ["20000012","20000004"],
1212
"hidden": true,
1313
"logos": [{
1414
"img": "/community-app-assets/themes/qa/logo_topcoder_with_name.svg",

src/server/tc-communities/srmx/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"authorizedGroups": ["srmx"],
2+
"authorizedGroupIds": ["20000006"],
33
"challengeFilter": {
4-
"groups": ["srmx"]
4+
"groupIds": ["20000006"]
55
},
66
"communityId": "srmx",
77
"communityName": "SRMX",
8-
"groups": ["srmx"],
8+
"groupIds": ["20000006"],
99
"hidden": true,
1010
"logos": [{
1111
"img": "/community-app-assets/themes/srmx/logo_topcoder_with_name.svg",

src/server/tc-communities/taskforce/metadata.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"authorizedGroups": [
3-
"taskforce"
2+
"authorizedGroupIds": [
3+
"20000003"
44
],
55
"challengeFilter": {
6-
"groups": ["taskforce"]
6+
"groupIds": ["20000003"]
77
},
88
"communityId": "taskforce",
99
"communityName": "Taskforce",
10-
"groups": ["taskforce"],
10+
"groupIds": ["20000003"],
1111
"hidden": true,
1212
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/",
1313
"logos": [{

src/server/tc-communities/tc-prod-dev/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"challengeFilter": {
3-
"groups": ["tc-prod-dev"]
3+
"groupIds": ["20000013"]
44
},
55
"communityId": "tc-prod-dev",
66
"communityName": "Topcoder Product Development",
7-
"groups": ["tc-prod-dev"],
7+
"groupIds": ["20000013"],
88
"hidden": true,
99
"terms": [21193,21153],
1010
"logos": [{

src/server/tc-communities/tco01/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco01",
33
"hidden": true,
44
"communityName": "TCO01",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO01.svg",

src/server/tc-communities/tco02/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco02",
33
"hidden": true,
44
"communityName": "TCO02",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO02.png",

src/server/tc-communities/tco03/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco03",
33
"hidden": true,
44
"communityName": "TCO03",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO03.png",

src/server/tc-communities/tco04/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco04",
33
"hidden": true,
44
"communityName": "TCO04",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO04.png",

src/server/tc-communities/tco05/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco05",
33
"hidden": true,
44
"communityName": "TCO05",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO05.png",

src/server/tc-communities/tco06/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco06",
33
"hidden": true,
44
"communityName": "TCO06",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO06.png",

src/server/tc-communities/tco07/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco07",
33
"hidden": true,
44
"communityName": "TCO07",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO07.png",

src/server/tc-communities/tco08/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco08",
33
"hidden": true,
44
"communityName": "TCO08",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO08.png",

src/server/tc-communities/tco09/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco09",
33
"hidden": true,
44
"communityName": "TCO09",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO09.png",

src/server/tc-communities/tco10/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco10",
33
"hidden": true,
44
"communityName": "TCO10",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO10.png",

src/server/tc-communities/tco11/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco11",
33
"hidden": true,
44
"communityName": "TCO11",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO11.png",

src/server/tc-communities/tco12/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco12",
33
"hidden": true,
44
"communityName": "TCO12",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO12.svg",

src/server/tc-communities/tco13/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco13",
33
"hidden": true,
44
"communityName": "TCO13",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO13.svg",

src/server/tc-communities/tco14/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco14",
33
"hidden": true,
44
"communityName": "TCO14",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO14.svg",

src/server/tc-communities/tco15/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco15",
33
"hidden": true,
44
"communityName": "TCO15",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO15.svg",

src/server/tc-communities/tco16/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"communityId": "tco16",
33
"hidden": true,
44
"communityName": "TCO16",
5-
"groups": [],
5+
"groupIds": [],
66
"hideSearch": true,
77
"logos": [{
88
"img": "/community-app-assets/themes/tco/TCO16.svg",

0 commit comments

Comments
 (0)