Skip to content

Commit c7894f4

Browse files
jmgasperrakibansary
authored andcommitted
Test for Add new sort types
1 parent bf3fce5 commit c7894f4

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

Diff for: app-constants.js

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ const validChallengeParams = {
4545
StartDate: 'startDate',
4646
ProjectId: 'projectId',
4747
Name: 'name',
48+
Type: 'type',
49+
NumOfSubmissions: 'numOfSubmissions',
50+
NumOfRegistrants: 'numOfRegistrants',
51+
Status: 'status',
4852
TypeId: 'typeId',
4953
Prizes: 'overview.totalPrizes'
5054
}

Diff for: docs/swagger.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ paths:
360360
projectId,
361361
name,
362362
typeId,
363+
numOfRegistrants,
364+
numOfSubmissions,
365+
status,
363366
overview.totalPrizes,
364367
]
365368
- name: sortOrder
@@ -3007,7 +3010,7 @@ definitions:
30073010
type: boolean
30083011
selfServiceCopilot:
30093012
type: string
3010-
cancelReason:
3013+
cancelReason:
30113014
type: string
30123015
billing:
30133016
type: object

Diff for: src/init-es.js

+18
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ const initES = async () => {
4141
},
4242
normalizer: 'custom_sort_normalizer'
4343
},
44+
status: {
45+
type: 'keyword',
46+
fields: {
47+
text: {
48+
type: 'text'
49+
}
50+
},
51+
normalizer: 'custom_sort_normalizer'
52+
},
53+
type: {
54+
type: 'keyword',
55+
fields: {
56+
text: {
57+
type: 'text'
58+
}
59+
},
60+
normalizer: 'custom_sort_normalizer'
61+
},
4462
prizeSets: {
4563
properties: {
4664
type: { type: 'text' },

0 commit comments

Comments
 (0)