Skip to content
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

[Bug] Remove duplicated challenge slug "chaimeleon" #2744

Closed
3 tasks done
tschaffter opened this issue Jul 19, 2024 · 1 comment · Fixed by #2745
Closed
3 tasks done

[Bug] Remove duplicated challenge slug "chaimeleon" #2744

tschaffter opened this issue Jul 19, 2024 · 1 comment · Fixed by #2745
Assignees
Labels
bug Something isn't working data

Comments

@tschaffter
Copy link
Member

tschaffter commented Jul 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What product(s) are you seeing the problem on?

OpenChallenges

Current behavior

There are two challenges in main that have the same challenge slug: challenges with IDs 183 and 519.

https://github.com/Sage-Bionetworks/sage-monorepo/blob/main/apps/openchallenges/challenge-service/src/main/resources/db/challenges.csv

Tasks:

  • Fix the duplication
  • Review why the process allowed a duplicated challenge slug while they should be unique

Expected behavior

Upon starting, the challenge service should not thrown this warning reported by @zaro0508 :

2024-07-15 21:27:07 WARN  [main] o.f.c.i.s.DefaultSqlScriptExecutor - DB: Duplicate entry 'chaimeleon' for key 'slug' (SQL State: 23000 - Error Code: 1062)

Anything else?

No response

Commit ID

04dc1bb

Are you developing inside the dev container?

  • I am using the dev container

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tschaffter tschaffter added bug Something isn't working data labels Jul 19, 2024
@vpchung
Copy link
Member

vpchung commented Jul 19, 2024

Thanks for catching this, @tschaffter ! There was a small bug in the validation formula so it wasn't caught. I have since fixed the formula, as well as updated the data so that there is no duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants