Skip to content

Commit 0ad556b

Browse files
author
sachin-maheshwari
authored
Merge pull request #36 from topcoder-platform/develop
Shapeup-pure-v5-task: adding phaseId support in older version
2 parents e8266dd + a229ac8 commit 0ad556b

File tree

5 files changed

+39
-39
lines changed

5 files changed

+39
-39
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ workflows:
9090
branches:
9191
only:
9292
- develop
93-
- legacy_only
93+
- feature/shapeup-pure-V5-task
9494

9595
# Production builds are exectuted only on tagged commits to the
9696
# master branch.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Topcoder - Legacy Submission Processor Application
1+
# Topcoder - Legacy Submission Processor Application
22
----------------------
33

44
## Requirements

build.sh

+35-35
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,42 @@ echo "Creating lsp-asp images"
1414
echo "================================"
1515
docker-compose -f ecs-docker-compose.yml build --build-arg servername=${DB_SERVER_NAME} --build-arg port=${DB_SERVER_PORT} lsp-app
1616
#docker tag lsp-app:latest $TAG
17-
echo "================================"
18-
echo "lsp-asp images has created"
19-
echo "Creating kafka and tc-informix"
20-
echo "================================"
21-
docker-compose -f ecs-docker-compose.yml up -d kafka
22-
echo "================================"
23-
echo "kafka has created"
24-
echo "Creating kafka and tc-informix"
25-
echo "================================"
26-
docker-compose -f ecs-docker-compose.yml up -d tc-informix
27-
echo "================================"
28-
echo "tc-informix has created"
29-
echo "Executing kafka topics"
30-
echo "================================"
31-
sleep 5
32-
docker exec -ti kafka bash -c "kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic submission.notification.create"
33-
docker exec -ti kafka bash -c "kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic submission.notification.update"
34-
echo "================================"
35-
echo "kafka topics has created"
36-
echo "Copying sql file and setting env"
37-
echo "================================"
38-
docker cp test/sql/test.sql iif_innovator_c:/
39-
sleep 10
40-
echo "================================"
41-
echo "copied sql file "
42-
echo "setting env"
43-
echo "================================"
44-
docker exec -ti iif_innovator_c bash -c "source /home/informix/ifx_informixoltp_tcp.env && dbaccess - /test.sql"
45-
echo "================================"
46-
echo "env set"
47-
echo "initiating test"
48-
echo "================================"
17+
#echo "================================"
18+
#echo "lsp-asp images has created"
19+
#echo "Creating kafka and tc-informix"
20+
#echo "================================"
21+
#docker-compose -f ecs-docker-compose.yml up -d kafka
22+
#echo "================================"
23+
#echo "kafka has created"
24+
#echo "Creating kafka and tc-informix"
25+
#echo "================================"
26+
#docker-compose -f ecs-docker-compose.yml up -d tc-informix
27+
#echo "================================"
28+
#echo "tc-informix has created"
29+
#echo "Executing kafka topics"
30+
#echo "================================"
31+
#sleep 5
32+
#docker exec -ti kafka bash -c "kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic submission.notification.create"
33+
#docker exec -ti kafka bash -c "kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic submission.notification.update"
34+
#echo "================================"
35+
#echo "kafka topics has created"
36+
#echo "Copying sql file and setting env"
37+
#echo "================================"
38+
#docker cp test/sql/test.sql iif_innovator_c:/
39+
#sleep 10
40+
#echo "================================"
41+
#echo "copied sql file "
42+
#echo "setting env"
43+
#echo "================================"
44+
#docker exec -ti iif_innovator_c bash -c "source /home/informix/ifx_informixoltp_tcp.env && dbaccess - /test.sql"
45+
#echo "================================"
46+
#echo "env set"
47+
#echo "initiating test"
48+
#echo "================================"
4949
#docker-compose -f ecs-docker-compose.yml up --build lsp-app-test
50-
echo "================================"
51-
echo "test completed"
52-
echo "================================"
50+
#echo "================================"
51+
#echo "test completed"
52+
#echo "================================"
5353
#docker build -f ECSDockerfile -t $TAG .
5454

5555
# Copies "node_modules" from the created image, if necessary for caching.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"http-json-response": "^1.0.1",
2626
"ifxnjs": "^8.0.1",
2727
"joi": "^13.4.0",
28-
"legacy-processor-module": "git+https://github.com/topcoder-platform/legacy-processor-module.git#master",
28+
"legacy-processor-module": "git+https://github.com/topcoder-platform/legacy-processor-module.git#0.0.3",
2929
"lodash": "^4.17.14",
3030
"moment": "^2.24.0",
3131
"moment-timezone": "^0.5.26",

src/services/SubmissionService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const eventSchema = Schema.createEventSchema({
1414
resource: Joi.resource(),
1515
challengeId: Joi.id().required(),
1616
memberId: Joi.id().required(),
17-
submissionPhaseId: Joi.id().required(),
17+
submissionPhaseId: Joi.sid().required(),
1818
type: Joi.string().required(),
1919
url: Joi.string()
2020
.uri()

0 commit comments

Comments
 (0)