Details
Description
We do stuff like this (in the order of execution):
# ...
submission_statuses.register('WA', _("Wrong Answer"))
class TestReport(models.Model):
status = EnumField(submission_statuses)
# ...
# in different file
submission_statuses.register('MCE', _("Message Count Exceeded"))
Because of the way EnumField snapshots the registry at construction time,
TestReport.get_status_display will not be aware of MCE's display name.
As a result, Zeus statuses (MCE and MSE) display as "MCE"/"MSE" instead of their full name in the tests table on the submission report page.
Moreover, in the header of submission report page, and on the my submissions page, all statuses (except 'OK', 'ERR' and '?', as those are defined in contests/models.py) show as their acronym (eg. "WA") instead of their full name (i.e. "Wrong Answer")
This may have something to do withSIO-1600
# ...
submission_statuses.register('WA', _("Wrong Answer"))
class TestReport(models.Model):
status = EnumField(submission_statuses)
# ...
# in different file
submission_statuses.register('MCE', _("Message Count Exceeded"))
Because of the way EnumField snapshots the registry at construction time,
TestReport.get_status_display will not be aware of MCE's display name.
As a result, Zeus statuses (MCE and MSE) display as "MCE"/"MSE" instead of their full name in the tests table on the submission report page.
Moreover, in the header of submission report page, and on the my submissions page, all statuses (except 'OK', 'ERR' and '?', as those are defined in contests/models.py) show as their acronym (eg. "WA") instead of their full name (i.e. "Wrong Answer")
This may have something to do with
Issue Links
- relates to
-
SIO-2132 Change submission messages to be more readable
Activity
- All
- Comments
- History
- Activity
- Transitions
- Commits
Connect your code to JIRA
Link every code change to JIRA just by adding an issue keys in commit messages. Bridge the gap back to your source and know which changes fixed which JIRA issues.Git & Mercurial in the cloud
Collaborate across unlimited private code repositories.
Git behind the firewall
Manage and collaborate on Git repositories behind a firewall.
Browse and search code
Browse, search, and track source code repositories.