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
25 changes: 15 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
version: 2
version: 2.1
defaults: &defaults
docker:
- image: cimg/node:18.20.4
docker:
- image: cimg/python:3.13.2-browsers

install_dependency: &install_dependency
name: Installation of build and deployment dependencies.
command: |
sudo apt update
sudo apt install jq python3-pip
sudo pip3 install awscli --upgrade
sudo apt update
sudo apt install python3-pip
sudo pip3 install awscli --upgrade

install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
command: |
git clone --branch v1.4.15 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
git clone --branch v1.4.20 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
cp ../buildscript/psvar-processor.sh .

restore_cache_settings_for_build: &restore_cache_settings_for_build
key: docker-node-modules-{{ checksum "package-lock.json" }}

Expand All @@ -36,9 +40,10 @@ builddeploy_steps: &builddeploy_steps
command: |
./awsconfiguration.sh $DEPLOY_ENV
source awsenvconf
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
source buildenvvar
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME} -p FARGATE
./psvar-processor.sh -t appenv -p /config/${APPNAME}/deployvar
source deployvar_env
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -j /config/${APPNAME}/appvar -i ${APPNAME} -p FARGATE

jobs:
# Build & Deploy against development backend
"build-dev":
Expand Down
4 changes: 2 additions & 2 deletions src/services/members.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { isEmpty } from 'lodash';
*/
export async function getMemberInfo(member_id: string) {
return axios
.get(`https://api.topcoder${NODE_ENV === 'development' ? '-dev' : ''}.com/v5/members?userId=${member_id}`)
.get(`https://api.topcoder${NODE_ENV === 'development' ? '-dev' : ''}.com/v6/members?userId=${member_id}`)
.then(res => (isEmpty(res.data) ? null : res.data[0]));
}

Expand All @@ -19,5 +19,5 @@ export async function getMemberInfo(member_id: string) {
* @returns Promise
*/
export async function getMemberInfoByHandle(handle: string) {
return axios.get(`https://api.topcoder${NODE_ENV === 'development' ? '-dev' : ''}.com/v5/members/${handle}`).then(res => res.data);
return axios.get(`https://api.topcoder${NODE_ENV === 'development' ? '-dev' : ''}.com/v6/members/${handle}`).then(res => res.data);
}