Skip to content

Commit

Permalink
Merge pull request #5737 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Release v1.13.4
  • Loading branch information
luizrrodrigues authored Oct 7, 2021
2 parents 243cbbe + 2ba154f commit fd596b3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ workflows:
branches:
only:
- develop
- docusign-cors
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "1.2.1",
"topcoder-react-ui-kit": "2.0.1",
"topcoder-react-utils": "0.7.8",
"turndown": "^4.0.2",
Expand Down
17 changes: 15 additions & 2 deletions src/shared/components/challenge-listing/Listing/Bucket/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -118,14 +131,14 @@ export default function Bucket({
// );
// }

if (!loading && sortedChallenges.length === 0) {
if (!loading && filteredChallenges.length === 0) {
return (
<div styleName="no-results">
{ (filterState.recommended && activeBucket === 'openForRegistration') ? null : `${NO_LIVE_CHALLENGES_CONFIG[activeBucket]}` }
</div>
);
}
const cards = sortedChallenges.map(challenge => (
const cards = filteredChallenges.map(challenge => (
<ChallengeCard
challenge={challenge}
challengeType={_.find(challengeTypes, { name: challenge.type })}
Expand Down
4 changes: 3 additions & 1 deletion src/shared/containers/challenge-detail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ class ChallengeDetailPageContainer extends React.Component {
}

let winners = challenge.winners || [];
winners = winners.filter(w => !w.type || w.type === 'final');
if (challenge.type !== 'Task') {
winners = winners.filter(w => !w.type || w.type === 'final');
}

let hasFirstPlacement = false;
if (!_.isEmpty(winners)) {
Expand Down

0 comments on commit fd596b3

Please sign in to comment.