Skip to content

Commit 0a8e99e

Browse files
author
James Cori
committed
Merge branch 'develop' into update-mappings
2 parents 623576a + 4c85539 commit 0a8e99e

13 files changed

+793
-1002
lines changed

app-constants.js

Lines changed: 6 additions & 1 deletion
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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ module.exports = {
5959
? process.env.COPILOT_RESOURCE_ROLE_IDS.split(',') : ['10ba038e-48da-487b-96e8-8d3b99b6d18b'],
6060
SUBMITTER_ROLE_ID: process.env.SUBMITTER_ROLE_ID || '732339e7-8e30-49d7-9198-cccf9451e221',
6161

62+
MANAGER_ROLE_ID: process.env.MANAGER_ROLE_ID || '0e9c6879-39e4-4eb6-b8df-92407890faf1',
63+
OBSERVER_ROLE_ID: process.env.OBSERVER_ROLE_ID || '2a4dc376-a31c-4d00-b173-13934d89e286',
64+
6265
// health check timeout in milliseconds
6366
HEALTH_CHECK_TIMEOUT: process.env.HEALTH_CHECK_TIMEOUT || 3000,
6467

docs/swagger.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,6 +1736,11 @@ paths:
17361736
description: Filter by timeline template id
17371737
required: false
17381738
type: string
1739+
- name: isDefault
1740+
in: query
1741+
description: Filter by is default flag
1742+
required: false
1743+
type: boolean
17391744
responses:
17401745
'200':
17411746
description: OK
@@ -2219,6 +2224,28 @@ definitions:
22192224
- $ref: '#/definitions/EventData'
22202225
required:
22212226
- id
2227+
Discussion:
2228+
type: object
2229+
properties:
2230+
id:
2231+
type: string
2232+
format: UUID
2233+
name:
2234+
type: string
2235+
type:
2236+
type: string
2237+
enum:
2238+
- challenge
2239+
provider:
2240+
type: string
2241+
url:
2242+
type: string
2243+
description: Only M2M tokens can modify this
2244+
options:
2245+
type: array
2246+
description: Only M2M tokens can modify this
2247+
items:
2248+
type: object
22222249
TimelineTemplate:
22232250
type: object
22242251
allOf:
@@ -2342,6 +2369,10 @@ definitions:
23422369
type: string
23432370
value:
23442371
type: number
2372+
discussions:
2373+
type: array
2374+
items:
2375+
$ref: '#/definitions/Discussion'
23452376
tags:
23462377
type: array
23472378
items:
@@ -2554,6 +2585,9 @@ definitions:
25542585
timelineTemplateId:
25552586
type: string
25562587
format: UUID
2588+
isDefault:
2589+
type: boolean
2590+
default: false
25572591
required:
25582592
- typeId
25592593
- trackId
@@ -2655,6 +2689,10 @@ definitions:
26552689
format: UUID
26562690
duration:
26572691
type: number
2692+
discussions:
2693+
type: array
2694+
items:
2695+
$ref: '#/definitions/Discussion'
26582696
prizeSets:
26592697
type: array
26602698
items:

0 commit comments

Comments
 (0)