-
Notifications
You must be signed in to change notification settings - Fork 83
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
feat: Level moderation #1282
feat: Level moderation #1282
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 17 of 17 files at r1, all commit messages.
Reviewable status: all files reviewed, 11 unresolved discussions (waiting on @razvan-pro)
game/static/game/js/level_moderation.js, line 27 at r1 (raw file):
function confirmDelete() { console.log(levelID);
Do we need this console.log
?
game/templates/game/level_moderation.html, line 3 at r1 (raw file):
{% extends 'game/base.html' %} {% load static %} {% load i18n %}
Please remove this and anything else in this file related to Crowdin and translations 🙏
game/templates/game/level_moderation.html, line 31 at r1 (raw file):
{% block nav_ocargo_moderate %} <a class="button button--secondary button--secondary--light sub-nav--teacher-active" href="{% url 'level_moderation' %}">{% trans "Moderate" %}</a>
Like this {% trans $}
game/templates/game/level_moderation.html, line 68 at r1 (raw file):
{% endfor %} </ul>
Whitespaces
game/templates/game/level_moderation.html, line 117 at r1 (raw file):
<td><small>{{level.shared_with}}</small></td> <td class="text-center"> <button class="button button--small button--primary play" value={{level.id}}>{% trans "Play" %}</button>
Remove {% trans %}
game/templates/game/level_moderation.html, line 121 at r1 (raw file):
<td class="text-center"> <button class="button button--small button--primary--danger button--icon delete" value={{level.id}}> {% trans "Delete" %}<span class="iconify" data-icon="mdi:delete-outline"></span>
Remove {% trans %}
game/templates/game/level_moderation.html, line 132 at r1 (raw file):
{% else %} {% if thead %} <p>{% trans "No levels found." %}</p>
Remove {% trans %}
game/templates/game/level_moderation.html, line 134 at r1 (raw file):
<p>{% trans "No levels found." %}</p> {% else %} <p>{% trans "Select a class to view the levels created by students." %}</p>
Remove {% trans %}
game/tests/test_level_moderation.py, line 94 at r1 (raw file):
) def create_custom_level(self, level_name):
Not blocking, but should this be in test_utils
or whatever the folder is called maybe?
game/views/level_moderation.py, line 9 at r1 (raw file):
from django.http import Http404, HttpResponse from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext
Maybe see if you can remove this import if you can remove all ugettext
from this file
game/views/level_moderation.py, line 84 at r1 (raw file):
table_headers = [ ugettext("Student"),
Remove all ugettext
and just use the string please 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @razvan-pro)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @razvan-pro)
game/static/game/js/level_moderation.js, line 27 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Do we need this
console.log
?
no 😅
game/templates/game/level_moderation.html, line 3 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Please remove this and anything else in this file related to Crowdin and translations 🙏
👍
game/templates/game/level_moderation.html, line 31 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Like this
{% trans $}
Done.
game/templates/game/level_moderation.html, line 68 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Whitespaces
Done.
game/templates/game/level_moderation.html, line 117 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Remove
{% trans %}
Done.
game/templates/game/level_moderation.html, line 121 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Remove
{% trans %}
Done.
game/templates/game/level_moderation.html, line 132 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Remove
{% trans %}
Done.
game/templates/game/level_moderation.html, line 134 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Remove
{% trans %}
Done.
game/tests/test_level_moderation.py, line 94 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Not blocking, but should this be in
test_utils
or whatever the folder is called maybe?
Good point, I didn't know there's one already there, thank you 🙏
game/views/level_moderation.py, line 9 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Maybe see if you can remove this import if you can remove all
ugettext
from this file
Done.
game/views/level_moderation.py, line 84 at r1 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Remove all
ugettext
and just use the string please 🙏
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r3, 1 of 1 files at r4, 1 of 1 files at r5, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @razvan-pro)
game/templates/game/level_moderation.html, line 25 at r5 (raw file):
{% block header %} <section class="banner banner--rapid-router"> <img title="Rapid Router logo" alt="Rapid Router logo" src="{% static 'portal/img/RR_logo.svg' %}">
This should really be moved to common
yeah since it creates a new circular dependency 😕
game/templates/game/level_selection.html, line 54 at r5 (raw file):
{% block header %} <section class="banner banner--rapid-router"> <img title="Rapid Router logo" alt="Rapid Router logo" src="{% static 'portal/img/RR_logo.svg' %}">
Same here
game/templates/game/scoreboard.html, line 35 at r5 (raw file):
{% block header %} <section class="banner banner--rapid-router"> <img title="Rapid Router logo" alt="Rapid Router logo" src="{% static 'portal/img/RR_logo.svg' %}">
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 6 of 6 files at r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @razvan-pro)
game/templates/game/level_moderation.html, line 25 at r5 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
This should really be moved to
common
yeah since it creates a new circular dependency 😕
Looks good but I can't see the new image in common?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @faucomte97)
game/templates/game/level_moderation.html, line 25 at r5 (raw file):
Previously, faucomte97 (Florian Aucomte) wrote…
Looks good but I can't see the new image in common?
It's here: https://reviewable.io/reviews/ocadotechnology/codeforlife-portal/1723#-
🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @razvan-pro)
game/templates/game/level_moderation.html, line 25 at r5 (raw file):
Previously, razvan-pro (Razvan Mahu) wrote…
It's here: https://reviewable.io/reviews/ocadotechnology/codeforlife-portal/1723#-
🙂
Oh yeah I missed it 🤦♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @razvan-pro)
Codecov Report
@@ Coverage Diff @@
## master #1282 +/- ##
==========================================
+ Coverage 90.65% 91.51% +0.86%
==========================================
Files 98 98
Lines 5317 5294 -23
==========================================
+ Hits 4820 4845 +25
+ Misses 497 449 -48
|
This change is