Skip to content

Conversation

@ihsaan-ullah
Copy link
Collaborator

@ihsaan-ullah ihsaan-ullah commented Feb 11, 2024

@ mention of reviewers

@Didayolo

A brief description of the purpose of the changes contained in this PR.

There was an empty error shown when someone wanted to remove a submission from leaderboard. Now an error message is displayed along with correction in the logic.

Issues this PR resolves

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@ihsaan-ullah ihsaan-ullah linked an issue Feb 11, 2024 that may be closed by this pull request
1 task
@Didayolo
Copy link
Member

Good job. It is very nice that you are adding comments, cleaning the form of the code and adding tests. Very good coding practices.

@Didayolo
Copy link
Member

Didayolo commented Feb 15, 2024

@ihsaan-ullah

It seems that I still have an error message when trying to add a submission to leaderboard when "Force last" is enabled:

Capture d’écran 2024-02-15 à 17 18 02 Capture d’écran 2024-02-15 à 17 17 58

When removing a submission, it depends:

  • As an organizer / admin, I get the new error message ("You are not allowed [...]")
  • As a simple participant, I get no error message

@ihsaan-ullah
Copy link
Collaborator Author

@ihsaan-ullah

It seems that I still have an error message when trying to add a submission to leaderboard when "Force last" is enabled:

Capture d’écran 2024-02-15 à 17 18 02 Capture d’écran 2024-02-15 à 17 17 58
When removing a submission, it depends:

  • As an organizer / admin, I get the new error message ("You are not allowed [...]")
  • As a simple participant, I get no error message

I will check this, i did not know that a simple participant can also do this. I tested it in the admin interface only

@ihsaan-ullah
Copy link
Collaborator Author

@Didayolo now it should be ok

@Didayolo
Copy link
Member

Perfect

@Didayolo Didayolo merged commit 4e5e085 into develop Feb 19, 2024
@Didayolo Didayolo deleted the submission_leaderboard branch February 19, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty error message on trying to add another user's submission to leaderboard Remove submission from leaderboad

3 participants