Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ workflows:
only:
- develop
- hotfix/deploy
- pm-2539
- PM-3458

# Production builds are exectuted only on tagged commits to the testing
# master branch.
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.19.0
22.13.1
2 changes: 1 addition & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
SENDGRID_TEMPLATE_ID: process.env.SENDGRID_TEMPLATE_ID || '',
SENDGRID_TEMPLATE_ID_NO_FORUM: process.env.SENDGRID_TEMPLATE_ID_NO_FORUM || '',
SUBMIT_URL: process.env.SUBMIT_URL || 'https://www.topcoder.com/challenges/:id/submit/',
REVIEW_APP_URL: process.env.REVIEW_APP_URL || 'https://software.topcoder.com/review/actions/ViewProjectDetails?pid=',
REVIEW_APP_URL: process.env.REVIEW_APP_URL || 'https://review.topcoder.com/active-challenges/',
HELP_URL: process.env.HELP_URL || 'https://help.topcoder.com',
SUPPORT_EMAIL: process.env.SUPPORT_EMAIL || 'support@topcoder.com'
},
Expand Down
11 changes: 6 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the base image with Node.js
FROM node:18.20.8-alpine3.21
FROM node:22.13.1-alpine
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Ensure that the new Node.js version 22.13.1-alpine is compatible with your application and any dependencies, as upgrading major versions can introduce breaking changes.

RUN apk add --update --no-cache openssh-client git
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
# Copy the current directory into the Docker image
Expand All @@ -8,9 +8,10 @@ COPY . /resources-api
# Set working directory for future use
WORKDIR /resources-api

RUN npm install pnpm -g
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ maintainability]
Consider using a specific version of pnpm rather than installing the latest version globally. This can help avoid unexpected behavior due to breaking changes in future pnpm releases.

# Install the dependencies from package.json
RUN --mount=type=ssh yarn install
RUN yarn lint
RUN yarn lint:fix
RUN pnpm install
RUN pnpm lint
RUN pnpm lint:fix

CMD node app.js
CMD pnpm start
18 changes: 9 additions & 9 deletions mock/data/Challenge.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
{
"id": "11111111-2222-3333-4444-555555555555",
"name": "Completed Challenge",
"status": "Completed"
"status": "COMPLETED"
},
{
"id": "11111111-2222-3333-4444-555555555556",
"name": "Active Challenge - Registration is Open",
"status": "Active",
"status": "ACTIVE",
"phases": [
{
"phaseId": "a93544bc-c165-4af4-b55e-18f3593b457a",
Expand Down Expand Up @@ -45,7 +45,7 @@
{
"id": "11111111-2222-3333-4444-555555555557",
"name": "Active Challenge - Registration is Closed, Submission is Open",
"status": "Active",
"status": "ACTIVE",
"phases": [
{
"phaseId": "a93544bc-c165-4af4-b55e-18f3593b457a",
Expand Down Expand Up @@ -83,7 +83,7 @@
{
"id": "11111111-2222-3333-4444-555555555558",
"name": "Active Challenge - Submission is Closed, Review phase is Open",
"status": "Active",
"status": "ACTIVE",
"phases": [
{
"phaseId": "a93544bc-c165-4af4-b55e-18f3593b457a",
Expand Down Expand Up @@ -116,7 +116,7 @@
{
"id": "11111111-2222-3333-4444-555555555559",
"name": "Active Task - Registration is Open",
"status": "Active",
"status": "ACTIVE",
"task": {
"isTask": true
},
Expand Down Expand Up @@ -159,7 +159,7 @@
{
"id": "11111111-2222-3333-4444-55555555555b",
"name": "Active Challenge - Set allowedRegistrants - Registration is Open",
"status": "Active",
"status": "ACTIVE",
"constraints": {
"allowedRegistrants": ["lazybaer"]
},
Expand Down Expand Up @@ -200,7 +200,7 @@
{
"id": "11111111-2222-3333-4444-55555555555c",
"name": "Active Challenge - FIRST_2_FINISH - Registration is Open",
"status": "Active",
"status": "ACTIVE",
"legacy": {
"subTrack": "FIRST_2_FINISH"
},
Expand Down Expand Up @@ -229,7 +229,7 @@
{
"id": "11111111-2222-3333-4444-55555555555d",
"name": "Active Challenge - Group Access",
"status": "Active",
"status": "ACTIVE",
"groups": [
"11111111-2222-3333-9999-555555555555"
],
Expand All @@ -252,7 +252,7 @@
{
"id": "11111111-2222-3333-4444-55555555555e",
"name": "Active Challenge - Group Access",
"status": "Active",
"status": "ACTIVE",
"groups": [
"11111111-2222-3333-9999-555555555555",
"11111111-2222-3333-9999-555555555557"
Expand Down
2 changes: 1 addition & 1 deletion mock/mock-challenge-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const mockChallengeApi = http.createServer((req, res) => {
} else {
return send(res, 200, {
id: challengeId,
status: 'Active',
status: 'ACTIVE',
task: {
isTask: challengeId === 'fe6d0a58-ce7d-4521-8501-b8132b1c0392'
},
Expand Down
Loading
Loading