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

Submission remove from leaderboard - Empty error #1324

Merged
merged 5 commits into from
Feb 19, 2024

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
Collaborator

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
Collaborator

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
Collaborator

Perfect

@Didayolo Didayolo merged commit 4e5e085 into develop Feb 19, 2024
1 check passed
@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
2 participants