The SIO2 project
  1. The SIO2 project
  2. SIO-1890

Exclusiveness configs - allow adding many time periods

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:
      None

      Issue Links

        Activity

        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 7
        https://gerrit.sio2project.mimuw.edu.pl/3137

        (SIO-1890) Allow multiple exclusiveness configs

        This change should allow to define more than one exclusiveness config.
        Also displays a warning when a round is set not to be exclusive.

        It would be safer to have a confirmation dialog instead of a warning, but
        since exclusiveness configs covering every round can change both with
        changes to rounds and configs themselves, Django admin makes it
        difficult (you can't easily cross-validate different formsets, and in
        save_formset it's too late to raise validation errors).
        This could be done in javascript, but it would be impossible to test it
        and as such it could be unsafe to rely on it working properly.

        Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef
        TODO: tests
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 7 https://gerrit.sio2project.mimuw.edu.pl/3137 ( SIO-1890 ) Allow multiple exclusiveness configs This change should allow to define more than one exclusiveness config. Also displays a warning when a round is set not to be exclusive. It would be safer to have a confirmation dialog instead of a warning, but since exclusiveness configs covering every round can change both with changes to rounds and configs themselves, Django admin makes it difficult (you can't easily cross-validate different formsets, and in save_formset it's too late to raise validation errors). This could be done in javascript, but it would be impossible to test it and as such it could be unsafe to rely on it working properly. Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef TODO: tests
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 8
        https://gerrit.sio2project.mimuw.edu.pl/3137

        (SIO-1890) Allow multiple exclusiveness configs

        This change should allow to define more than one exclusiveness config.
        Also displays a warning when a round is set not to be exclusive.

        It would be safer to have a confirmation dialog instead of a warning but
        since exclusiveness configs covering every round can change both with
        changes to rounds and configs themselves, Django admin makes it
        difficult (you can't easily cross-validate different formsets, and in
        save_formset it's too late to raise validation errors).
        This could be done in javascript, but it would be impossible to test it
        and as such it could be unsafe to rely on it working properly.

        Added the following tests testing this functionality:
        - oioioi/contestexcl/tests.py
          - class TestExclusiveContestsAdmin:
            - test_exclusiveness_multiple_on
            - test_exclusiveness_multiple_off
            - test_exclusiveness_multiple_mixed_on_off
            - test_exclusiveness_round_warning
            - test_exclusiveness_round_warning_multiple_configs
          - class TestExclusiveContests:
            - test_exclusive_contest_multiple_configs

        And also refactored other contestexcl tests to avoid repeating code

        Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 8 https://gerrit.sio2project.mimuw.edu.pl/3137 ( SIO-1890 ) Allow multiple exclusiveness configs This change should allow to define more than one exclusiveness config. Also displays a warning when a round is set not to be exclusive. It would be safer to have a confirmation dialog instead of a warning but since exclusiveness configs covering every round can change both with changes to rounds and configs themselves, Django admin makes it difficult (you can't easily cross-validate different formsets, and in save_formset it's too late to raise validation errors). This could be done in javascript, but it would be impossible to test it and as such it could be unsafe to rely on it working properly. Added the following tests testing this functionality: - oioioi/contestexcl/tests.py   - class TestExclusiveContestsAdmin:     - test_exclusiveness_multiple_on     - test_exclusiveness_multiple_off     - test_exclusiveness_multiple_mixed_on_off     - test_exclusiveness_round_warning     - test_exclusiveness_round_warning_multiple_configs   - class TestExclusiveContests:     - test_exclusive_contest_multiple_configs And also refactored other contestexcl tests to avoid repeating code Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 9
        https://gerrit.sio2project.mimuw.edu.pl/3137

        (SIO-1890) Allow multiple exclusiveness configs

        This change should allow to define more than one exclusiveness config.
        Also displays a warning when a round is set not to be exclusive.

        It would be safer to have a confirmation dialog instead of a warning but
        since exclusiveness configs covering every round can change both with
        changes to rounds and configs themselves, Django admin makes it
        difficult (you can't easily cross-validate different formsets, and in
        save_formset it's too late to raise validation errors).
        This could be done in javascript, but it would be impossible to test it
        and as such it could be unsafe to rely on it working properly.

        Added the following tests testing this functionality:
        - oioioi/contestexcl/tests.py
          - class TestExclusiveContestsAdmin:
            - test_exclusiveness_multiple_on
            - test_exclusiveness_multiple_off
            - test_exclusiveness_multiple_mixed_on_off
            - test_exclusiveness_round_warning
            - test_exclusiveness_round_warning_multiple_configs
          - class TestExclusiveContests:
            - test_exclusive_contest_multiple_configs

        And also refactored other contestexcl tests to avoid repeating code

        Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 9 https://gerrit.sio2project.mimuw.edu.pl/3137 ( SIO-1890 ) Allow multiple exclusiveness configs This change should allow to define more than one exclusiveness config. Also displays a warning when a round is set not to be exclusive. It would be safer to have a confirmation dialog instead of a warning but since exclusiveness configs covering every round can change both with changes to rounds and configs themselves, Django admin makes it difficult (you can't easily cross-validate different formsets, and in save_formset it's too late to raise validation errors). This could be done in javascript, but it would be impossible to test it and as such it could be unsafe to rely on it working properly. Added the following tests testing this functionality: - oioioi/contestexcl/tests.py   - class TestExclusiveContestsAdmin:     - test_exclusiveness_multiple_on     - test_exclusiveness_multiple_off     - test_exclusiveness_multiple_mixed_on_off     - test_exclusiveness_round_warning     - test_exclusiveness_round_warning_multiple_configs   - class TestExclusiveContests:     - test_exclusive_contest_multiple_configs And also refactored other contestexcl tests to avoid repeating code Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 10
        https://gerrit.sio2project.mimuw.edu.pl/3137

        (SIO-1890) Allow multiple exclusiveness configs

        This change should allow to define more than one exclusiveness config.
        Also displays a warning when a round is set not to be exclusive.

        It would be safer to have a confirmation dialog instead of a warning but
        since exclusiveness configs covering every round can change both with
        changes to rounds and configs themselves, Django admin makes it
        difficult (you can't easily cross-validate different formsets, and in
        save_formset it's too late to raise validation errors).
        This could be done in javascript, but it would be impossible to test it
        and as such it could be unsafe to rely on it working properly.

        Added the following tests testing this functionality:
        - oioioi/contestexcl/tests.py
          - class TestExclusiveContestsAdmin:
            - test_exclusiveness_multiple_on
            - test_exclusiveness_multiple_off
            - test_exclusiveness_multiple_mixed_on_off
            - test_exclusiveness_round_warning
            - test_exclusiveness_round_warning_multiple_configs
          - class TestExclusiveContests:
            - test_exclusive_contest_multiple_configs

        And also refactored other contestexcl tests to avoid repeating code

        Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 10 https://gerrit.sio2project.mimuw.edu.pl/3137 ( SIO-1890 ) Allow multiple exclusiveness configs This change should allow to define more than one exclusiveness config. Also displays a warning when a round is set not to be exclusive. It would be safer to have a confirmation dialog instead of a warning but since exclusiveness configs covering every round can change both with changes to rounds and configs themselves, Django admin makes it difficult (you can't easily cross-validate different formsets, and in save_formset it's too late to raise validation errors). This could be done in javascript, but it would be impossible to test it and as such it could be unsafe to rely on it working properly. Added the following tests testing this functionality: - oioioi/contestexcl/tests.py   - class TestExclusiveContestsAdmin:     - test_exclusiveness_multiple_on     - test_exclusiveness_multiple_off     - test_exclusiveness_multiple_mixed_on_off     - test_exclusiveness_round_warning     - test_exclusiveness_round_warning_multiple_configs   - class TestExclusiveContests:     - test_exclusive_contest_multiple_configs And also refactored other contestexcl tests to avoid repeating code Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 11
        https://gerrit.sio2project.mimuw.edu.pl/3137

        (SIO-1890) Allow multiple exclusiveness configs

        This change should allow to define more than one exclusiveness config.
        Also displays a warning when a round is set not to be exclusive.

        It would be safer to have a confirmation dialog instead of a warning but
        since exclusiveness configs covering every round can change both with
        changes to rounds and configs themselves, Django admin makes it
        difficult (you can't easily cross-validate different formsets, and in
        save_formset it's too late to raise validation errors).
        This could be done in javascript, but it would be impossible to test it
        and as such it could be unsafe to rely on it working properly.

        Added the following tests testing this functionality:
        - oioioi/contestexcl/tests.py
          - class TestExclusiveContestsAdmin:
            - test_exclusiveness_multiple_on
            - test_exclusiveness_multiple_off
            - test_exclusiveness_multiple_mixed_on_off
            - test_exclusiveness_round_warning
            - test_exclusiveness_round_warning_multiple_configs
          - class TestExclusiveContests:
            - test_exclusive_contest_multiple_configs

        And also refactored other contestexcl tests to avoid repeating code

        Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I493c27f3edfde16fdd80781819e7dcfc06dc51ef, patchset 11 https://gerrit.sio2project.mimuw.edu.pl/3137 ( SIO-1890 ) Allow multiple exclusiveness configs This change should allow to define more than one exclusiveness config. Also displays a warning when a round is set not to be exclusive. It would be safer to have a confirmation dialog instead of a warning but since exclusiveness configs covering every round can change both with changes to rounds and configs themselves, Django admin makes it difficult (you can't easily cross-validate different formsets, and in save_formset it's too late to raise validation errors). This could be done in javascript, but it would be impossible to test it and as such it could be unsafe to rely on it working properly. Added the following tests testing this functionality: - oioioi/contestexcl/tests.py   - class TestExclusiveContestsAdmin:     - test_exclusiveness_multiple_on     - test_exclusiveness_multiple_off     - test_exclusiveness_multiple_mixed_on_off     - test_exclusiveness_round_warning     - test_exclusiveness_round_warning_multiple_configs   - class TestExclusiveContests:     - test_exclusive_contest_multiple_configs And also refactored other contestexcl tests to avoid repeating code Change-Id: I493c27f3edfde16fdd80781819e7dcfc06dc51ef

          People

          • Assignee:
            Szymon AcedaƄski
            Reporter:
            Artur Jamro
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: