diff --git a/.circleci/config.yml b/.circleci/config.yml index 8424b30be9..349c4c5d3c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -343,7 +343,6 @@ workflows: branches: only: - develop - - docusign-cors # This is alternate dev env for parallel testing - "build-test": context : org-global @@ -357,14 +356,14 @@ workflows: filters: branches: only: - - ref-email-tracking + - free # This is beta env for production soft releases - "build-prod-beta": context : org-global filters: branches: only: - - slash-home-hotfix + - free # This is stage env for production QA releases - "build-prod-staging": context : org-global diff --git a/package.json b/package.json index a400094647..68086b3c61 100644 --- a/package.json +++ b/package.json @@ -150,7 +150,7 @@ "supertest": "^3.1.0", "tc-core-library-js": "github:appirio-tech/tc-core-library-js#v2.6.3", "tc-ui": "^1.0.12", - "topcoder-react-lib": "1.2.0", + "topcoder-react-lib": "1000.28.1", "topcoder-react-ui-kit": "2.0.1", "topcoder-react-utils": "0.7.8", "turndown": "^4.0.2", diff --git a/src/shared/components/challenge-listing/Listing/Bucket/index.jsx b/src/shared/components/challenge-listing/Listing/Bucket/index.jsx index afcf67b309..cc4898d94d 100644 --- a/src/shared/components/challenge-listing/Listing/Bucket/index.jsx +++ b/src/shared/components/challenge-listing/Listing/Bucket/index.jsx @@ -77,6 +77,19 @@ export default function Bucket({ } else { sortedChallenges = _.clone(challenges); } + + let filteredChallenges = sortedChallenges; + filteredChallenges = sortedChallenges.filter((ch) => { + if (ch.type === 'Task' + && ch.task + && ch.task.isTask + && ch.task.isAssigned + && Number(ch.task.memberId) !== Number(userId)) { + return null; + } + return ch; + }); + // sortedChallenges.sort(Sort[activeSort].func); // const bucketQuery = qs.stringify({ @@ -118,14 +131,14 @@ export default function Bucket({ // ); // } - if (!loading && sortedChallenges.length === 0) { + if (!loading && filteredChallenges.length === 0) { return (
{ (filterState.recommended && activeBucket === 'openForRegistration') ? null : `${NO_LIVE_CHALLENGES_CONFIG[activeBucket]}` }
); } - const cards = sortedChallenges.map(challenge => ( + const cards = filteredChallenges.map(challenge => ( !w.type || w.type === 'final'); + if (challenge.type !== 'Task') { + winners = winners.filter(w => !w.type || w.type === 'final'); + } let hasFirstPlacement = false; if (!_.isEmpty(winners)) {