-
Notifications
You must be signed in to change notification settings - Fork 375
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
Test Cases Improvements #2298
Test Cases Improvements #2298
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2298 +/- ##
==========================================
- Coverage 46.75% 46.41% -0.34%
==========================================
Files 249 250 +1
Lines 13232 13365 +133
==========================================
+ Hits 6186 6203 +17
- Misses 7046 7162 +116 ☔ View full report in Codecov by Sentry. |
Thanks for the contribution! Could you please split up the "test case" / "problem" / "general" features in separate PRs, so that they may be reviewed and merged independently? |
Sure! Which way would be the best for you: incremental PRs or independent PRs? Thanks again and have a nice holidays 😊 |
Independent PRs would be best. Some of these changes I think we could ~straightforwardly merge:
For the others:
I think this shouldn't live in the site UI. The YAML format we use allows embedding Python code that is evaluated to construct YAML nodes (this is useful for implementing problems with random test case orders, for instance), and such problems inherently can't be represented in the site UI. It may make sense as an
I like this idea, but maybe we could make the UI a little simpler: have a single checkbox be "Infer test cases from zip", and if checked it blows away any existing test cases and repopulates them from the zip. Bonus points if it keeps any assigned point/pretest/etc. values from a preceding upload for cases named the same. |
Hi there, I completed the independent PRs:
I keep this PR closed, as it became outdated. Kind regards, |
Dear DMOJ team,
I developed the following (in my opinion) improvements:
Test cases (edit form):
Problem (edit form and statement):
When enabled, the current test-cases will be displayed after the problem statement (the content of the in/out files within the zip file will be used). This data is being stored into the database, in the problem_data model:
Including the test-cases input and output manually in the problem statement is still possible, just non-enabling this new option, but this option is useful to avoid inconsistencies between the stored test files and the displayed data.
This data will be displayed at the end of the problem statement, just before the license:
General:
Social and comments enabled (by default):
Social and comments disabled: