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 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..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; @@ -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