Skip to content

Metadata fix -> dev #1585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 14, 2023
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
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ install_dependency: &install_dependency
sudo apt update
sudo apt install python3-pip
sudo pip3 install awscli --upgrade
sudo pip3 install docker==6.1.3
sudo pip3 install docker-compose

install_test_dependency: &install_test_dependency
Expand Down Expand Up @@ -152,7 +153,7 @@ workflows:
context : org-global
filters: &filters-dev
branches:
only: ['develop', 'multiround', 'release_0.20.9']
only: ['develop', 'multiround', 'release_0.20.9', 'metadata-fix']

# Production builds are exectuted only on tagged commits to the
# master branch.
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChallengeEditor/ChallengeView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const ChallengeView = ({
const showCheckpointPrizes = _.get(challenge, 'timelineTemplateId') === MULTI_ROUND_CHALLENGE_TEMPLATE_ID
const isDataScience = challenge.trackId === DS_TRACK_ID
const useDashboardData = _.find(challenge.metadata, { name: 'show_data_dashboard' })
const useDashboard = useDashboardData ? useDashboardData.value : true
const useDashboard = useDashboardData ? (useDashboardData.value === 'true') : false

return (
<div className={styles.wrapper}>
Expand Down
2 changes: 1 addition & 1 deletion src/util/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const updateChallengePhaseBeforeSendRequest = (challengeDetail) => {
}))
return challengeDetailTmp
}
if(challengeDetail.metadata && challengeDetail.metadata.length > 0) {
if (challengeDetail.metadata && challengeDetail.metadata.length > 0) {
challengeDetail.metadata = challengeDetail.metadata.map(m => {
// check if value is boolean and convert to string
if (typeof m.value === 'boolean') {
Expand Down