From 6ead47f1dc88ac02bb3795fc4755820e111a9c2f Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Thu, 15 Jul 2021 22:28:42 -0300 Subject: [PATCH 1/3] Revert "tc-communities API: Additional logging" This reverts commit 3fa243801849bb070aec25815e39858a64abbe93. --- src/server/tc-communities/index.js | 2 -- src/shared/reducers/terms.js | 1 - 2 files changed, 3 deletions(-) diff --git a/src/server/tc-communities/index.js b/src/server/tc-communities/index.js index 20b8db6467..3b510bc302 100644 --- a/src/server/tc-communities/index.js +++ b/src/server/tc-communities/index.js @@ -4,7 +4,6 @@ import _ from 'lodash'; import { getList, getMetadata } from 'server/services/communities'; -import { logger } from 'topcoder-react-lib'; import express from 'express'; const router = express.Router(); @@ -28,7 +27,6 @@ router.get('/', (req, res) => { */ router.get('/:communityId/meta', (req, res) => { const { communityId } = req.params; - logger.log('getMetadata::origin : ', req.headers.referer); getMetadata(communityId) .catch(err => res.status(404).send(err)) .then(data => res.json(data)); diff --git a/src/shared/reducers/terms.js b/src/shared/reducers/terms.js index f426ea68f3..9af66a28f5 100644 --- a/src/shared/reducers/terms.js +++ b/src/shared/reducers/terms.js @@ -340,7 +340,6 @@ export function factory(req) { // load terms for the entity if (entity) { - logger.log('terms::reducer::origin ', req.headers.referer); return redux.resolveAction(actions.terms.getTermsDone(entity, tokens)) .then((termsDoneAction) => { // we have to init first, otherwise results will be ignored by onGetTermsDone From 5d7713c2a39bee3072b435f40c59d1fd830dd1d6 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Thu, 15 Jul 2021 22:29:16 -0300 Subject: [PATCH 2/3] Terms: Fix __community__ page check --- src/shared/reducers/terms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/reducers/terms.js b/src/shared/reducers/terms.js index 9af66a28f5..c5909ec56f 100644 --- a/src/shared/reducers/terms.js +++ b/src/shared/reducers/terms.js @@ -329,7 +329,7 @@ export function factory(req) { // if it's commynity page let communityId = getCommunityId(req.subdomains); - if (!communityId && req.url.match(/\/community\/.*/)) { + if (!communityId && req.url.startsWith('/__community__')) { [,, communityId] = req.url.split('/'); // remove possible params like ?join= communityId = communityId ? communityId.replace(/\?.*/, '') : communityId; From 0f4f284dfe32d48178019940cdf9212284941fea Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Thu, 15 Jul 2021 22:41:00 -0300 Subject: [PATCH 3/3] ci: Deploy tc-api-issue to Stag env --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6a576cb529..7c2f0722dd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -371,7 +371,7 @@ workflows: branches: only: - develop - - ast-store-artifacts + - tc-api-issue # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration