Skip to content

Commit ddf213e

Browse files
committed
Merge branch 'develop'
2 parents 55dd751 + 2c7d92d commit ddf213e

9 files changed

+754
-920
lines changed

app-constants.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ const EVENT_ORIGINATOR = 'topcoder-challenges-api'
4747

4848
const EVENT_MIME_TYPE = 'application/json'
4949

50+
const DiscussionTypes = {
51+
Challenge: 'challenge'
52+
}
53+
5054
// using a testing topc, should be changed to use real topics in comments when they are created
5155
const Topics = {
5256
ChallengeCreated: 'challenge.notification.create',
@@ -85,5 +89,6 @@ module.exports = {
8589
EVENT_MIME_TYPE,
8690
Topics,
8791
challengeTracks,
88-
challengeTextSortField
92+
challengeTextSortField,
93+
DiscussionTypes
8994
}

config/default.js

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ module.exports = {
4747
FILE_UPLOAD_SIZE_LIMIT: process.env.FILE_UPLOAD_SIZE_LIMIT
4848
? Number(process.env.FILE_UPLOAD_SIZE_LIMIT) : 50 * 1024 * 1024, // 50M
4949
RESOURCES_API_URL: process.env.RESOURCES_API_URL || 'http://localhost:4000/v5/resources',
50+
// TODO: change this to localhost
51+
RESOURCE_ROLES_API_URL: process.env.RESOURCE_ROLES_API_URL || 'http://api.topcoder-dev.com/v5/resource-roles',
5052
GROUPS_API_URL: process.env.GROUPS_API_URL || 'http://localhost:4000/v5/groups',
5153
PROJECTS_API_URL: process.env.PROJECTS_API_URL || 'http://localhost:4000/v5/projects',
5254
TERMS_API_URL: process.env.TERMS_API_URL || 'http://localhost:4000/v5/terms',

docs/swagger.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -2219,6 +2219,28 @@ definitions:
22192219
- $ref: '#/definitions/EventData'
22202220
required:
22212221
- id
2222+
Discussion:
2223+
type: object
2224+
properties:
2225+
id:
2226+
type: string
2227+
format: UUID
2228+
name:
2229+
type: string
2230+
type:
2231+
type: string
2232+
enum:
2233+
- challenge
2234+
provider:
2235+
type: string
2236+
url:
2237+
type: string
2238+
description: Only M2M tokens can modify this
2239+
options:
2240+
type: array
2241+
description: Only M2M tokens can modify this
2242+
items:
2243+
type: object
22222244
TimelineTemplate:
22232245
type: object
22242246
allOf:
@@ -2342,6 +2364,10 @@ definitions:
23422364
type: string
23432365
value:
23442366
type: number
2367+
discussions:
2368+
type: array
2369+
items:
2370+
$ref: '#/definitions/Discussion'
23452371
tags:
23462372
type: array
23472373
items:
@@ -2655,6 +2681,10 @@ definitions:
26552681
format: UUID
26562682
duration:
26572683
type: number
2684+
discussions:
2685+
type: array
2686+
items:
2687+
$ref: '#/definitions/Discussion'
26582688
prizeSets:
26592689
type: array
26602690
items:

0 commit comments

Comments
 (0)