[SIO-2521] Submission confirmation e-mail should contain the SIO login Created: 2022-12-7  Updated: 2022-12-7

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Jakub Radoszewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
The current e-mail sent by SIO looks as follows. Please add user login. I got a complaint where a contestant mixed up their ids and there was no way of checking this natural information in the e-mail.

Szanowny Użytkowniku,

potwierdzamy otrzymanie Twojego zgłoszenia w konkursie
XXX Olimpiada Informatyczna – I etap:

Imię i nazwisko: Stanisław Pawelec

ID konkursu: oi30-1
Zadanie: ply
ID zgłoszenia: 556866
Nr zgłoszenia do tego zadania: 1
Data zgłoszenia: 2022-11-18 19:54:56
Rozmiar kodu źródłowego: 1262 bajty


Zachowaj tę wiadomość i przesłany kod. Poniżej znajduje się kryptograficzne
potwierdzenie, które wraz z odpowiadającym mu kodem źródłowym stanowi
dowód rejestracji w systemie Twojego zgłoszenia.

Organizatorzy


--- BEGIN PROOF DATA ---
.eJxFjstuwyAQRf-Fbe2K4Q3fkb3F4HGDGkNk7EVT5d-D20pd3secO9-s1WNLNF1ju7LAX
JTABSovJE-otEUe0SEtlNDgrJwniBYpoliSXKA3E4BC4RcuwSMb2H2reKN1yqXtsXR0nll
QVviBHY22H2lBgf2vlrhSH7_fvvp9qmWntndds-QjdGuO-5kLLsQIMIK7gAtaBW3e1YmSb
5wHztnvwh_tQR9xo89utgPX3FquZSqVBRjY-YPWxhnT0_zodRBGPF8zxk_Q:1ow6Vs:J6h
teuwrQQltFID2-zdE8ypNF34
--- END PROOF DATA ---




[SIO-2520] Error 403 when clicking on a question's author in SIO2 Created: 2022-11-1  Updated: 2022-11-1

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jakub Radoszewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
I am a contest admin but not SIO2 admin in contest https://sio2.mimuw.edu.pl/c/oi30-1/. For each question asked by the contestants, I have 3 clickable links: author, date and question topic. The first one (e.g. https://sio2.mimuw.edu.pl/c/oi30-1/u/74551) produces error 403 for me. I presume that this is to show me that I don't have permissions to view the user data (right?), but my user feeling is unpleasant.




[SIO-2519] Failing nightly tests on GitHub Actions Created: 2022-10-3  Updated: 2022-10-3  Resolved: 2022-10-3

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Bug Priority: Major
Reporter: Aleksander Tudruj Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None


 Description   
Nightly and integration tests fail on GitHub Actions (2.10.2022)

 Comments   
Comment by Aleksander Tudruj [ 2022-10-3 ]
https://github.com/sio2project/oioioi/pull/90
Comment by Aleksander Tudruj [ 2022-10-3 ]
https://github.com/sio2project/oioioi/pull/90




[SIO-2518] Test names containing other symbols Created: 2022-09-29  Updated: 2022-09-29

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Jakub Radoszewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
I would like to allow capital letters [A-Z] and delimiting symbols like _- in test names. E.g.:
max7sorted_sequence.in




[SIO-2517] Dead link on github Created: 2022-09-29  Updated: 2022-09-29

Status: New
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jakub Radoszewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Link https://github.com/sio2project/task-package-examples/blob/master/tutorial/kwa/doc/kwazad.pdf gives error 404 on https://github.com/sio2project/oioioi/wiki/%5BPL%5D-1.-Podstawowa-paczka




[SIO-2516] Link to problem package structure should be accessible via Szkopul Created: 2022-09-29  Updated: 2022-09-29

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jakub Radoszewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
This guy: https://github.com/sio2project/oioioi/wiki should be linked somewhere. Perhaps here: https://szkopul.edu.pl/c/wprawki-wp-2022/admin/contests/probleminstance/




[SIO-2515] Problem package without tests in in/ fails Created: 2022-09-29  Updated: 2022-09-29

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jakub Radoszewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: File max.tgz    

 Description   
A task without tests generated in in/ does not upload to Szkopul. It can be the case that all tests are automjatically generated, though. So it should be uploaded afaik.




[SIO-2514] SameSite atribute in language preference cookie Created: 2022-06-6  Updated: 2022-06-6

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 3
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Kacper Lewandowski Assignee: Kacper Lewandowski
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PNG File Screenshot from 2022-06-01 12-08-52.png    

 Description   
Firefox warns:

Cookie “lang” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite




[SIO-2513] Export reports for all submissions Created: 2022-05-29  Updated: 2022-05-30  Due: 2022-12-1

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Bartosz Kostka Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: pa


 Description   
For resolver purposes the following data are needed in json format for every submission(report):
- time of submission
- submitter data (probably login or/and id)
- task id
- submission score
- id of first test not marked as "OK"
( optionally - list of tests and verdicts )

 Comments   
Comment by Tomek Waleń [ 2022-05-30 ]
Do you think about additional command for exporting reports (i.e. as CSV or collection of JSONs) or something in web-interface (like current export of submissions)?
Comment by Paweł Dietrich [ 2022-05-30 ]
I asked Bartek if he would prefer to have it generated manually or available on some endpoint and he responded that "it is fine to be manually extracted, but an endpoint would be nice".
I think in terms of endpoints an API endpoint would be great; in terms of manual export button "Download summary" in django-admin submissions view is proper place for it. Also a ./manage.py command can be handy.
(When I think about it: with any two of those places, the third one can be achieved with little work.)
I am not convinced yet whether it should be a global feature of PA only.





[SIO-2512] Allow configuring who can rejudge Created: 2022-05-23  Updated: 2022-05-23

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Paweł Dietrich Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Currently teachers are able to make mass rejudges (via selecting submissions in submissions tab). In case of small rejudges (<100submissions) this is not a problem. When bigger rejudges occur, filetracker2 dies due to big number of requests from Workers.

In perfect scenario we would replace the inefficient storage backend, but it would require a bit of work. Current workaround is to decrease CONCURENCY in settings.py, but it might be a nice feature to be able to control access to this (mass rejudge) feature.

One way I was thinking to implement it is adding a predicate can_mass_rejudge w ContestController getting a request and rejudge order. One can override its behavior per ContestController basis.






[SIO-2511] Maybe use default django 404 page Created: 2022-05-9  Updated: 2022-05-9

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Andrzej Radzimiński Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
We are still using custom 404 page (see `handler404`), due to Django security issues, but it seems, that they, are not longer present in new versions.

Check if 404 page provided by Django has no known security issue, and see how it looks. If there are no reasons not to, change 404 page to be the one provided by Django.




[SIO-2510] Add .vscode to .gitignore Created: 2022-05-9  Updated: 2022-09-7  Resolved: 2022-09-7

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Andrzej Radzimiński Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None


 Description   
Add .vscode to .gitignore similarly to .idea.

 Comments   
Comment by Aleksander Tudruj [ 2022-09-7 ]
Resolved in SIO-2489




[SIO-2509] random error on registration Created: 2022-05-4  Updated: 2022-05-18  Resolved: 2022-05-18

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: Current Version

Type: Bug Priority: Major
Reporter: Aleksander Tudruj Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File Screenshot_from_2022-04-21_13-00-20.png    

 Description   
In some rare occasions registration fails with 500 error (see attachment).

Go to szkopul:
1. Login
2. Logout
3. click "login"
4. enter fake data (non-existent user)
5. click "create new account"

 Comments   
Comment by Tomek Waleń [ 2022-05-4 ]
Possible solution:

diff --git a/oioioi/base/views.py b/oioioi/base/views.py
index d5466e29..71819b6f 100644
--- a/oioioi/base/views.py
+++ b/oioioi/base/views.py
@@ -99,6 +99,8 @@ def adjust_preferences_factory_fields(request):
     choices_not_translated = [("", "None")] + list(settings.LANGUAGES)
     choices = [(k, _(v)) for k, v in choices_not_translated]
 
+ ensure_preferences_exist_for_user(request)
+
     PreferencesFactory.add_field(
         "preferred_language",
         ChoiceField,
Comment by Andrzej Radzimiński [ 2022-05-9 ]
Reason:
`adjust_preferences_factory_fields` adds field, that uses `user` to get default view. Then `RegistrationView` generates form using `PreferenceFactory` with `user` set to `None`.

Possible fix:
Lambda added in adjust_preferences_factory_fields can test is User is None. This fixes the problem, but `RegistrationView` now may or may not has preferences fields. Additionally preferences fields visible in registration form have will have no effect. To fix this `adjust_preferences_factory_fields`+`handle_new_preference_fields` logic should be added to `RegistrationView`.

`Adjust_preferences_factory_fields` could be called once in same way `_maybe_add_field` is called, but I'm not sure if it will always work.




[SIO-2508] Glitches during szkopuł deployment Created: 2022-05-3  Updated: 2022-05-3

Status: New
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
- hudson job for rebase-szkopuł is still failing due to permission problem

https://hudson.sio2project.mimuw.edu.pl/job/szkopul-rebase/471/console

To ssh://hudson@ripper.dasie.mimuw.edu.pl:29418/szkopul
 ! [remote rejected] master -> master (you are not allowed to upload merges)
error: failed to push some refs to 'ssh://hudson@ripper.dasie.mimuw.edu.pl:29418/szkopul&#39;

(workaround: rebase locally)

- in deployment scripts (ssh://gerrit.sio2project.mimuw.edu.pl:29418/szkopul branch deployment)

- venv is created twice (both times with python3), only one venv should be created and used




[SIO-2507] JavaScript error when visiting web-page Created: 2022-04-25  Updated: 2022-05-9  Resolved: 2022-05-9

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Aleksander Tudruj Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None


 Description   
When opening oioioi the "Cannot read property 'addEventListener' of null" appears in console. Due to this, Cypress tests cannot be properly run.




[SIO-2506] Improve PreferenceFactory Created: 2022-04-21  Updated: 2022-04-25

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Andrzej Radzimiński Assignee: Joanna Wojciechowska
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Following changes added `PreferenceFactory` class that is used to generate preference forms, currently used to generate edit profile view form:
https://jira.sio2project.mimuw.edu.pl/browse/SIO-1624
https://gerrit.sio2project.mimuw.edu.pl/#/c/2291/

Currently only place where `add_field` method is used is inside:
1. base/forms.py > _maybe_add_field
2. base/views.py > adjust_preferences_factory_fields
3. tests

Two improvements have to be made:
1. `_maybe_add_field` function takes label strings from settings, where they are translated. Functionality should be added to automatically translate labels in `PreferenceFactory` and move translation logic out of settings. It should be considered if label names shouldn't be moved from settings entirely.
Alternatively field labes can be made into positional parameter, and translation will occur in caller.

2. With addition of `UserPreferences` model `PreferenceFactory` needs functionality to automatically add fields from `UserPreferences`, similarly to how forms can be automatically generated from models.
It is currently made manually inside `adjust_preferences_factory_fields` which can badly impact future refactor/updates.




[SIO-2505] Default dark theme in admin panels Created: 2022-04-13  Updated: 2022-04-14

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Aleksander Tudruj Assignee: Joanna Wojciechowska
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Every page at /admin/ is dark themed after upgrading to Django 3.2.

https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#theming-support


 Comments   
Comment by Tomek Waleń [ 2022-04-14 ]
There are 2 packages that disable this behaviour:
* https://github.com/frnhr/django-light
* https://github.com/frnhr/django-light
Comment by Joanna Wojciechowska [ 2022-04-14 ]
I found the approach from this site:
https://stackoverflow.com/questions/67135053/can-someone-explain-to-my-why-my-django-admin-theme-is-dark

easier, so I implemented this solution. If you still think that using the package you mentioned better, I can use your solution.




[SIO-2504] Misaligned checkboxes in every pupils form Created: 2022-04-12  Updated: 2022-04-22

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Mieszko Grodzicki Assignee: Mieszko Grodzicki
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PNG File Zrzut ekranu z 2022-04-12 21-50-50.png    

 Description   
See attached screenshot

 Comments   
Comment by Mieszko Grodzicki [ 2022-04-22 ]
https://github.com/sio2project/oioioi/pull/61




[SIO-2503] ProblemInstance settings with default values inherited from the Contest. Created: 2022-04-12  Updated: 2022-04-12

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Mieszko Grodzicki Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PDF File ustawienia_dziedziczone.pdf    

 Description   
Description as attachment.




[SIO-2502] Github actions - translations Created: 2022-04-11  Updated: 2022-05-27  Resolved: 2022-05-27

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: Current Version

Type: New Feature Priority: Major
Reporter: Tomek Waleń Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None


 Description   
Migrate hudson actions for managing translations to Github:

* https://hudson.sio2project.mimuw.edu.pl/job/oioioi-translations-download/
* https://hudson.sio2project.mimuw.edu.pl/job/oioioi-translations-upload/

Review other jobs from Hudson, in particular verify how hard is to migrate:
* https://hudson.sio2project.mimuw.edu.pl/job/szkopul-rebase/




[SIO-2501] Auto-created primary key used when not defining a primary key type warning Created: 2022-04-11  Updated: 2022-04-14  Resolved: 2022-04-14

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Joanna Wojciechowska Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None


 Description   
Because of the change in Django 3.2, when defining a model, if no field in a model is defined with primary_key=True an implicit primary key is added. The type of this implicit primary key can now be controlled via the DEFAULT_AUTO_FIELD setting and AppConfig.default_auto_field attribute. No more needing to override primary keys in all models.

To avoid unwanted migrations in the future, configure it on a per-app basis by adding default_auto_field = 'django.db.models.AutoField' in all AppConfig classes.

 Comments   
Comment by Gerrit Gerrit [ 2022-04-11 ]
Change oioioi~master~Ibc19cc9a2db265391dae3646c6ec82b48356e246, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3824

SIO-2501 Auto-created primary key used when not defining a primary key type warningi Attribute default_auto_field = 'django.db.models.AutoField' to point to a subclass of AutoField added in all classes that inherit from AppConfig.

Change-Id: Ibc19cc9a2db265391dae3646c6ec82b48356e246
Comment by Gerrit Gerrit [ 2022-04-11 ]
Change oioioi~master~Ibc19cc9a2db265391dae3646c6ec82b48356e246, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3824

SIO-2501 Auto-created primary key used when not defining a primary key type warningi Attribute default_auto_field = 'django.db.models.AutoField' to point to a subclass of AutoField added in all classes that inherit from AppConfig.

Change-Id: Ibc19cc9a2db265391dae3646c6ec82b48356e246
Comment by Gerrit Gerrit [ 2022-04-11 ]
Change oioioi~master~Ibc19cc9a2db265391dae3646c6ec82b48356e246, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3824

SIO-2501 Auto-created primary key used when not defining a primary key type warningi Attribute default_auto_field = 'django.db.models.AutoField' to point to a subclass of AutoField added in all classes that inherit from AppConfig.

Change-Id: Ibc19cc9a2db265391dae3646c6ec82b48356e246




[SIO-2500] Javascript translations raise System Error Created: 2022-04-11  Updated: 2022-04-11

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Accessing page /jsi18n/ tiggers System error:

Internal Server Error: /jsi18n/
Traceback (most recent call last):
  File "/home/oioioi/.local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/home/oioioi/.local/lib/python3.7/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, callback_args, **callback_kwargs)
  File "/usr/lib/python3.7/contextlib.py", line 74, in inner
    return func(args, kwds)
  File "/home/oioioi/.local/lib/python3.7/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, kwargs)
  File "/home/oioioi/.local/lib/python3.7/site-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/oioioi/.local/lib/python3.7/site-packages/django/views/i18n.py", line 213, in get
    paths = self.get_paths(packages) if packages else None
  File "/home/oioioi/.local/lib/python3.7/site-packages/django/views/i18n.py", line 224, in get_paths
    'Invalid package(s) provided to JavaScriptCatalog: %s' % ','.join(excluded)
ValueError: Invalid package(s) provided to JavaScriptCatalog: oioioi._locale
[11/Apr/2022 10:32:34] "GET /jsi18n/ HTTP/1.1" 500 114882




[SIO-2499] Running `run_static.sh` results in black's error Created: 2022-04-4  Updated: 2022-04-4  Resolved: 2022-04-4

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Bug Priority: Major
Reporter: Aleksander Tudruj Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Aleksander Tudruj

 Description   
When running `run_static.sh` black results with error due to `click` library changes. New version of black treats py27 as deprecated, so it also needs to be updated.

 Comments   
Comment by Gerrit Gerrit [ 2022-04-4 ]
Change oioioi~master~I2537c77f8689016206de85c5b6631c097b8db42c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3821

(SIO-2499) Running 'run_static.sh' results in black's error

Changes:
    updated black version in requirements file
    updated python version when running black check

Change-Id: I2537c77f8689016206de85c5b6631c097b8db42c




[SIO-2498] Edycja profilu nie wymaga podania hasła Created: 2022-04-2  Updated: 2022-04-2

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Kacper Lewandowski Assignee: Kacper Lewandowski
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Dokonanie edycji proflu (w tym adresu email) nie wymaga ponownego podania hasła.
Należy dodać dodatkową autoryzację.




[SIO-2497] api/docs not working Created: 2022-03-29  Updated: 2022-04-6  Resolved: 2022-04-6

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None


 Description   
Page /api/docs page returns error 500:

AttributeError at /api/docs/

'AutoSchema' object has no attribute 'get_link'

Request Method: GET
Request URL: http://localhost:8000/api/docs/
Django Version: 3.1.14
Exception Type: AttributeError
Exception Value:

'AutoSchema' object has no attribute 'get_link'

Exception Location: /home/oioioi/.local/lib/python3.7/site-packages/rest_framework/schemas/coreapi.py, line 143, in get_links
Python Executable: /usr/bin/python3
Python Version: 3.7.3
Python Path:

['/sio2/deployment',
 '/sio2/deployment',
 '/sio2/deployment',
 '/sio2/deployment',
 '/sio2/deployment',
 '/usr/lib/python37.zip',
 '/usr/lib/python3.7',
 '/usr/lib/python3.7/lib-dynload',
 '/home/oioioi/.local/lib/python3.7/site-packages',
 '/sio2/oioioi',
 '/usr/local/lib/python3.7/dist-packages',
 '/usr/lib/python3/dist-packages']

Server time: Tue, 29 Mar 2022 18:54:32 +0000



Some background:
https://stackoverflow.com/questions/57654243/how-to-fix-attributeerror-at-api-doc-autoschema-object-has-no-attribute-ge

Fix:
---
diff --git a/oioioi/default_settings.py b/oioioi/default_settings.py
index 9f26d52c..35ecf6a7 100755
--- a/oioioi/default_settings.py
+++ b/oioioi/default_settings.py
@@ -670,7 +670,8 @@ REST_FRAMEWORK = {
     'DEFAULT_AUTHENTICATION_CLASSES': (
         'rest_framework.authentication.TokenAuthentication',
         'rest_framework.authentication.SessionAuthentication',
- )
+ ),
+ 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
 }
 
 ARCHIVE_USERCONTESTS = False
---

Also regression tests should be added.

 Comments   
Comment by Tomek Waleń [ 2022-04-6 ]
handled in https://github.com/sio2project/oioioi/pull/55




[SIO-2496] add missing migrations Created: 2022-03-28  Updated: 2022-03-28  Resolved: 2022-03-28

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None


 Description   
clean installation (i.e. from docker) has some pending migrations
(1 in django-rest-framework, 1 in django-simple-captcha, 1 in oioioi/problems).

solution:
- upgrade django-rest-framework
- upgrade django-simple-captcha
- add missing migration to oioioi/problems

 Comments   
Comment by Gerrit Gerrit [ 2022-03-28 ]
Change oioioi~master~I318b6bd12770c8193800a83a949de33e7afdae94, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3818

SIO-2496 fixing issues with missing migrations

Change-Id: I318b6bd12770c8193800a83a949de33e7afdae94




[SIO-2495] Dodanie preferencji użytkownika Created: 2022-03-28  Updated: 2022-04-13  Resolved: 2022-04-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Improvement Priority: Major
Reporter: Andrzej Radzimiński Assignee: Andrzej Radzimiński
Resolution: Fixed Votes: 0
Labels: None


 Description   
Aktualnie nie istnieje możliwość prostego dodawania ustawień/preferencji użytkownika. Należy więc dodać model preferencji wraz form-ą ustawiającą je lub zaimplementować je w inny sposób.
Ostatecznie dodanie nowej preferencji użytkownika powinno sprowadzać się do kilku linii kodu, podobnie jak przy ustawieniach contest-u.

 Comments   
Comment by Gerrit Gerrit [ 2022-04-3 ]
Change oioioi~master~Ice93e01b4810b0a1c4c9d55404af145b9402bca3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3820

SIO-2495 Added user preferences

Change-Id: Ice93e01b4810b0a1c4c9d55404af145b9402bca3
Comment by Gerrit Gerrit [ 2022-04-4 ]
Change oioioi~master~Ice93e01b4810b0a1c4c9d55404af145b9402bca3, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3820

SIO-2495 Added user preferences

Change-Id: Ice93e01b4810b0a1c4c9d55404af145b9402bca3
Comment by Gerrit Gerrit [ 2022-04-4 ]
Change oioioi~master~Ice93e01b4810b0a1c4c9d55404af145b9402bca3, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3820

SIO-2495 Added user preferences

Change-Id: Ice93e01b4810b0a1c4c9d55404af145b9402bca3
Comment by Gerrit Gerrit [ 2022-04-4 ]
Change oioioi~master~Ice93e01b4810b0a1c4c9d55404af145b9402bca3, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3820

SIO-2495 Added user preferences

Change-Id: Ice93e01b4810b0a1c4c9d55404af145b9402bca3
Comment by Gerrit Gerrit [ 2022-04-4 ]
Change oioioi~master~Ice93e01b4810b0a1c4c9d55404af145b9402bca3, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3820

SIO-2495 Added user preferences

Change-Id: Ice93e01b4810b0a1c4c9d55404af145b9402bca3
Comment by Gerrit Gerrit [ 2022-04-4 ]
Change oioioi~master~Ice93e01b4810b0a1c4c9d55404af145b9402bca3, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3820

SIO-2495 Added user preferences

Change-Id: Ice93e01b4810b0a1c4c9d55404af145b9402bca3
Comment by Gerrit Gerrit [ 2022-04-4 ]
Change oioioi~master~Ice93e01b4810b0a1c4c9d55404af145b9402bca3, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3820

SIO-2495 Added user preferences

Change-Id: Ice93e01b4810b0a1c4c9d55404af145b9402bca3
Comment by Gerrit Gerrit [ 2022-04-6 ]
Change oioioi~master~Ice93e01b4810b0a1c4c9d55404af145b9402bca3, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3820

SIO-2495 Added user preferences

Change-Id: Ice93e01b4810b0a1c4c9d55404af145b9402bca3




[SIO-2494] upgrade pytest Created: 2022-03-28  Updated: 2022-04-25

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Currently code is using pytest version 4.6.11 (released on 2020-06-04).

Current version is pytest 7.1.2 (released on 2022-04-23).

It seems that there are no reasons why we should use 4.x pytest version,
so we should use latest version of pytest in setup.py.

Some changes in tests API might be required:
https://docs.pytest.org/en/latest/backwards-compatibility.html




[SIO-2493] Solutions are not scored after clean SIO initialization Created: 2022-03-23  Updated: 2022-04-11

Status: Open
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Aleksander Tudruj Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PNG File screencapture-localhost-8000-c-hello-contest-s-4-2022-03-30-19_00_59.png     PNG File Screenshot from 2022-03-30 18-58-51.png     PNG File Screenshot from 2022-03-30 18-58-57.png     PNG File Screenshot from 2022-03-30 19-03-06.png    

 Description   
After clean initialization of SIO solutions are not scored due to the lack of a few directories in 'web' container.

They can be easily crated using
```
mkdir -p media/links/submissions
mkdir -p media/links/problems
```
using container's bash (at /sio2/deployment), but this process looks like it could be solved during Docker initialization (in Dockerfile).


Update: It seems that the problem cannot be solved that easily. Creating the directories does not change anything. The first submission is never successful, but every other is.

This is the log generated at the page.

Traceback (most recent call last):
  File "/sio2/oioioi/oioioi/evalmgr/tasks.py", line 344, in evalmgr_job
    % (env['error']['message'], env['error']['traceback'])
RuntimeError: Error from workers:
Some tasks in a group failed.

Exception: received from worker237bb8b1bdbe@172.18.0.5:55778: exception: <twisted.python.failure.Failure exceptions.RuntimeError: Binding not existing location>
Remote traceback:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/_threads/_threadworker.py", line 46, in work
    task()
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/_threads/_team.py", line 190, in doWork
    task()
--- <exception caught here> ---
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/protocol/worker.py", line 14, in _runner_wrap
    renv = runner.run(env)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/workers/runner.py", line 75, in run
    environ = first_entry_point('sio.jobs', environ['job_type'])(environ)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/job.py", line 14, in run
    environ = compiler(environ)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/gcc.py", line 35, in run_gplusplus4_8_2_cpp11
    return CPPCompiler.gcc_4_8_2_cpp11().compile(environ)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/gcc.py", line 20, in gcc_4_8_2_cpp11
    obj = cls('gcc.4_8_2')
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/common.py", line 69, in __init__
    self.executor = PRootExecutor('compiler-' + self.sandbox)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/workers/executors.py", line 782, in __init__
    self._proot_options()
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/workers/executors.py", line 847, in _proot_options
    self._bind(self.chroot.path, force=True)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/workers/executors.py", line 810, in _bind
    raise RuntimeError("Binding not existing location")
exceptions.RuntimeError: Binding not existing location

TB:
Traceback (most recent call last):
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1116, in _cbDeferred
    self.callback(self.resultList)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/defer.py", line 460, in callback
    self._startRunCallbacks(result)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/sioworkersd/taskmanager.py", line 264, in _collect
    raise MultiException("Some tasks in a group failed.", failed)
sio.sioworkersd.taskmanager.MultiException: Some tasks in a group failed.

Exception: received from worker237bb8b1bdbe@172.18.0.5:55778: exception: <twisted.python.failure.Failure exceptions.RuntimeError: Binding not existing location>
Remote traceback:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/_threads/_threadworker.py", line 46, in work
    task()
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/_threads/_team.py", line 190, in doWork
    task()
--- <exception caught here> ---
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/oioioi/.local/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/protocol/worker.py", line 14, in _runner_wrap
    renv = runner.run(env)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/workers/runner.py", line 75, in run
    environ = first_entry_point('sio.jobs', environ['job_type'])(environ)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/job.py", line 14, in run
    environ = compiler(environ)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/gcc.py", line 35, in run_gplusplus4_8_2_cpp11
    return CPPCompiler.gcc_4_8_2_cpp11().compile(environ)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/gcc.py", line 20, in gcc_4_8_2_cpp11
    obj = cls('gcc.4_8_2')
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/common.py", line 69, in __init__
    self.executor = PRootExecutor('compiler-' + self.sandbox)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/workers/executors.py", line 782, in __init__
    self._proot_options()
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/workers/executors.py", line 847, in _proot_options
    self._bind(self.chroot.path, force=True)
  File "/home/oioioi/.local/lib/python2.7/site-packages/sio/workers/executors.py", line 810, in _bind
    raise RuntimeError("Binding not existing location")
exceptions.RuntimeError: Binding not existing location


The next step in the recipe was:

['compile_end', 'oioioi.programs.handlers.compile_end']
The final evaluation environment (with recipe and error_handlers removed for readability) was:

{ 'compilation_result_size_limit': 10485760,
    'compiler': 'g++4_8_2_cpp11',
    'contest_id': 'hello-contest',
    'contest_priority': 10,
    'contest_weight': 1000,
    'error': { 'message': 'Some tasks in a group failed.\n'
                            '\n'
                            'Exception: received from '
                            'worker237bb8b1bdbe@172.18.0.5:55778: exception: '
                            '<twisted.python.failure.Failure '
                            'exceptions.RuntimeError: Binding not existing '
                            'location> \n'
                            'Remote traceback:\n'
                            'Traceback (most recent call last):\n'
                            ' File "/usr/local/lib/python2.7/threading.py", '
                            'line 801, in __bootstrap_inner\n'
                            ' self.run()\n'
                            ' File "/usr/local/lib/python2.7/threading.py", '
                            'line 754, in run\n'
                            ' self.__target(*self.__args, **self.__kwargs)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/_threads/ _threadworker.py", '
                            'line 46, in work\n'
                            ' task()\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/_threads/ _team.py", '
                            'line 190, in doWork\n'
                            ' task()\n'
                            '--- <exception caught here> ---\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/python/ threadpool.py", '
                            'line 250, in inContext\n'
                            ' result = inContext.theWork()\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/python/ threadpool.py", '
                            'line 266, in <lambda>\n'
                            ' inContext.theWork = lambda: context.call(ctx, '
                            'func, *args, **kw)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/python/ context.py", '
                            'line 122, in callWithContext\n'
                            ' return '
                            'self.currentContext().callWithContext(ctx, func, '
                            '*args, **kw)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/python/ context.py", '
                            'line 85, in callWithContext\n'
                            ' return func(*args,**kw)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/protocol/worker.py", '
                            'line 14, in _runner_wrap\n'
                            ' renv = runner.run(env)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/workers/runner.py", '
                            'line 75, in run\n'
                            " environ = first_entry_point('sio.jobs', "
                            "environ['job_type']) (environ)\n"
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/job.py", '
                            'line 14, in run\n'
                            ' environ = compiler(environ)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/gcc.py", '
                            'line 35, in run_gplusplus4_8_2_cpp11\n'
                            ' return '
                            'CPPCompiler.gcc_4_8_2_cpp11().compile(environ)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/gcc.py", '
                            'line 20, in gcc_4_8_2_cpp11\n'
                            " obj = cls('gcc.4_8_2')\n"
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/common.py", '
                            'line 69, in __init__\n'
                            " self.executor = PRootExecutor('compiler-' + "
                            'self.sandbox)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/workers/ executors.py", '
                            'line 782, in __init__\n'
                            ' self._proot_options()\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/workers/ executors.py", '
                            'line 847, in _proot_options\n'
                            ' self._bind(self.chroot.path, force=True)\n'
                            ' File '
                            '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/workers/ executors.py", '
                            'line 810, in _bind\n'
                            ' raise RuntimeError("Binding not existing '
                            'location")\n'
                            'exceptions.RuntimeError: Binding not existing '
                            'location\n',
                 'traceback': 'Traceback (most recent call last):\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/ defer.py", '
                              'line 654, in _runCallbacks\n'
                              ' current.result = callback(current.result, '
                              '*args, **kw)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/ defer.py", '
                              'line 1116, in _cbDeferred\n'
                              ' self.callback(self.resultList)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/ defer.py", '
                              'line 460, in callback\n'
                              ' self._startRunCallbacks(result)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/ defer.py", '
                              'line 568, in _startRunCallbacks\n'
                              ' self._runCallbacks()\n'
                              '--- <exception caught here> ---\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/internet/ defer.py", '
                              'line 654, in _runCallbacks\n'
                              ' current.result = callback(current.result, '
                              '*args, **kw)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/sioworkersd/ taskmanager.py", '
                              'line 264, in _collect\n'
                              ' raise MultiException("Some tasks in a group '
                              'failed.", failed)\n'
                              'sio.sioworkersd.taskmanager.MultiException: '
                              'Some tasks in a group failed.\n'
                              '\n'
                              'Exception: received from '
                              'worker237bb8b1bdbe@172.18.0.5:55778: exception: '
                              '<twisted.python.failure.Failure '
                              'exceptions.RuntimeError: Binding not existing '
                              'location> \n'
                              'Remote traceback:\n'
                              'Traceback (most recent call last):\n'
                              ' File "/usr/local/lib/python2.7/threading.py", '
                              'line 801, in __bootstrap_inner\n'
                              ' self.run()\n'
                              ' File "/usr/local/lib/python2.7/threading.py", '
                              'line 754, in run\n'
                              ' self.__target(*self.__args, '
                              '**self.__kwargs)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/_threads/ _threadworker.py", '
                              'line 46, in work\n'
                              ' task()\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/_threads/ _team.py", '
                              'line 190, in doWork\n'
                              ' task()\n'
                              '--- <exception caught here> ---\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/python/ threadpool.py", '
                              'line 250, in inContext\n'
                              ' result = inContext.theWork()\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/python/ threadpool.py", '
                              'line 266, in <lambda>\n'
                              ' inContext.theWork = lambda: '
                              'context.call(ctx, func, *args, **kw)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/python/ context.py", '
                              'line 122, in callWithContext\n'
                              ' return '
                              'self.currentContext().callWithContext(ctx, '
                              'func, *args, **kw)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/twisted/python/ context.py", '
                              'line 85, in callWithContext\n'
                              ' return func(*args,**kw)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/protocol/worker.py", '
                              'line 14, in _runner_wrap\n'
                              ' renv = runner.run(env)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/workers/runner.py", '
                              'line 75, in run\n'
                              " environ = first_entry_point('sio.jobs', "
                              "environ['job_type']) (environ)\n"
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/job.py", '
                              'line 14, in run\n'
                              ' environ = compiler(environ)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/gcc.py", '
                              'line 35, in run_gplusplus4_8_2_cpp11\n'
                              ' return '
                              'CPPCompiler.gcc_4_8_2_cpp11().compile(environ)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/gcc.py", '
                              'line 20, in gcc_4_8_2_cpp11\n'
                              " obj = cls('gcc.4_8_2')\n"
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/compilers/common.py", '
                              'line 69, in __init__\n'
                              " self.executor = PRootExecutor('compiler-' + "
                              'self.sandbox)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/workers/ executors.py", '
                              'line 782, in __init__\n'
                              ' self._proot_options()\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/workers/ executors.py", '
                              'line 847, in _proot_options\n'
                              ' self._bind(self.chroot.path, force=True)\n'
                              ' File '
                              '"/ home/oioioi/.local/lib/python2.7/site-packages/sio/workers/ executors.py", '
                              'line 810, in _bind\n'
                              ' raise RuntimeError("Binding not existing '
                              'location")\n'
                              'exceptions.RuntimeError: Binding not existing '
                              'location\n'
                              '\n'},
    'eval_dir': '/eval/hello-contest/2',
    'exec_mode': 'unsafe',
    'extra_args': {},
    'extra_files': {},
    'group_id': 'GROUP_urn:uuid:8980e72f-527a-45e5-b6c3-b1a651168fca',
    'group_scorer': 'oioioi.programs.utils.min_group_scorer',
    'is_rejudge': True,
    'job_id': 'urn:uuid:ba0f4a74-c9e2-4ae0-ba15-efaba7434f0d',
    'language': 'cpp',
    'oioioi_instance': 'OIOIOI',
    'problem_id': 1,
    'problem_instance_id': 2,
    'problem_short_name': 'set',
    'report_kinds': ['INITIAL', 'NORMAL'],
    'restore_environ_func': 'oioioi.sioworkers.handlers.restore_job',
    'return_url': 'http://127.0.0.1:7890&#39;,
    'round_id': 1,
    'score_aggregator': 'oioioi.programs.utils.sum_score_aggregator',
    'source_file': '/problems/1/set.cpp@1648659058',
    'submission_id': 2,
    'submission_kind': 'IGNORED',
    'submission_owner': None,
    'untrusted_checker': False,
    'workers_jobs': { 'compile': { 'compilation_result_size_limit': 10485760,
                                       'compiler': 'g++4_8_2_cpp11',
                                       'contest_id': 'hello-contest',
                                       'contest_priority': 10,
                                       'contest_weight': 1000,
                                       'error_handlers': [ [ 'remove_queuedjob_on_error',
                                                                 'oioioi.evalmgr.handlers.remove_queuedjob_on_error'],
                                                              [ 'delete_executable',
                                                                 'oioioi.programs.handlers.delete_executable'],
                                                              [ 'create_error_report',
                                                                 'oioioi.contests.handlers.create_error_report'],
                                                              [ 'mail_admins_on_error',
                                                                 'oioioi.contests.handlers.mail_admins_on_error'],
                                                              [ 'update_report_statuses',
                                                                 'oioioi.contests.handlers.update_report_statuses'],
                                                              [ 'update_submission_score',
                                                                 'oioioi.contests.handlers.update_submission_score'],
                                                              [ 'update_user_results',
                                                                 'oioioi.contests.handlers.update_user_results'],
                                                              [ 'call_submission_judged',
                                                                 'oioioi.contests.handlers.call_submission_judged'],
                                                              [ 'dump_final_env',
                                                                 'oioioi.evalmgr.handlers.dump_env',
                                                                  { 'message': 'Finished '
                                                                                'evaluation'}],
                                                              [ 'error_handled',
                                                                 'oioioi.evalmgr.handlers.error_handled']],
                                       'exec_mode': 'unsafe',
                                       'extra_args': {},
                                       'extra_files': {},
                                       'group_scorer': 'oioioi.programs.utils.min_group_scorer',
                                       'is_rejudge': True,
                                       'job_id': 'urn:uuid:ba0f4a74-c9e2-4ae0-ba15-efaba7434f0d',
                                       'job_type': 'compile',
                                       'language': 'cpp',
                                       'oioioi_instance': 'OIOIOI',
                                       'out_file': '/eval/hello-contest/2/urn:uuid:ba0f4a74-c9e2-4ae0-ba15-efaba7434f0d- exe',
                                       'problem_id': 1,
                                       'problem_instance_id': 2,
                                       'problem_short_name': 'set',
                                       'recipe': [ [ 'compile_end',
                                                         'oioioi.programs.handlers.compile_end'],
                                                      [ 'after_compile',
                                                         'oioioi.evalmgr.tasks._placeholder'],
                                                      [ 'collect_tests',
                                                         'oioioi.programs.handlers.collect_tests'],
                                                      [ 'initial_run_tests',
                                                         'oioioi.programs.handlers.run_tests',
                                                          {'kind': 'EXAMPLE'}],
                                                      [ 'initial_run_tests_end',
                                                         'oioioi.programs.handlers.run_tests_end'],
                                                      [ 'initial_grade_tests',
                                                         'oioioi.programs.handlers.grade_tests'],
                                                      [ 'initial_grade_groups',
                                                         'oioioi.programs.handlers.grade_groups'],
                                                      [ 'initial_grade_submission',
                                                         'oioioi.programs.handlers.grade_submission',
                                                          {'kind': 'EXAMPLE'}],
                                                      [ 'initial_make_report',
                                                         'oioioi.programs.handlers.make_report',
                                                          {'kind': 'INITIAL'}],
                                                      [ 'update_report_statuses',
                                                         'oioioi.contests.handlers.update_report_statuses'],
                                                      [ 'update_submission_score',
                                                         'oioioi.contests.handlers.update_submission_score'],
                                                      [ 'update_report_statuses',
                                                         'oioioi.contests.handlers.update_report_statuses'],
                                                      [ 'update_submission_score',
                                                         'oioioi.contests.handlers.update_submission_score'],
                                                      [ 'after_initial_tests',
                                                         'oioioi.evalmgr.tasks._placeholder'],
                                                      [ 'check_problem_instance_state',
                                                         'oioioi.suspendjudge.handlers.check_problem_instance_state'],
                                                      [ 'before_final_tests',
                                                         'oioioi.evalmgr.tasks._placeholder'],
                                                      [ 'final_run_tests',
                                                         'oioioi.programs.handlers.run_tests',
                                                          {'kind': 'NORMAL'}],
                                                      [ 'final_run_tests_end',
                                                         'oioioi.programs.handlers.run_tests_end'],
                                                      [ 'final_grade_tests',
                                                         'oioioi.programs.handlers.grade_tests'],
                                                      [ 'final_grade_groups',
                                                         'oioioi.programs.handlers.grade_groups'],
                                                      [ 'final_grade_submission',
                                                         'oioioi.programs.handlers.grade_submission'],
                                                      [ 'final_make_report',
                                                         'oioioi.programs.handlers.make_report'],
                                                      [ 'after_final_tests',
                                                         'oioioi.evalmgr.tasks._placeholder'],
                                                      [ 'delete_executable',
                                                         'oioioi.programs.handlers.delete_executable'],
                                                      [ 'update_report_statuses',
                                                         'oioioi.contests.handlers.update_report_statuses'],
                                                      [ 'update_submission_score',
                                                         'oioioi.contests.handlers.update_submission_score'],
                                                      [ 'update_user_results',
                                                         'oioioi.contests.handlers.update_user_results'],
                                                      [ 'call_submission_judged',
                                                         'oioioi.contests.handlers.call_submission_judged'],
                                                      [ 'dump_final_env',
                                                         'oioioi.evalmgr.handlers.dump_env',
                                                          { 'message': 'Finished '
                                                                        'evaluation'}]],
                                       'report_kinds': ['INITIAL', 'NORMAL'],
                                       'round_id': 1,
                                       'score_aggregator': 'oioioi.programs.utils.sum_score_aggregator',
                                       'source_file': '/problems/1/set.cpp@1648659058',
                                       'submission_id': 2,
                                       'submission_kind': 'IGNORED',
                                       'submission_owner': None,
                                       'task_priority': 200,
                                       'untrusted_checker': False}},
    'workers_jobs.results': {}}

 Comments   
Comment by Aleksander Tudruj [ 2022-03-30 ]
Problems after submitting.
Comment by Aleksander Tudruj [ 2022-03-30 ]
Model solutions.
Comment by Aleksander Tudruj [ 2022-03-30 ]
First submission
Comment by Aleksander Tudruj [ 2022-03-30 ]
Second submission.




[SIO-2492] Translated strings which end with a space. Created: 2022-03-21  Updated: 2022-03-26  Resolved: 2022-03-26

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Mieszko Grodzicki Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File group_name.png    
Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Some of strings translated in OIOIOI end with a space, which is very hard to notice in Transifex and can lead to errors such as this in a screenshot.

 Comments   
Comment by Gerrit Gerrit [ 2022-03-21 ]
Change oioioi~master~Ib25a4c5f3f50a6690b44f9ed1b8688eae8688564, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3814

SIO-2492 Remove ending whitespaces from translated strings.

Change-Id: Ib25a4c5f3f50a6690b44f9ed1b8688eae8688564
Comment by Tomek Waleń [ 2022-03-23 ]
In most cases white-spaces are due to concatenation of translated string with template variable.
We can use blocktrans in such case, i.e.:
```
{% blocktrans %}Please visit {{ msg_link }} to answer it.{% endblocktrans %}
```

The same applies to _ in python code, i.e.
```
_("Start of %s") % obj.name)
```
instead of
```
_("Start of") + " " + obj.name)
```
Comment by Gerrit Gerrit [ 2022-03-23 ]
Change oioioi~master~Ib25a4c5f3f50a6690b44f9ed1b8688eae8688564, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3814

SIO-2492 Remove ending whitespaces from translated strings.

Change-Id: Ib25a4c5f3f50a6690b44f9ed1b8688eae8688564




[SIO-2491] No avatar for admin created users Created: 2022-03-18  Updated: 2022-10-4

Status: In Progress
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Aleksander Tudruj Assignee: Aleksander Tudruj
Resolution: Unresolved Votes: 0
Labels: None
Environment: Django 2.2.26 and 3.0.14

Attachments: PNG File Screenshot from 2022-03-18 15-35-29.png    

 Description   
When logging in with a user account created via administrator panel there is no avatar photo in upper right corner.





[SIO-2490] Page at /api/docs/ generates response code 500 Created: 2022-03-18  Updated: 2022-04-6  Resolved: 2022-03-30

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Aleksander Tudruj Assignee: Tomasz Waleń
Resolution: Duplicate Votes: 0
Labels: None
Environment: Django version 2.2.26 and 3.0.14


 Description   
Visiting the page /api/docs/ at local oioioi or szkopul.pl results in response code 500 or `'AutoSchema' object has no attribute 'get_link'`.

 Comments   
Comment by Tomek Waleń [ 2022-03-30 ]
also ticketed as: https://jira.sio2project.mimuw.edu.pl/browse/SIO-2497




[SIO-2489] End-to-end testing with Cypress Created: 2022-03-17  Updated: 2022-08-14  Resolved: 2022-08-14

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Bartłomiej Chmiel Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None

Attachments: Text File 0001-Add-cypress-e2e-tests-and-convenience-scripts.patch    

 Description   
Selenium tests are not working.
I propose new solution using Cypress (https://www.cypress.io).
Advantages:
- useful gui
- screenshot (or video) on test failure
- type safe tests (written in Typescript)
- testing on multiple browsers

I created PoC test suite: https://sinol3.dasie.mimuw.edu.pl/incvis/oioioi/merge_requests/1

See patch for more details.

 Comments   
Comment by Tomek Waleń [ 2022-03-17 ]
looks very interesting!

usefull links:
* https://sii.pl/blog/cypress-dlaczego-warto-zainteresowac-sie-tym-frameworkiem/
* https://www.youtube.com/watch?v=dwVfZI-49bg
Comment by Tomek Waleń [ 2022-04-25 ]
https://www.valentinog.com/blog/django-cypress/
Comment by Tomek Waleń [ 2022-04-25 ]
https://github.com/cypress-io/github-action

https://posthog.com/blog/cypress-end-to-end-tests




[SIO-2488] Make tests work with apostrophe encoded as both '&#39;' and '&#x27;'. Created: 2022-03-15  Updated: 2022-03-28  Resolved: 2022-03-28

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Mieszko Grodzicki Assignee: Kacper Lewandowski
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Kacper Lewandowski

 Description   
Currently some of tests checking whether response contains a phrase with an apostrophe assume that is encoded by '&#x27;' (or before upgrade to Django 3.0 - '&#39;'). It would be better to improve these tests so that they work without making such assumption.

 Comments   
Comment by Gerrit Gerrit [ 2022-03-20 ]
Change oioioi~master~Ife3c7458a81c37ca575ccc8d823b47382686dcc0, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3812

SIO-2488 Escaping apostrophes in tests.

Currently apostrophes are escaped manually in some tests.
After this change django.utils.html.escape is called instead.

Change-Id: Ife3c7458a81c37ca575ccc8d823b47382686dcc0
Comment by Tomek Waleń [ 2022-03-23 ]
Django 2.2 was using internal escaping method (https://docs.djangoproject.com/pl/2.2/_modules/django/utils/html/) and in Django 3.0 python html.escape is used (https://docs.djangoproject.com/pl/3.0/_modules/django/utils/html/)




[SIO-2487] cleanup filterwarnings setting in pytest.ini Created: 2022-03-10  Updated: 2022-03-10

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Currently filterwarnings ignores almost all depracationwarnings from oioioi code. This is inconvenient for testing library upgrades.

Proposed changes:
- show all warnings from oioioi during pytest
- fail pytest on selected warnings
- fix most important warnings and create Jira tickets for more time consuming




[SIO-2486] Merge hotfixes from szkopul to master branch of oioioi Created: 2022-03-10  Updated: 2022-06-5

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Andrzej Radzimiński
Resolution: Unresolved Votes: 0
Labels: None

Attachments: File szkopul.diff    
Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Repository
  ssh://gerrit.sio2project.mimuw.edu.pl:29418/szkopul
contains several hotfixes and changes dedicated to szkopul.edu.pl.
On every deployment changes from main repository are rebased on top of szkopuł repo (see https://hudson.sio2project.mimuw.edu.pl/job/szkopul-rebase/).

This procedure is inconvenient (i.e. hotfixes are not tested, sometimes there are conflicts during rebasing).
We should try to move as many hotfixes as possible to main code and/or move some functionality controlled by system settings.

Results of `git diff github/master origin/master -- ':!*/npm-shrinkwrap.json'` attached to a ticket.

Commits on szopul & not in oioioi/master (git log --no-merges origin/master ^github/master):

a69d242557b550206540a50e0477648a9e8b4816 (HEAD -> master, origin/master, origin/HEAD) Add a command for gathering submissions statistics.
53295c08dc66bccd813b33467a9cf155a07b1e98 Add command for finding SE submissions.
ecfd2f625dee1fc4018835012af5a2003b430b55 PRODFIX set c++17 for non-makefile sinol packages
77ac6145c33d7af9e8d01a117920b52c74ee5803 (temporary) Allow lorys to manage packages inside his contest
bc92854a40cdf5a0fa46ccac03d51f36eb246b6c (no-ticket) Fix unicode handling in StatusSaver
9f5843072dad127840dc27ed03d22b9028304854 [to-master] fixed available_compilers default
e86d89707e118a934ea7800e09572da4b066f023 (to-master) added select_related
fd2e8c22a9b9e4571e6bfe0f45b84924a9697204 (to-master) usercontests should not be public
00a2e301caab91ce94e6eb73b2e0cebe6029a6a1 (to-master) show_info_about_workers update API
a8df27c215923fe175c1e92f7e76e02b9464e1a9 (no-ticket) Fix utf-8-related crash in exportszu
b47a36a71c9c3ac56d151c44c705cd04156adb4c (to-master) Added ingen failure handling
403da241c78e2101cd86432fc0e2c1034cca9e80 [tmp] instrument The Queries for perf measure
b07d69f2b97ea179d46feac1e0565cb82cc3af3c [PRODFIX] Change oioioi/notifications/server/npm-shrinkwrap.json
dc4a0637a8a17d04290c9aea1eef2012b0e24f0a [HOTFIX] Fix statistics breaking for model solutions
4c6fa0e3a31af72157bf3f492d67a3e7094525e2 Added Main importer
042f6e24a67c344c10f4aa38b61e9678883fba28 [TEMPFIX] Print where the empty controller hack is needed
49ce358f401c0ca1c1545f953e97f5b9e6141957 TEMPFIX
53897253372ba58cbe113cef3a29c54163db8eca TMPHACK
04e4cc83ab5b1f293cc8bb086c10d6d1b03c9091 [DEBUG] Added more workers debug
f1793381beb9f60434c4b4177c1b3f4be7d60448 [DEBUG][IMPORTANT] Add some debug messages to receive_from_workers
aabc74edd7823b0ba977a781bd26266a66552177 HOTFIX: Teachers & forum
62e9fe2ded38323db451c35e444ff6d7496f7b1e Uncommited changes
1c2d21c14223dd1008a48169d8bf77b5f2e26a06 [HOTFIX] Some localchanges to sharingcli on Szkopuł
82896619f41cc73fc0d0c26b1426e193cb077b91 [HOTFIX] Remove oi dependency from participants migration

Aktualizacja na podstawie emaila od Pawła Dietricha (2022-03-14):

wydaje się, że następujące zmiany można dodać do mastera:

bc92854a40cdf5a0fa46ccac03d51f36eb246b6c
9f5843072dad127840dc27ed03d22b9028304854
e86d89707e118a934ea7800e09572da4b066f023
00a2e301caab91ce94e6eb73b2e0cebe6029a6a1
a8df27c215923fe175c1e92f7e76e02b9464e1a9
b47a36a71c9c3ac56d151c44c705cd04156adb4c
dc4a0637a8a17d04290c9aea1eef2012b0e24f0a


 Comments   
Comment by Tomek Waleń [ 2022-03-21 ]
hotfixes:

bc92854a40cdf5a0fa46ccac03d51f36eb246b6c
9f5843072dad127840dc27ed03d22b9028304854
e86d89707e118a934ea7800e09572da4b066f023
00a2e301caab91ce94e6eb73b2e0cebe6029a6a1
a8df27c215923fe175c1e92f7e76e02b9464e1a9
b47a36a71c9c3ac56d151c44c705cd04156adb4c
dc4a0637a8a17d04290c9aea1eef2012b0e24f0a

have been merged to main repo, see https://github.com/sio2project/oioioi/pull/53
Comment by Tomek Waleń [ 2022-04-13 ]
Uwagi (Patrycja Krzyna):

Potencjalnie można usunąć:
- [tmp] instrument The Queries for perf measure - jest z 2019 roku i jest tmp, nie brzmi jakby było jeszcze komuś potrzebne
- [HOTFIX] Remove oi dependency from participants migration - przy deployowaniu i tak aplikują się tylko nowe migracje, a przy stawianiu szkopuła od nowa migracje i tak kompletnie nie działają, więc chyba ten commit nic nie zmienia (ewentualnie jest bardzo niepoprawny)
- [TEMPFIX] Print where the empty controller hack is needed - z 2019, print debugowy, prawdopodobnie nikt już tego nie śledzi
- [DEBUG][IMPORTANT] Add some debug messages to receive_from_workers - jest to z 2018 roku, wiec szczerze wątpię, że ktos zamierza zrobić ten debug
- [DEBUG] Added more workers debug - jak wyżej



Wielka niewiadoma:
- Uncommited changes - dziwne losowe zmiany, w tym w sposobie oceniania zadań; ze względu na if True i nazwę uncommited changes wydaje się, że może to wylądowało wśród tych commitow przypadkiem
- TMPHACK - hardkoduje limit pamięci (env['ingen_mem_limit']) na 512MB; brzmi podejrzanie, ale chyba byłabym skłonna to usunąć
- Added Main importer - ktoś tego jeszcze używa? Czy to przeszkadzałoby na sio?
- [PRODFIX] Change oioioi/notifications/server/npm-shrinkwrap.json - nie bardzo rozumiem, co to robi
- (temporary) Allow lorys to manage packages inside his contest - czy to naprawdę jest zahardkodowanie uprawnień dla konkretnego użytkownika dla konkretnego contestu...?



Potencjalnie mozna zmergować:
- HOTFIX: Teachers & forum - chyba to tworzy forum na contestach robionych przez nauczycieli
- [DEBUG] Added more workers debug - jak wyżej
- Add command for finding SE submissions. - jakieś sensowne zmiany
- TEMPFIX - dodaje przycisk do kopiowania rozwiązań
- (to-master) usercontests should not be public - nie powinno w ogóle dotknąć sio, bo tam nie ma takich contestów
- PRODFIX set c++17 for non-makefile sinol packages - wydaje się niezbyt groźne
- Add a command for gathering submissions statistics. - również sensowne zmiany
- Add decoding to HTML problem statements. - jakaś drobna zmiana, też nie wygląda, jakby mogła wybuchnąć sio
Comment by Tomek Waleń [ 2022-04-25 ]
moje uwagi:
- HOTFIX: Teachers & forum - chyba to tworzy forum na contestach robionych przez nauczycieli
OK

- [DEBUG] Added more workers debug - jak wyżej
OK

- Add command for finding SE submissions. - jakieś sensowne zmiany
OK

- TEMPFIX - dodaje przycisk do kopiowania rozwiązań
OK (ale tam jest tez coś o javascript_catalog a to juz chyba jest)

- (to-master) usercontests should not be public - nie powinno w ogóle dotknąć sio, bo tam nie ma takich contestów
OK

- PRODFIX set c++17 for non-makefile sinol packages - wydaje się niezbyt groźne
OK, ale coś trzeba zrobić z settings_global tam dalej jest GCC 4.8

- Add a command for gathering submissions statistics. - również sensowne zmiany
OK

- Add decoding to HTML problem statements. - jakaś drobna zmiana, też nie wygląda, jakby mogła wybuchnąć sio
OK chociaz nie bardzo rozumiem, jak takie pliki z bledami mają się poprawnie wyświetlić




[SIO-2485] Adding SmartJudge -- possibility of judging only tests that affect score Created: 2022-03-9  Updated: 2022-03-9

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Joanna Wojciechowska Assignee: Joanna Wojciechowska
Resolution: Unresolved Votes: 0
Labels: None


 Description   
SmartJudge is a tool implemented by Karol Farbis on SIO2 staszic (https://github.com/InformatykaNaStart/staszic-sio2). It allows to set a mode where only essential tests are judged, so when one of the tests is not OK, all other tests in given package are ignored.




[SIO-2484] broken tests for django 2.2.26 Created: 2022-03-6  Updated: 2022-03-23  Resolved: 2022-03-18

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Aleksander Tudruj
Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Due to changes in Django 2.2.26 some tests fail.

Cause:
- changes for dictsort usage in templates: https:// docs.djangoproject.com/en/4.0/releases/2.2.26/#cve-2021-45116-potential- information-disclosure-in-dictsort-template-filter

How to reproduce:
- pip3 install -U django==2.2.26
- docker-compose -f docker-compose-dev.yml -f extra/docker/docker-compose-dev-noserver.yml exec "web" ../oioioi/test3.sh -v oioioi/problems/tests/test_task_archive.py

affected template:

+++ b/oioioi/problems/templates/problems/task-archive-problemgroup.html
    {% for value, subdict in problems.subnodes.items|dictsort:"0.order" %}

affected view:

task_archive_tag_view


code
```
problems.subnodes.items|dictsort:"0.order"
```
sorts tuples (subnodes.items()) by value of order attribute of first element of tuple (key)


 Comments   
Comment by Gerrit Gerrit [ 2022-03-9 ]
Change oioioi~master~I2ef92d9a7169fbd0444d127f17628c53dde9ead7, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3809

(SIO-2484) broken tests for django 2.2.26

Due to changes in Django 2.2.26 some tests fail.
The container with subnodes was changed in order to use a new dictsort.

Change-Id: I2ef92d9a7169fbd0444d127f17628c53dde9ead7
Comment by Gerrit Gerrit [ 2022-03-14 ]
Change oioioi~master~Id0aaeee56572f534a72d88cff68e1115722068a6, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3811

SIO-2462 Django upgrade to 3.1

While repairing the tests for django 2.2.26 in the ticket SIO-2484,
dictsort:"value.order" is used. Apparently, from django 3.1 in order to
sort elements, comparator is based on _eq_ function (there's no default
ordering), so _eq_ func from FakeOriginInfoValue is used while performing query.

Unfortunately, in some queries it's possible that FakeOriginInfoValue objects
are among OriginInfoValue objects, but OriginInfoValue class doesn't have cat
variable.

Change-Id: Id0aaeee56572f534a72d88cff68e1115722068a6
Comment by Gerrit Gerrit [ 2022-03-23 ]
Change oioioi~master~I856c07af5d30de3f3ed34186c1a097128dc2f42e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3815

SIO-2462 Django upgrade to 3.1

While repairing the tests for django 2.2.26 in the ticket
SIO-2484, dictsort:"value.order" is used. Apparently,
from django 3.1 in order to sort elements, comparator
is based on _eq_ function (there's no default ordering),
so _eq_ func from FakeOriginInfoValue is used while
performing query.

Unfortunately, in some queries it's possible that
FakeOriginInfoValue objects are among OriginInfoValue
objects, but OriginInfoValue class doesn't have the: cat variable.

Change-Id: I856c07af5d30de3f3ed34186c1a097128dc2f42e




[SIO-2483] Mitigate possibility of input data tasks leaks Created: 2022-03-2  Updated: 2022-03-16

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Mieszko Grodzicki
Resolution: Unresolved Votes: 0
Labels: None

Attachments: File sorchk.cpp    
Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Mitategate possibility of leaking input data for tasks with full-feedback.
During Algorithms & Data structure exams it happened few times that students leaked input data for tests using printing tests.

Workaround (used during one exam): custom checker that limits verbosity of wrong answer result (see attached sorchk.cpp)

Dwie możliwe (i łatwe do wprowadzenia) opcje:
  1. Uczestnik wcale nie widzi komentarzy do testów z wynikiem WA.
  2. Uczestnik widzi komentarze do testów z wynikiem WA, ale ucięte bardziej niż obecnie (np. do 80 znaków).
Poza tym pozostają dwa pytania:
  - Czy powinno to być ustawienie dotyczące contestu, czy rundy? Jako ustawienie pojedynczego zadania raczej nie ma sensu (główne potencjalne zastosowanie to kolokwia, egzaminy, sprawdziany, gdzie ukrywanie komentarzy dotyczy wszystkich zadań).
  - Czy ukrywanie powinno dotyczyć tylko czasu trwania rundy (jeżeli byłoby to ustawienie rundy), czy powinno być aktywne aż do wyłączenia przez administratora contestu?




[SIO-2482] Add option for contest configuration to ignore invalid submissions Created: 2022-02-28  Updated: 2022-02-28

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Summer Sprint 1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Add option for contest configuration (i.e. Olimpiada Informatyczna), such that:

As a contestant I would like to avoid situation when submitting wrong file cancels my score for already solved task (i.e. if by mistake I submit solution for task A as a solution for task B).

Such situation happens rarely (but it happens) during OI contests (for example it happened once this year in Feb 2022).

Possible solutions:
- ignore in ranking solutions that does not pass example tests
- use in the ranking last solution that pass example tests (tests that are included in the task description)
- [SPECIAL CASE] if for some task there are no solutions that pass example tests then use in ranking last submitted solution




[SIO-2481] Store author's information about packages Created: 2022-02-8  Updated: 2022-02-8

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Bartosz Kostka Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None


 Description   
In main (no. 1) it was possible to specify problem's author. We should add this metadata to the package's config and parse it in oioioi.




[SIO-2480] Translation of default iomode in sinol.cls file is not working Created: 2022-02-8  Updated: 2022-02-8

Status: New
Project: The SIO2 project
Component/s: Translations
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
In /oioioi/sinolpack/files there is a sinol.cls file.
When used in task statements, it has a default iomode (\iomode{files}).
It does not update translations of example input/output texts, making them always polish.

PS: Moving the line to the bottom might fix the issue.
PSS: Should files really be the default iomode?
PSSS: And should we really use 8 years old sinol.cls file? There are surely newer versions around in use.




[SIO-2479] Fix problemset URLs Created: 2022-01-20  Updated: 2022-01-26  Resolved: 2022-01-26

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Adam Al-Hosam Assignee: Adam Al-Hosam
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File Screenshot 2022-01-20 at 23.20.13.png    

 Description   
When somebody tries to go to problemset while being in some contest, the URL "remembers" the contest (the suffix is /c/contest_name/problemset) .

Because of that users are not able to submit to any problem.

Steps to reproduce:
1. Choose any contest from the main page.
2. Choose problemset from dropdown menu in the navbar.

 Comments   
Comment by Gerrit Gerrit [ 2022-01-20 ]
Change oioioi~master~Ie3e4ca23c0dc39a301ddc91f3e15e42c38078e81, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3803

SIO-2479 Fix problemset URLs

The fix was simply putting an appropriate url pattern in problems/urls.py
into noncontest_patterns as instructed in comments of contests/urls.py.

Change-Id: Ie3e4ca23c0dc39a301ddc91f3e15e42c38078e81




[SIO-2478] Add link to the solution of each problem in problems tab Created: 2022-01-19  Updated: 2022-01-31  Resolved: 2022-01-31

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Aleksander Tudruj Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File Screenshot from 2022-01-19 18-41-40.png    

 Description   
When somebody wants to look for a solution of some problem they submitted a long time ago, sometimes it can be hard to find it in a long list of submissions.

I suggest adding a hyperlink to a last submission of a score visible in a 'problems' tab. This will improve users experience as well as save a lot of time.

 Comments   
Comment by Gerrit Gerrit [ 2022-01-20 ]
Change oioioi~master~Icf941e12d6a3bc8c623bf642079eea747df1b9db, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3802

(SIO-2478) Add link to the solution of each problem in problems tab

Added link to a submission score to easily jump to the source code from problem page

Change-Id: Icf941e12d6a3bc8c623bf642079eea747df1b9db
Comment by Gerrit Gerrit [ 2022-01-23 ]
Change oioioi~master~Icf941e12d6a3bc8c623bf642079eea747df1b9db, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3802

(SIO-2478) Add link to the solution of each problem in problems tab

Added link to a submission score to easily jump to the source code from problem page

Change-Id: Icf941e12d6a3bc8c623bf642079eea747df1b9db
Comment by Gerrit Gerrit [ 2022-01-23 ]
Change oioioi~master~Icf941e12d6a3bc8c623bf642079eea747df1b9db, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3802

(SIO-2478) Add link to the solution of each problem in problems tab

Added link to a submission score to easily jump to the source code from problem page

Change-Id: Icf941e12d6a3bc8c623bf642079eea747df1b9db
Comment by Gerrit Gerrit [ 2022-01-23 ]
Change oioioi~master~Icf941e12d6a3bc8c623bf642079eea747df1b9db, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3802

(SIO-2478) Add link to the solution of each problem in problems tab

Added link to a submission score to easily jump to the source code from problem page

Change-Id: Icf941e12d6a3bc8c623bf642079eea747df1b9db
Comment by Gerrit Gerrit [ 2022-01-23 ]
Change oioioi~master~Icf941e12d6a3bc8c623bf642079eea747df1b9db, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3802

(SIO-2478) Add link to the solution of each problem in problems tab

Added link to a submission score to easily jump to
the source code from problem page

Change-Id: Icf941e12d6a3bc8c623bf642079eea747df1b9db
Comment by Gerrit Gerrit [ 2022-01-26 ]
Change oioioi~master~Icf941e12d6a3bc8c623bf642079eea747df1b9db, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3802

(SIO-2478) Add link to the solution of each problem in problems tab

Added link to a submission score to easily jump to
the source code from problem page

Change-Id: Icf941e12d6a3bc8c623bf642079eea747df1b9db
Comment by Gerrit Gerrit [ 2022-01-26 ]
Change oioioi~master~Icf941e12d6a3bc8c623bf642079eea747df1b9db, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3802

(SIO-2478) Add link to the solution of each problem in problems tab

Added link to a submission score to easily jump to
the source code from problem page

Change-Id: Icf941e12d6a3bc8c623bf642079eea747df1b9db
Comment by Gerrit Gerrit [ 2022-01-26 ]
Change oioioi~master~Icf941e12d6a3bc8c623bf642079eea747df1b9db, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3802

(SIO-2478) Add link to the solution of each problem in problems tab

Added link to a submission score to easily jump to
the source code from problem page

Change-Id: Icf941e12d6a3bc8c623bf642079eea747df1b9db




[SIO-2477] simplify deployment Created: 2022-01-11  Updated: 2022-02-28

Status: New
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Currently deployment requires:
- manual patching of master branch with custom list of commits
- using external scripts
- is not documented well

Goals:
- all patches are included in master branch (and possibly turned on/off by settings)
- scripts are includes in the repo
- there exists some documentation for the process





[SIO-2476] migrate from python 3.6 to 3.7 or 3.8 Created: 2022-01-11  Updated: 2022-02-28

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Support for python 3.6 ended on 23 Dec 2021.




[SIO-2475] drop support for python 2.7 Created: 2022-01-11  Updated: 2022-04-22  Resolved: 2022-04-22

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2021/22 Summer Sprint 1

 Description   
python 2.7 support ended on 01 Jan 2020


 Comments   
Comment by Tomek Waleń [ 2022-04-13 ]
work in progress: https://github.com/sio2project/oioioi/pull/57




[SIO-2474] Fix night builds Created: 2022-01-10  Updated: 2022-02-28  Resolved: 2022-02-28

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: TAG 2021/22 Winter Sprint

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Mieszko Grodzicki

 Description   
Night tests on Hudson are failing since May 2021.
This is due to version conflict for Python 2 installation.

Goals:
- remove support for python 2 in nighthly tests and move to python 3
- make sure that tests are passing and they take less than 1.5hr

 Comments   
Comment by Mieszko Grodzicki [ 2022-01-26 ]
Próbowałem zrealizować (https://hudson.sio2project.mimuw.edu.pl/job/oioioi-nightly-unittests-python3) testy nightly analogicznie jak aktualnie działające https://hudson.sio2project.mimuw.edu.pl/job/oioioi-gerrit-unittests-python3 , niestety takie zadanie kończy się błędem przy instalacji pakietu djsupervisor, analogicznym zresztą, jak w oioioi-translations-upload. Co ciekawe, ten sam pakiet instaluje się bez problemu w oioioi-gerrit-unittests-python3. Podejrzewam, że wynika to z tego, że oioioi-gerrit-unittests-python3 nie tworzy od nowa virtualenv3, jeżeli ono już istnieje. W ten sposób testy te bazują na virtualenvie ze nieaktualizowanymi wersjami pakietów i prawdopodobnie tylko dzięki temu (w szczególności stara wersja setuptools) pakiet djsupervisor instaluje się poprawnie.
Comment by Mieszko Grodzicki [ 2022-01-26 ]
Błąd przy instalacji djsupervisor:

Collecting djsupervisor==0.4.0
  Using cached http://github.com/badochov/djsupervisor/zipball/master
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/users/sio2devel/.hudson/jobs/oioioi-nightly-unittests-python3/ workspace/virtualenv3/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-509quzf3/ djsupervisor_51aea4f15df14420a6c5e6339cdf0227/setup.py'"'"'; __file__='"'"'/tmp/pip-install-509quzf3/ djsupervisor_51aea4f15df14420a6c5e6339cdf0227/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-jbxkjxc0
       cwd: /tmp/pip-install-509quzf3/djsupervisor_51aea4f15df14420a6c5e6339cdf0227/
  Complete output (1 lines):
  error in djsupervisor setup command: use_2to3 is invalid.

Pakiet nie jest już rozwijany, ostatnia wersja pochodzi z 2016 roku. Trzeba zastanowić się, czy jesteśmy w stanie z niego zrezygnować.
Comment by Tomek Waleń [ 2022-01-27 ]
Problem z use_2to3 wynika ze zmian w PIP:

https://stackoverflow.com/questions/69100275/error-while-downloading-the-requirements-using-pip-install-setup-command-use-2
Comment by Tomek Waleń [ 2022-02-28 ]
poprawiłem, już wszystko działa




[SIO-2473] Invalid INDEX format in export submission Created: 2022-01-10  Updated: 2022-03-23  Resolved: 2022-03-23

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Patrycja Krzyna
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File Screenshot 2022-01-10 at 20.45.14.png    
TAG Developer: Patrycja Krzyna
TAG Reviewer: Tomek Waleń
Sprint: TAG 2021/22 Summer Sprint 1

 Description   
After "Export submission" the format of INDEX file is invalid.
Most columns are exported with binary string tag (see anonymized screenshot).
UTF characters are exported in hex format.

Expected behaviour:
INDEX file that can be loaded to Excel or pandas.read_csv

 Comments   
Comment by Patrycja Krzyna [ 2022-03-6 ]
I couldn't reproduce it - files generated by my local instance look like this:

submission_id,user_id,username,first_name,last_name,city,school,school_city,problem_short_name,score
54,1,admin,,,NULL,NULL,NULL,sum,100
55,2,uczestnik,Uczestnik,Testowy,NULL,NULL,NULL,sum,100
56,2,uczestnik,Uczestnik,Testowy,NULL,NULL,NULL,sum,0

I've also tried generating this file for a real contest on sio2.mimuw.edu.pl and it looks fine, too...
Comment by Gerrit Gerrit [ 2022-03-21 ]
Change oioioi~master~I94410256678ee02be421d0c56e5c4c103950d66d, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3813

SIO-2473 fixing broken INDEX format in exportszu

Change-Id: I94410256678ee02be421d0c56e5c4c103950d66d




[SIO-2472] c++17 support in sinol makefiles Created: 2022-01-1  Updated: 2022-01-2  Resolved: 2022-01-2

Status: Resolved
Project: The SIO2 project
Component/s: Zzz! / None of the above / I really don't know
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Paweł Dietrich Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Currently we override makefiles in sinol packs, which force c++11. Jury want's c++17, which is fairly available on modern machines.

 Comments   
Comment by Paweł Dietrich [ 2022-01-2 ]
Lista części zmian wstecznie niekompatybilnych z c++11 wg cppreference

Oznaczone jako usunięte:
- Pozbycie się śmiesznego encodowania znaków jak `??-` -> `~`
- pozbycie się funkcji: std::auto_ptr, std::random_shuffle, std::unexpected,
- klucz `register`
- wrappery na funkcje `mem_fun` i podobne,
- the obsolete io streams aliases (np. ios_base open_mode)
- preinkrementacja `bool`'a nie jest już zdefiniowana jako `true`
- [dynamic exception specification](https://en.cppreference.com/w/cpp/language/except_spec)

Oznaczone jako do wycofania:
- typy i funkcje std::iterator, std::raw_storage_iterator, std::get_temporary_buffer, std::is_literal_type, std::result_of
- biblioteka <codecvt>
- Kilka funkcji do wyfocania z [utility/functional](https://en.cppreference.com/w/cpp/utility/functional#Old_binders_and_adaptors)
Comment by Gerrit Gerrit [ 2022-01-2 ]
Change oioioi~master~I3c749b6a2b61957e89c8e665dc3cc076a23012dc, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3798

SIO-2472 Add c++17 support in sinol makefiles

Change-Id: I3c749b6a2b61957e89c8e665dc3cc076a23012dc
Comment by Gerrit Gerrit [ 2022-01-2 ]
Change oioioi~master~I3c749b6a2b61957e89c8e665dc3cc076a23012dd, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3800

SIO-2472 Add c++17 support in sinol makefiles

Change-Id: I3c749b6a2b61957e89c8e665dc3cc076a23012dd




[SIO-2471] Missing edit test options Created: 2021-12-30  Updated: 2022-01-31  Resolved: 2022-01-31

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Alicja Kluczek Assignee: Joanna Wojciechowska
Resolution: Fixed Votes: 0
Labels: None

Attachments: PDF File Gmail - Brakujące testy w ustawieniach zadania.pdf    

 Description   
Recently we received complaint about missing options in PI edit UI. Please see the e-mail attached.

 Comments   
Comment by Gerrit Gerrit [ 2022-01-24 ]
Change oioioi~master~Ibbe0cb3cf02b543686a3a1d2703b83a9ba2e9d60, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3807

SIO-2471 Missing edit test options

Setting last test row to hidden deleted.

Change-Id: Ibbe0cb3cf02b543686a3a1d2703b83a9ba2e9d60




[SIO-2470] Race condition in ranking creation Created: 2021-12-29  Updated: 2022-04-11

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment: szkopul.edu.pl


 Description   
Sometimes, the same user is enlisted twice in the ranking. See attached screenshot.

 Comments   
Comment by Paweł Dietrich [ 2022-01-2 ]
@Tomek Waleń. Skasowałem screenshota, ponieważ były na nim dane osobowe.

Skoro już komentuję, to już się kiedyś spotkałem z tym problemem. Ogólnie w oioioi jest dość dużo race conditionów i bugów TOCTOU. Wydaje się, że akurat TOCTOU można naprawić przy pomocy transations.atomic(). Race conditiony wynikające z równoległego działania wielu części kodu wymagają więcej uwagi i pomysłu. Z drugiej strony mamy trochę tych programów w oioioi, które działają sobie w tle i pamiętam, że raz przez przypadek uruchomiliśmy rankingsd dwa razy i wtedy też się ranking popsuł. Z punktu widzenia HA takie ograniczenia przeszkadzają i w wypadku przeprojektowania rankingów warto o tym pomyśleć.
Comment by Tomek Waleń [ 2022-04-11 ]
na szkopule pojawił się następujący hotfix:
```
iff --git a/oioioi/rankings/controllers.py b/oioioi/rankings/controllers.py
index aec61f24..ed36bda9 100644
--- a/oioioi/rankings/controllers.py
+++ b/oioioi/rankings/controllers.py
@@ -390,7 +390,8 @@ class DefaultRankingController(RankingController):
             .select_related('problem')
             .prefetch_related('round')
         )
- users = self.filter_users_for_ranking(key, User.objects.all())
+ users = self.filter_users_for_ranking(key, User.objects.all()).distinct()
         results = (
             UserResultForProblem.objects.filter(
                 problem_instance__in=pis, user__in=users
```




[SIO-2469] List of rounds for specific contest Created: 2021-12-11  Updated: 2022-12-12

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Aleksey Ropan Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Query https://sio2.mimuw.edu.pl/c/pa-2021-1/status/ returns information about one round (current or future) only. Can you add a list of rounds for a specific contest with times information?

I want to create automatic export contests and rounds to clist.by.

 Comments   
Comment by Aleksey Ropan [ 2022-12-12 ]
Maybe it's already fixed or is there an update?




[SIO-2468] Bycie anonimowym nie robi cię anonimowym Created: 2021-12-9  Updated: 2022-03-17

Status: New
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Tomasz Nowak Assignee: Kacper Lewandowski
Resolution: Unresolved Votes: 0
Labels: None

Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Obecnie istnieje możliwość "anonimowego" uczestnictwa w konkursie. Polega ona na zastąpieniu imienia i nazwiska uczestnika jego loginem w rankingu.

Nie jest to rzeczywista anonimowość - login może zawierać fragmenty nazwiska, być znany dla kolegów itd.

Ponadto, opcja ta jest niedostępna w większości konkursów.



Możliwym rozwiązaniem jest używanie ustalonego ciągu znaków ("???", "anonimowy" itd) w miejsce loginu.
(Można by też takich uczestników wcale nie pokazywać w publicznym rankingu, przy czym wydaje się to rozwiązaniem bardzo niekorzystnym.)


Kwestie do rostrzygnięcia:
  1. Czy nowa wersja powinna zastąpić dotychczasową, czy istnieć równolegle do niej (do wyboru dla administratora pomiędzy brakiem anonimowości / loginem / "???")
  2. Jak powinno wyglądać zarządzanie tym ustawieniem - np. ustalone w typie konkursu (tak jak obecnie) lub możliwe do modyfikacji w ustawieniach konkursu (ewentualnie wartości domyślne dla danego serwera)


Dla zachowania zgodności ze stanem obecnym sensowne wydaje się wprowadzenie tej zmiany jako nowej opcji per konkurs, która nadpisywałaby dotychczasowe zachowanie.




 Comments   
Comment by Tomasz Nowak [ 2021-12-9 ]
Przykład: https://sio2.mimuw.edu.pl/c/pa-2021-1/ranking/

W rankingu widać użytkownia "apiad". Od razu wiadomo, że to jest tak naprawdę Xiuhan Wang i że cię totalnie rozwali podczas contestu.
Comment by Tomasz Nowak [ 2021-12-9 ]
Wcześniej też był k_walentynowicz w rankingu, ale teraz już jest po prostu Kacper Walentynowicz. Pewnie stwierdził, że ta opcja anonimowości jest tak beznadziejna, że już lepiej jest pokazywać swoje imię i nazwisko.
Comment by Przemysław Podleśny [ 2021-12-16 ]
Więcej nawet, "anonimowi" użytkownicy, którzy zremisowali wynikiem z innymi, razem z nimi są sortowani po nazwisku, więc gdyby ktoś miał jakąś wątpliwość co do tego, kto ukrywa się pod danym pseudonimem, może ją w ten sposób rozwiać ostatecznie :)
Comment by Paweł Dietrich [ 2022-03-17 ]
> Możliwym rozwiązaniem jest używanie ustalonego ciągu znaków ("???", "anonimowy" itd) w miejsce loginu.

Jeżeli chcemy używać ciągu znaków to należy to graficznie odróżnić od zwykłego loginu/Danych zawodnika. Jedną z opcji, ale chyba słabą jest wyświetlanie pustego pola. Cokolwiek zostanie wybrane powinno być szeroko przemyślane od strony UI i UX.

> 1. Czy nowa wersja powinna zastąpić dotychczasową, czy istnieć równolegle do niej

Potrzebujemy mieć wsteczną kompatybilność do starych contestów (W sensie akcpetujemy jak w starych contestach pojawi się zawodnik anomiowy czy inny tekst zamiast loginu). A można rozważyć, aby nowe contesty uzywały właśnie tej nowej formy anonimizacji.

> 2. Jak powinno wyglądać zarządzanie tym ustawieniem

Pewnie najlepiej Default w kontrolerze i override w ustawieniach konkursu.




[SIO-2467] Bulk move problems between contests Created: 2021-11-28  Updated: 2021-11-28

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Bartłomiej Chmiel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Currently it is possible to move problems on one by one basis. New feature will allow to select and move problems from one contest to another all at once.

This will speed up contest creation when some of the problems are reused.




[SIO-2466] Participation in contest without being visible in Ranking Created: 2021-11-28  Updated: 2021-11-28

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Bartłomiej Chmiel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
We heard that some participants are "afraid" to participate because their result will be visible on the public Ranking list.

This feature will allow less confident participants to take part in contest without exposing their results to their colleagues.




[SIO-2465] Limiting visibility of Ranking list Created: 2021-11-28  Updated: 2021-11-28

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Bartłomiej Chmiel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Setting visibility of Ranking list for particular contest, depending on admin's choice.

Visibility modes:
- hidden
- visible to teacher only
- visible




[SIO-2464] In some browsers "No, go back" button deletes account at /delete_account. Created: 2021-11-24  Updated: 2021-12-8  Resolved: 2021-12-8

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Aleksander Tudruj Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None


 Description   
On page "/delete_account/" the "No, go back" button also removes account.
This problem was diagnosed on chrome based browsers (Google Chrome, new Microsoft Edge), but not on Firefox.

HTML standard says button with no type is submit. Firefox documentation says button with no type is submit if no submit button is present in the form and button otherwise. It worked in Firefox, but only due to incompatibility with the standard.

Therefore they should had been given type different from "submit".

 Comments   
Comment by Gerrit Gerrit [ 2021-11-24 ]
Change oioioi~master~I2d317da237496b526b50a09a468f7aff83e0e8ab, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3786

(SIO-2464) Fix accidental account deletion In some browsers "No, go back" button caused account deletion instead of going back. Button with no type was treated as submit button for "delete_account" form.

Change-Id: I2d317da237496b526b50a09a468f7aff83e0e8ab
Comment by Paweł Dietrich [ 2021-11-24 ]
How about the rest of "Go back buttons" in oioioi? Are they fine?
Comment by Aleksander Tudruj [ 2021-11-24 ]
Every other button "go back" in forms I found already has proper type="button".




[SIO-2463] Incomplete support for quiz problems Created: 2021-11-23  Updated: 2022-01-28

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Mieszko Grodzicki Assignee: Joanna Wojciechowska
Resolution: Unresolved Votes: 0
Labels: None


 Description   
* "Add a quiz", "Quiz name" are not translated into Polish.
* It is possible to enable reveals for a quiz problem, but then trying to open submission page results in RelatedObjectDoesNotExist exception.

 Comments   
Comment by Gerrit Gerrit [ 2021-12-7 ]
Change oioioi~master~Ic5010d2015e58020c3bf8a86ae363e65864a7d73, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3791

SIO-2463 Added translations and bug fixed

Change-Id: Ic5010d2015e58020c3bf8a86ae363e65864a7d73
Comment by Gerrit Gerrit [ 2021-12-7 ]
Change oioioi~master~I54c646f781271099fa1fd31ed7b09dd105969d48, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3792

SIO-2463 Incomplete support for quiz problems All the translations in .po file added and bug: "trying to open submission page results in RelatedObjectDoesNotExist exception"

Change-Id: I54c646f781271099fa1fd31ed7b09dd105969d48
Comment by Gerrit Gerrit [ 2021-12-9 ]
Change oioioi~master~Iaa1c0607281f49f303e90f70aaefba2721752595, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3793

SIO-2463 Incomplete support for quiz problems Bug: "trying to open submission page results in RelatedObjectDoesNotExist exception"

Change-Id: Iaa1c0607281f49f303e90f70aaefba2721752595
Comment by Gerrit Gerrit [ 2022-01-24 ]
Change oioioi~master~Iaa1c0607281f49f303e90f70aaefba2721752595, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3793

SIO-2463 Incomplete support for quiz problems Bug: "trying to open submission page results in RelatedObjectDoesNotExist exception"

Change-Id: Iaa1c0607281f49f303e90f70aaefba2721752595
Comment by Gerrit Gerrit [ 2022-01-24 ]
Change oioioi~master~I589b80ec4ff4f56763ac87834e03e1eff7085558, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3806

ProgrammingContestController.mix_in(ScoresRevealContestControllerMixin) SIO-2463 Incomplete support for quiz problems Tests for quizzes changed -- Submission.objects.get() replaced with QuizSubmission.objects.get(). Testing the bug added -- trying to submit quiz and then reveal it. Whitespaces from oioioi/contests/models.py deleted.

Change-Id: I589b80ec4ff4f56763ac87834e03e1eff7085558
Comment by Gerrit Gerrit [ 2022-01-24 ]
Change oioioi~master~I589b80ec4ff4f56763ac87834e03e1eff7085558, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3806

SIO-2463 Incomplete support for quiz problems Tests for quizzes changed -- Submission.objects.get() replaced with QuizSubmission.objects.get(). Testing the bug added -- trying to submit quiz and then reveal it. Whitespaces from oioioi/contests/models.py deleted.

Change-Id: I589b80ec4ff4f56763ac87834e03e1eff7085558
Comment by Gerrit Gerrit [ 2022-01-28 ]
Change oioioi~master~I589b80ec4ff4f56763ac87834e03e1eff7085558, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3806

SIO-2463 Incomplete support for quiz problems Tests for quizzes changed -- Submission.objects.get() replaced with QuizSubmission.objects.get(). Testing the bug added -- trying to submit quiz and then reveal it. Whitespaces from oioioi/contests/models.py deleted.

Change-Id: I589b80ec4ff4f56763ac87834e03e1eff7085558




[SIO-2462] Upgrade django do wersji 3.2 Created: 2021-11-17  Updated: 2022-04-13  Resolved: 2022-04-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Joanna Wojciechowska
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Joanna Wojciechowska
TAG Reviewer: Tomasz Waleń
Sprint: TAG 2021/22 Summer Sprint 1

 Description   
Wsparcie do 2.2 kończy się 2022-04-01.
Obecna wersja LTS to 3.2.

Release notes 3.2:
- https://docs.djangoproject.com/en/3.2/releases/3.2/

Wersja minimalna: to rozpoznanie niekomatybilności i dokładne oszacowanie złożoności migracji

Przydatne linki:
- https://theorangeone.net/posts/django-32/

Dodatkowy problem, który trzeba będzie rozwiązać to upgrade wersji Pythona na maszynie ripper.
Obecnie do testów w Hudson używany jest Python 3.5 a Django 3.2 wymaga Pythona 3.6 lub lepszego.
(być może da się wykorzystać ~/.pyenv/versions/3.7.10/bin/python)

 Comments   
Comment by Gerrit Gerrit [ 2022-03-9 ]
Change oioioi~master~I481b842dda635e4b64f6dc2f1a92d22db34c5541, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3810

SIO-2462 (wersja robocza)

Change-Id: I481b842dda635e4b64f6dc2f1a92d22db34c5541
Comment by Gerrit Gerrit [ 2022-03-10 ]
Change oioioi~master~I481b842dda635e4b64f6dc2f1a92d22db34c5541, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3810

SIO-2462 Django upgrade to 3.0 (wersja robocza)

Change-Id: I481b842dda635e4b64f6dc2f1a92d22db34c5541
Comment by Gerrit Gerrit [ 2022-03-11 ]
Change oioioi~master~I481b842dda635e4b64f6dc2f1a92d22db34c5541, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3810

SIO-2462 Django upgrade to 3.0 (wersja robocza)

Change-Id: I481b842dda635e4b64f6dc2f1a92d22db34c5541
Comment by Mieszko Grodzicki [ 2022-03-11 ]
Zmiany, które wprowadziłem w https://gerrit.sio2project.mimuw.edu.pl/#/c/3810/ :
1. Zastąpienie ugettext, ugettext_lazy,... (deprecated od 3.0) przez gettext, gettext_lazy,... - te pierwsze to tylko aliasy na drugie.
2. Zastąpienie django.conf.urls.url (deprecated od 3.1), django.conf.urls.include przez django.urls.re_path, django.urls.include - znowu, te pierwsze to tylko aliasy na drugie.
3. Zastąpienie force_text (deprecated od 3.0) przez force_str - tutaj uwaga: ich zachowanie jest identyczne w Pythonie 3, ale różne w Pythonie 2. Jeżeli nie chcielibyśmy na razie rezygnować z Pythona 2, to trzeba przyjrzeć się temu dokładniej.
4. Zastąpienie request.is_ajax() (deprecated od 3.1) przez request.headers.get('x-requested-with') == 'XMLHttpRequest' - było to niezbędne w 4 miejscach - może warto byłoby zrobić pomocniczą funkcję?
5. W testach sprawdzających, czy strona zawiera apostrof, zastąpienie wyszukiwanego "&#39;" przez "&#x27;" - czy to najlepszy sposób? Może można te testy zrobić mądrzej?
6. Zastąpienie is_safe_url przez url_has_allowed_host_and_scheme - zmieniono nazwę w 3.0.
7. Zastąpienie "from django.utils import six" (deprecated od 3.0) w pliku problems/problem_site.py przez "import six".
Comment by Gerrit Gerrit [ 2022-03-14 ]
Change oioioi~master~Id0aaeee56572f534a72d88cff68e1115722068a6, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3811

SIO-2462 Django upgrade to 3.1

While repairing the tests for django 2.2.26 in the ticket SIO-2484,
dictsort:"value.order" is used. Apparently, from django 3.1 in order to
sort elements, comparator is based on _eq_ function (there's no default
ordering), so _eq_ func from FakeOriginInfoValue is used while performing query.

Unfortunately, in some queries it's possible that FakeOriginInfoValue objects
are among OriginInfoValue objects, but OriginInfoValue class doesn't have cat
variable.

Change-Id: Id0aaeee56572f534a72d88cff68e1115722068a6
Comment by Gerrit Gerrit [ 2022-03-14 ]
Change oioioi~master~I481b842dda635e4b64f6dc2f1a92d22db34c5541, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3810

SIO-2462 Django upgrade to 3.0

Changes:
 - Replace deprecated ugettext, ugettext_lazy, ... with gettext, gettext_lazy, etc.
 - Replace deprecated django.conf.urls.url and django.conf.urls.include aliases with django.urls.re_path, django.urls.include.
 - Replace deprecated force_text with force_str.
 - Replace removed request.is_ajax() with new is_ajax function in oioioi.base.utils.
 - Replace "&#39;" in tests with "'" where possible and "&#x27;" in other cases.
 - Replace is_safe_url with its new name url_has_allowed_host_and_scheme.
 - Replace deprecated import of django.utils.six with just import of six.
 - Update django and django-two-factor-auth versions in setup.py.

Change-Id: I481b842dda635e4b64f6dc2f1a92d22db34c5541
Comment by Gerrit Gerrit [ 2022-03-16 ]
Change oioioi~master~I481b842dda635e4b64f6dc2f1a92d22db34c5541, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3810

SIO-2462 Django upgrade to 3.0

Changes:
 - Replace deprecated ugettext, ugettext_lazy, ... with gettext, gettext_lazy, etc.
 - Replace deprecated django.conf.urls.url and django.conf.urls.include aliases with django.urls.re_path, django.urls.include.
 - Replace deprecated force_text with force_str.
 - Replace removed request.is_ajax() with new is_ajax function in oioioi.base.utils.
 - Replace "&#39;" in tests with "'" where possible and "&#x27;" in other cases.
 - Replace is_safe_url with its new name url_has_allowed_host_and_scheme.
 - Replace deprecated import of django.utils.six with just import of six.
 - Update django and django-two-factor-auth versions in setup.py.
 - Remove redundant uses of gettext_lazy from TestPortalViews.

Change-Id: I481b842dda635e4b64f6dc2f1a92d22db34c5541
Comment by Gerrit Gerrit [ 2022-03-23 ]
Change oioioi~master~I856c07af5d30de3f3ed34186c1a097128dc2f42e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3815

SIO-2462 Django upgrade to 3.1

While repairing the tests for django 2.2.26 in the ticket
SIO-2484, dictsort:"value.order" is used. Apparently,
from django 3.1 in order to sort elements, comparator
is based on _eq_ function (there's no default ordering),
so _eq_ func from FakeOriginInfoValue is used while
performing query.

Unfortunately, in some queries it's possible that
FakeOriginInfoValue objects are among OriginInfoValue
objects, but OriginInfoValue class doesn't have the: cat variable.

Change-Id: I856c07af5d30de3f3ed34186c1a097128dc2f42e
Comment by Gerrit Gerrit [ 2022-04-4 ]
Change oioioi~master~I883adb54404d1254b0ec51120d1f13a9bbc2fc45, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3822

SIO-2462 Django update to 3.2

Url changed from "admin" to "admin_profile", problems with verbose_name_plural solved.

Change-Id: I883adb54404d1254b0ec51120d1f13a9bbc2fc45




[SIO-2461] Why is the space a dissallowed character in profile's name field Created: 2021-11-15  Updated: 2021-11-25  Resolved: 2021-11-25

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Paweł Dietrich Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Currently we inform users with invalid characters in their personal details that they change it, but we have users with two-words names (mostly Asians). We should consider redefining allowed symbols in names.
One should investigate where currently allowed symbols came from and update them is possible.

 Comments   
Comment by Joanna Wojciechowska [ 2021-11-25 ]
It looks like the newest version of oioioi is supporting the space in profile's name field -- it works locally and at szkopul website. sio2.mimuw.edu.pl is not supporting it, but in the code everything looks good (space is not allowed only if it's the 1st or the last character).
Comment by Paweł Dietrich [ 2021-11-25 ]
Oh, it turned out it was fixed https://github.com/sio2project/oioioi/issues/43 but not rebased. Thanks!




[SIO-2460] Require password in account deletion form Created: 2021-11-15  Updated: 2021-12-8  Resolved: 2021-12-8

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Paweł Dietrich Assignee: Aleksander Tudruj
Resolution: Fixed Votes: 0
Labels: None


 Description   
We get regularly complaints that sometimes students did not logged out of school computer and someone deleted their account as a bad joke.
What is worse is trying to recover the deleted accounts.

 Comments   
Comment by Gerrit Gerrit [ 2021-11-23 ]
Change oioioi~master~I58de2ce1aff71db0978ec9aa0873a2fc481940a6, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3782

(SIO-2460) fixing 'No, go back' button to actually go back instead of removing account

Change-Id: I58de2ce1aff71db0978ec9aa0873a2fc481940a6
Comment by Gerrit Gerrit [ 2021-11-23 ]
Change oioioi~master~I6bf1fdce60413aa062cedb0c9d6c4398cb851700, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3783

(SIO-2460) added password confirmation for account deletion

Change-Id: I6bf1fdce60413aa062cedb0c9d6c4398cb851700
Comment by Gerrit Gerrit [ 2021-11-23 ]
Change oioioi~master~I741629ae1cc158c9a82dcdc15553cdfa55c3daa4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3784

(SIO-2460) added pl,de,en translations for password deletion confirmation

Change-Id: I741629ae1cc158c9a82dcdc15553cdfa55c3daa4
Comment by Gerrit Gerrit [ 2021-11-23 ]
Change oioioi~master~I64c575ce16d05c08d174258fd971b5d6c2d4c22b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3785

(SIO-2460) changed style, removed logging left from debuging

Change-Id: I64c575ce16d05c08d174258fd971b5d6c2d4c22b
Comment by Gerrit Gerrit [ 2021-11-23 ]
Change oioioi~master~I58de2ce1aff71db0978ec9aa0873a2fc481940a6, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3782

(SIO-2460) fixing 'No, go back' button to actually go back instead of removing account

On Chromium-based browsers 'Go back' button was treated as form submit button which caused deleting account.

Change-Id: I58de2ce1aff71db0978ec9aa0873a2fc481940a6
Comment by Gerrit Gerrit [ 2021-11-23 ]
Change oioioi~master~I6bf1fdce60413aa062cedb0c9d6c4398cb851700, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3783

(SIO-2460) added password confirmation for account deletion

Change-Id: I6bf1fdce60413aa062cedb0c9d6c4398cb851700
Comment by Gerrit Gerrit [ 2021-11-23 ]
Change oioioi~master~I741629ae1cc158c9a82dcdc15553cdfa55c3daa4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3784

(SIO-2460) added pl,de,en translations for password deletion confirmation

Change-Id: I741629ae1cc158c9a82dcdc15553cdfa55c3daa4
Comment by Gerrit Gerrit [ 2021-11-23 ]
Change oioioi~master~I64c575ce16d05c08d174258fd971b5d6c2d4c22b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3785

(SIO-2460) changed style, removed logging left from debuging

Change-Id: I64c575ce16d05c08d174258fd971b5d6c2d4c22b
Comment by Gerrit Gerrit [ 2021-11-24 ]
Change oioioi~master~Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3787

(SIO-2460) Added password for account deletion

Added password authentication for account deletion.
The password input is in the post form. Every incorrect attempt
gives user the "Incorrect password" message.

Change-Id: Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c
Comment by Gerrit Gerrit [ 2021-12-7 ]
Change oioioi~master~Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3787

(SIO-2460) Added password for account deletion

Added password authentication for account deletion.
The password input is in the post form. Every incorrect attempt
gives user the "Incorrect password" message.

Added tests for all scenarios.

Change-Id: Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c
Comment by Gerrit Gerrit [ 2021-12-7 ]
Change oioioi~master~Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3787

(SIO-2460) Require password in account deletion form

Added password authentication for account deletion.
The password input is in the post form. Every incorrect attempt
gives user the "Incorrect password" message.

Added tests for all scenarios.

Change-Id: Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c
Comment by Gerrit Gerrit [ 2021-12-8 ]
Change oioioi~master~Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3787

(SIO-2460) Require password in account deletion form

Added password authentication for account deletion.
The password input is in the post form. Every incorrect attempt
gives user the "Incorrect password" message.

Added tests for all scenarios.

Change-Id: Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c
Comment by Gerrit Gerrit [ 2021-12-8 ]
Change oioioi~master~Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3787

(SIO-2460) Require password in account deletion form

Added password authentication for account deletion.
The password input is in the post form. Every incorrect attempt
gives user the "Incorrect password" message.

Added tests for all scenarios.

Change-Id: Iadfcaa5c8d23717484865cda1dc6a0c948c4d01c




[SIO-2459] Resolve "Stop using CDNs" Github issue Created: 2021-10-31  Updated: 2022-01-10

Status: Open
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Task Priority: Major
Reporter: Paweł Dietrich Assignee: Paweł Dietrich
Resolution: Unresolved Votes: 0
Labels: None


 Description   
In sio2 we use local copy of mathjax. We should document how to set mathjax source for the browsers and close the issue (https://github.com/sio2project/oioioi/issues/44).

 Comments   
Comment by Paweł Dietrich [ 2021-11-15 ]
I found some time and found instructions how to build mathjax
http://docs.mathjax.org/en/latest/web/hosting.html
We should make sure the link is in the `settings.py` to point someone
how to serve local copy of mathjax for offline installations.
Also cloudflare does not ship 2.7.9 and mathjax.org recommends
https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js
which fetches latest 2.x version




[SIO-2458] Unhelpful compiller configuration error messages Created: 2021-10-29  Updated: 2021-11-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Paweł Dietrich Assignee: Patrycja Krzyna
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Currently we enforce some structure on *_COMPILERS in settings.py, but when structure is invalid we raise ImproperlyConfigured error without telling what is invalid, which makes changing the config more challenging.




[SIO-2457] Bardziej intuicyjny zielony pasek Created: 2021-10-27  Updated: 2021-12-23  Resolved: 2021-12-23

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Pasek, który wskazuje ile czasu zostało do końca zadania może wprowadzać w błąd i sugerować, że coś się nie załadowało.
Możliwa poprawka to np dodanie możliwości najechania na pasek i wyświetlenia co znaczy.

 Comments   
Comment by Gerrit Gerrit [ 2021-11-29 ]
Change oioioi~master~I3b53db934ddad6690e2204cfadee66c0315319ce, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3788

SIO-2457 Bardziej intuicyjny zielony pasek

Until now, the progress bar was indicating how much time has passed,
while the clock was showing how much time there is left.
Now, the progress bar starts full and green and as the time passes
it shrinks down and the color changes appropriately - it shows
how much time there is left until the end of the round.

Change-Id: I3b53db934ddad6690e2204cfadee66c0315319ce
Comment by Gerrit Gerrit [ 2021-12-7 ]
Change oioioi~master~I9e9308bf0ed72567253d237b1d2ac9bb47716a8d, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3790

SIO-2457 Bardziej intuicyjny zielony pasek

Until now, the progress bar was indicating how much time has passed,
while the clock was showing how much time there is left.
Now, the progress bar starts full and green and as the time passes
it shrinks down and the color changes appropriately - it shows
how much time there is left until the end of the round.

There had to be a small change in tests made.
One test group checked the count of '%' symbol in the response.
Needed to be incremented by one after my changes.

Change-Id: I9e9308bf0ed72567253d237b1d2ac9bb47716a8d
Comment by Gerrit Gerrit [ 2021-12-18 ]
Change oioioi~master~I9e9308bf0ed72567253d237b1d2ac9bb47716a8d, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3790

SIO-2457 Bardziej intuicyjny zielony pasek

Until now, the progress bar was indicating how much time has passed,
while the clock was showing how much time there is left.
Now, the progress bar starts full and green and as the time passes
it shrinks down and the color changes appropriately - it shows
how much time there is left until the end of the round.

There had to be a small change in tests made.
One test group checked the count of '%' symbol in the response.
Needed to be incremented by one after my changes.

Change-Id: I9e9308bf0ed72567253d237b1d2ac9bb47716a8d




[SIO-2456] Zaznaczanie bieżącej pozycji na rankingu Created: 2021-10-27  Updated: 2022-01-25  Resolved: 2022-01-25

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Kacper Lewandowski
Resolution: Fixed Votes: 0
Labels: None


 Description   
Na stronie rankingu, zalogowany użytkownik mógłby być od razu zaznaczony (teraz trzeba kliknąć Find my place), kliknięcie przycisku mogłoby jedynie przenosić widok do miejsca w rankingu bieżącego użytkownika.

 Comments   
Comment by Gerrit Gerrit [ 2021-12-12 ]
Change oioioi~master~I32b51b343ee1aa7a0cb0d12cc7565776952cf24b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3794

SIO-2456 Showing position in ranking.

User's position in ranking will be marked green automatically.
Currently it is achieved with "Find my place" button
(as well as scrolling to this position).

Change-Id: I32b51b343ee1aa7a0cb0d12cc7565776952cf24b
Comment by Gerrit Gerrit [ 2022-01-19 ]
Change oioioi~master~I2ac4e03717e2baf0603cf82eeeff27858f12b83e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3801

SIO-2456 Showing position in ranking.

User's position in ranking will be marked green automatically.
Currently it is achieved with "Find my place" button
(as well as scrolling to this position).

Change-Id: I32b51b343ee1aa7a0cb0d12cc7565776952cf24b

Change-Id: I2ac4e03717e2baf0603cf82eeeff27858f12b83e
Comment by Gerrit Gerrit [ 2022-01-19 ]
Change oioioi~master~I32b51b343ee1aa7a0cb0d12cc7565776952cf24b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3794

SIO-2456 Showing position in ranking.

User's position in ranking will be marked green automatically.
Currently it is achieved with "Find my place" button
(as well as scrolling to this position).

Change-Id: I32b51b343ee1aa7a0cb0d12cc7565776952cf24b




[SIO-2455] Podgląd wyników zgłoszenia bez odświeżania strony Created: 2021-10-27  Updated: 2022-05-9

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Obsługa dynamicznych stron WWW dla strony moje zgłoszenia. Odświeżanie w tle listy i statusów submittów.

Coś podobnego jest serwerze Staszicowym.

Być może to jest za duże:
- można ograniczyć do tylko wyświetlania informacji "są nowe dane odśwież stronę"
- inne temat to synchronizacja zegara (czas do końca konkursu) - bez odświeżania strony potrafi się rozjechać o kilka minut




[SIO-2454] Poprawki do tłumaczeń Created: 2021-10-27  Updated: 2022-01-12  Resolved: 2022-01-12

Status: Closed
Project: The SIO2 project
Component/s: Translations
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Adam Al-Hosam
Resolution: Obsolete Votes: 0
Labels: None


 Description   
* na stronie głównej zalogowanego użytkownika, w angielskiej wersji:
"Any planned downtime outside of these ours will be separately announced here." ours -> hours
* w angielskiej wersji po wybraniu "edit profile" informacja o zgodzie na przetwarzanie danych osobowych jest po polsku -> powinna być wyświetlana angielska wersja zgody

 Comments   
Comment by Adam Al-Hosam [ 2022-01-12 ]
The issue was local to szkopul and wasn't really a problem in the code available to us.




[SIO-2453] Dark mode Created: 2021-10-27  Updated: 2021-11-17

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Adam Al-Hosam Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Dodanie możliwości zmiany motywu kolorystycznego na ciemniejszy/mniej męczący wzrok.

Potrzebny:
- projekt UI do zmiany trybu dzienny/nocny
- jak mają wyglądać nowe kolory
- ustalić kto musi zaakceptować nowe kolory (poza TAG)
- uzyskać akceptację nowej kolorystyki




[SIO-2452] Wbudowany edytor kodu Created: 2021-10-27  Updated: 2022-05-18  Resolved: 2022-05-18

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: Current Version

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File ace_editor.png    

 Description   
Dodanie edytoru kodu z podświetlaniem składni do formularza Submit.
np. https://codemirror.net/

- research jakie edytory są dostępne (jakie mają możliwości vs wymagania vs ograniczenia licencyjne)
https://docs.google.com/document/d/1oHSLtrvRf5zkoERskaPn1en1mNUE16Vogu_Yho8bBpY/edit?usp=sharing

- czy użytkownik może wlączyć/wyłączyć taki edytor
- co robić na stronie jeśli edytor nie działa poprawnie

 Comments   
Comment by Andrzej Radzimiński [ 2022-03-11 ]
Należy ustalić:
- Korzystanie z CDN/hosting na serwerze.
- Lokalizacja plików statycznych
- Sposób aktywowania edytora z poziomu globalnego, contestu, użytkownika. Moją propozycją jest możliwość użytkownika do ustawiania preferencji automatycznego aktywowania edytora, o ile jest to dozwolone.




[SIO-2451] Uporządkowanie ustawień sklonowanych zadań Created: 2021-10-27  Updated: 2021-10-27

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
- cześć ustawień jest lokalnie per konkurs
- część globalnie na cały system
- usuwanie załączników




[SIO-2450] Prirytetowanie zgłoszeń do sprawdzania Created: 2021-10-27  Updated: 2021-10-27

Status: New
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
możliwość szybszego sprawdzenia wybranych zgłoszeń




[SIO-2449] Symulator konkurs treningu Created: 2021-10-27  Updated: 2021-11-17

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
- przycisk replay dla istniejącego konkursu (np. wirtualny II etap czy egzamin)
- zwłaszcza istotne dla konkursów bez full-feedback
- codeforces ma coś podobnego




[SIO-2448] Webowy manager zadań Created: 2021-10-27  Updated: 2021-10-27

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2021/22 Winter Sprint
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Tomek Waleń Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
- żeby można było łatwo wyszukiwać zadania
- żeby można było łatow kopiować pomiędzy konkursami
- żeby można było dodawać dokumentację do zadań
- żeby można było wersjonować paczki




[SIO-2447] Disqualification on Quiz Submission results in 500 for the user Created: 2021-09-25  Updated: 2022-01-9  Resolved: 2022-01-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Paweł Dietrich Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
We should allow for disqualifications based on any submission type or at least check for valid submission types when adding disqualification object.


RelatedObjectDoesNotExist: Submission has no programsubmission.
(6 additional frame(s) were not displayed)
...
  File "oioioi/contests/views.py", line 214, in my_submissions_view
    header = controller.render_my_submissions_header(request, queryset.all())
  File "oioioi/disqualification/controllers.py", line 154, in render_my_submissions_header
    submissions)
  File "oioioi/disqualification/controllers.py", line 178, in render_disqualifications
    request, submission)
  File "oioioi/similarsubmits/controllers.py", line 91, in _render_disqualification_reason
    ._render_disqualification_reason(request, submission)
  File "oioioi/disqualification/controllers.py", line 113, in _render_disqualification_reason
    submission.programsubmission),

 Comments   
Comment by Gerrit Gerrit [ 2021-12-28 ]
Change oioioi~master~Ia453f1bc0ee83296007a96296eab2fd3d8685eb4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3796

SIO-2447 Fix disqualifications on quiz submissions

Fix bug resulting in 500 error for the user whose
quiz submission is disqualified. Add tests for
disqualifications on quiz submissions.

Change-Id: Ia453f1bc0ee83296007a96296eab2fd3d8685eb4
Comment by Gerrit Gerrit [ 2021-12-31 ]
Change oioioi~master~Ia453f1bc0ee83296007a96296eab2fd3d8685eb4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3796

SIO-2447 Fix disqualifications on quiz submissions

Fix bug resulting in 500 error for the user whose
quiz submission is disqualified. Refractor some of
disqualifications tests and add tests for
disqualifications on quiz submissions.

Change-Id: Ia453f1bc0ee83296007a96296eab2fd3d8685eb4
Comment by Gerrit Gerrit [ 2021-12-31 ]
Change oioioi~master~Ia453f1bc0ee83296007a96296eab2fd3d8685eb4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3796

SIO-2447 Fix disqualifications on quiz submissions

Fix bug resulting in 500 error for the user whose
quiz submission is disqualified. Refractor some of
disqualifications tests and add tests for
disqualifications on quiz submissions.

Change-Id: Ia453f1bc0ee83296007a96296eab2fd3d8685eb4
Comment by Gerrit Gerrit [ 2022-01-9 ]
Change oioioi~master~Ia453f1bc0ee83296007a96296eab2fd3d8685eb4, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3796

SIO-2447 Fix disqualifications on quiz submissions

Fix bug resulting in 500 error for the user whose
quiz submission is disqualified. Refractor some of
disqualifications tests and add tests for
disqualifications on quiz submissions.

Change-Id: Ia453f1bc0ee83296007a96296eab2fd3d8685eb4




[SIO-2446] Duplicate contest problems Created: 2021-09-25  Updated: 2021-09-25

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Alicja Kluczek Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Say you conduct lessons in 2 groups and you want to have the same problems in both contests, but manually copying all problems is annoying. It would be nice to have a button "duplicate contest"




[SIO-2445] Dupli(Multi-)plicates of the same participants in the ranking Created: 2021-09-19  Updated: 2021-09-19

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Alicja Kluczek Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Participants are displayed multiple times despite using one account:
1 Jan Ni 100 100 200
1 Jan Ni 100 100 200
1 Jan Ni 100. 100 200 https://szkopul.edu.pl/c/zadankasrednie/ranking/ for example in this contest, but I've seen it multiple times.




[SIO-2444] Compiller override form bricks on error Created: 2021-09-7  Updated: 2021-09-7

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Paweł Dietrich Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment: Szkopuł/Master


 Description   
How to reproduce:
1. Create a new contest
2. Create compiller override
3. Make error in other part of the form (for example in empty end date)
4. Submit form
5. When errors are rendered compiller overrides are reset since language is not selected, but in <select> it is.




[SIO-2443] Output of checker is inserted to the database as is Created: 2021-07-3  Updated: 2021-10-31

Status: New
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Paweł Dietrich Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
We should escape some of checker's output. For example if checker outputs `0x00` then python throws `ValueError: A string literal cannot contain NUL (0x00) characters.`

Real example: https://sio2.mimuw.edu.pl/c/ontak2021/s/456709/




[SIO-2442] 500 error when editing multilanguage news in newsfeed Created: 2021-06-21  Updated: 2022-01-9  Resolved: 2022-01-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Paweł Dietrich Assignee: Mieszko Grodzicki
Resolution: Fixed Votes: 0
Labels: tag1


 Description   
Details are on sentry:

https://sentry.io/organizations/the-sio2-project/issues/2468677411/events/6ccfc92789eb42a0893afab164cb3ed4/?project=116859

To reproduce:
1. Create news and add translation to it
2. Save news
3. Edit news
4. On save 500 error is thrown

 Comments   
Comment by Gerrit Gerrit [ 2021-12-29 ]
Change oioioi~master~I40542c693cd0bb4856ed63b65e4a24e6f7a0e086, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3797

SIO-2442 Fix multilanguage news edit error

Fix NewsLanguageVersion.save() method so that
it is possible to edit existing NewsLanguageVersion.

Strengthen newsfeed tests:
 - fix test_news_edit, as it was sending form with
incorrect id and not editing anything,
 - make all tests in TestNewsfeedOptions check whether
sending the form results in redirection to newsfeed main
page (which means change was successful).

Change-Id: I40542c693cd0bb4856ed63b65e4a24e6f7a0e086




[SIO-2441] Add hyperlink to "Paczkomat" Created: 2021-05-18  Updated: 2022-02-28

Status: Open
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jakub Niściór Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Description   
Add hyperlink to "Paczkomat" to view associated with problem instance.




[SIO-2440] Add "Copy code" button to source view Created: 2021-05-18  Updated: 2021-06-8  Resolved: 2021-06-8

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jakub Niściór Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Description   
Add "copy code" button to source view, to make copying longer code easier.

 Comments   
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I259c104723aa700255af899c45e6c13fcc4ddfa7, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3724

SIO-2440 Add "Copy code" button to source view

Change-Id: I259c104723aa700255af899c45e6c13fcc4ddfa7
Comment by Gerrit Gerrit [ 2021-05-25 ]
Change oioioi~master~I259c104723aa700255af899c45e6c13fcc4ddfa7, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3724

SIO-2440 Add "Copy code" button to source view

Change-Id: I259c104723aa700255af899c45e6c13fcc4ddfa7
Comment by Gerrit Gerrit [ 2021-06-1 ]
Change oioioi~master~I259c104723aa700255af899c45e6c13fcc4ddfa7, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3724

SIO-2440 Add "Copy code" button to source view

Change-Id: I259c104723aa700255af899c45e6c13fcc4ddfa7




[SIO-2439] Check difficulty of deployment of SIO2 and simplify it Created: 2021-05-17  Updated: 2021-05-17

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Jakub Niściór Assignee: Jakub Niściór
Resolution: Unresolved Votes: 0
Labels: None
Environment: Linux


 Description   
SIO2 is hard to deploy. Easy installer is not really easy (it throws loads of errors and finally doesn't install SIO2 properly.

1. Try to deploy SIO2 on local machine with minimal working configuration.
2. Simplify deployment (probably modify the readme).

 Comments   
Comment by Gerrit Gerrit [ 2021-05-17 ]
Change oioioi~master~Ib84f3f2b8f3205eb3b579a081281926767963b4b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3721

SIO-2439 Improve readme concerning deployment

- Delete part about easy installer (it desn't work)
- Other minor readme fixes

Change-Id: Ib84f3f2b8f3205eb3b579a081281926767963b4b




[SIO-2438] Szkopuł and SIO2 try to insert non-unique job_id to evalmgr_queuedjob Created: 2021-05-15  Updated: 2021-05-15

Status: New
Project: The SIO2 project
Component/s: Evaluation Engine / Workers, OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Paweł Dietrich Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: HTML File jira    

 Description   
Look at database logs attached below.




[SIO-2437] NOTIFICATIONS_SERVER_ENABLED setting is confusing Created: 2021-05-15  Updated: 2021-05-15

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Paweł Dietrich Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
NOTIFICATIONS_SERVER_ENABLED only tells supervisord whether to start notification-server. However, at first glance, it is not clear what does NOTIFICATIONS_SERVER_ENABLED means:
- Will it start notification server?
- Will oioioi connect to provided server details but not spawn a notification server?
- Will oioioi not connect to any notification server?




[SIO-2436] Add autoreveal for problems with as many reveals as submissions Created: 2021-05-15  Updated: 2022-01-31  Resolved: 2022-01-31

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Paweł Dietrich Assignee: Mieszko Grodzicki
Resolution: Fixed Votes: 0
Labels: None


 Description   
Currently if organisers want to show users their scores without reports reveal configs are used. However users must click reveal score every time they submit a solution.

If no. of submissions <= no. of reveals we should reveal scores automatically.

Proposition of implementation:

Instead of checking if no. of submissions <= no. of reveals, allow to leave no. of reveals field empty and add explaining help text to it. Then if no. of reveals is None, user can see the score of their every submission, unless it is submitted during the last [disable_time] minutes of the round. In "Score revealing" section on submission page:
  - If user cannot see the score, there is a message explaining why (same as this shown now instead of reveal button) - submission has status "CE", it is not scored yet or it was submitted during period, when reveals are disabled.
  - If user can see the score, there is the score and additional information that scores of all submissions in the task are visible automatically, unless submitted during the last [disable_time] minutes of the round.

The other way could be to completely remove "Score revealing" section from submission page when no. of reveals is empty. But then, where would we show the information about disabling reveals in last [disable_time] minutes of the contest, if it is enabled? Also, waiting long for a submission to be scored can make user think that the reveals are disabled if there is no "Score revealing" section.

If no. of reveals if specified, system behaviour should not change.

Comment from Wojtek:
wygląda spoko, o ile się nie pogryzie z kontrolerami OI / potyczek, które overridują widoczność wyników na swoje sposoby

 Comments   
Comment by Paweł Dietrich [ 2021-12-2 ]
Mieszko, czy jest szansa, że będzie kod gotowy do poniedziałkowej rundy potyczek?
Comment by Mieszko Grodzicki [ 2021-12-2 ]
Bardzo duża, postaram się jeszcze dzisiaj wrzucić commita gotowego na code review.
Comment by Paweł Dietrich [ 2021-12-2 ]
Wspaniale. Nie obiecuję, że dzisiaj na to popatrzę, ale jak diff nie będzie zbyt duży to będziemy chcieli do poniedziałku wrzucić na potyczki.
Comment by Gerrit Gerrit [ 2021-12-2 ]
Change oioioi~master~I0a3a7b7fe1c2521fe8526a24bf44f05a4e18aa22, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3789

SIO-2436 Add autoreveal

Add possibility to leave 'reveal limit' field empty in ScoreRevealConfig,
which makes all submissions automatically revealed to user.

Change-Id: I0a3a7b7fe1c2521fe8526a24bf44f05a4e18aa22
Comment by Gerrit Gerrit [ 2021-12-3 ]
Change oioioi~master~I0a3a7b7fe1c2521fe8526a24bf44f05a4e18aa22, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3789

SIO-2436 Add autoreveal

Add possibility to leave 'reveal limit' field empty in ScoreRevealConfig,
which makes all submissions automatically revealed to user.

Change-Id: I0a3a7b7fe1c2521fe8526a24bf44f05a4e18aa22




[SIO-2435] Allow custom sorting of the list of problems /p/ Created: 2021-05-15  Updated: 2021-05-15

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Paweł Dietrich Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PNG File Screenshot_20210515_101719.png    

 Description   
Sometimes alphabetical order is not desired and current workaround is changing problem_instance id, which is not perfect either




[SIO-2434] In OI contest /files return 403 if none of the rounds has started Created: 2021-05-13  Updated: 2021-11-19  Resolved: 2021-11-19

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Paweł Dietrich Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None


 Description   
In OI contests if:
  - Round A starts at time t
  - Round A has not started yet
  - and other rounds start after t
then participants get 403 on /files

 Comments   
Comment by Paweł Dietrich [ 2021-11-19 ]
Unable to reproduce anymore. Will close.




[SIO-2433] Enable localization for dates, times and numbers Created: 2021-05-13  Updated: 2021-11-17

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Szymon Czyżmański Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag1


 Description   
Currently:
- all dates are presented in ISO format

Expected behaviour:
- show date in format described by locale setting (i.e. in https://en.wikipedia.org/wiki/Date_and_time_notation_in_the_United_States)




[SIO-2432] Add styling to summary tag in portal posts Created: 2021-05-11  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2020/21 Summer Sprint 2
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Tomasz Domagała Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~Icca49fbbe7efd847a3d90cdfbd3da16ced348871, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3728

SIO-2432 Add styling to summary tag in portal posts Currently summary tag is indistinguishable from plain text. This commit adds link-like styling.

Change-Id: Icca49fbbe7efd847a3d90cdfbd3da16ced348871
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~Icca49fbbe7efd847a3d90cdfbd3da16ced348871, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3728

SIO-2432 Add styling to summary tag in portal posts Currently summary tag is indistinguishable from plain text. This commit adds link-like styling.

Change-Id: Icca49fbbe7efd847a3d90cdfbd3da16ced348871
Comment by Gerrit Gerrit [ 2021-06-1 ]
Change oioioi~master~Icca49fbbe7efd847a3d90cdfbd3da16ced348871, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3728

SIO-2432 Add styling to summary tag in portal posts Currently summary tag is indistinguishable from plain text. This commit adds link-like styling.

Change-Id: Icca49fbbe7efd847a3d90cdfbd3da16ced348871
Comment by Gerrit Gerrit [ 2021-06-1 ]
Change oioioi~master~Icca49fbbe7efd847a3d90cdfbd3da16ced348871, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3728

SIO-2432 Add styling to summary tag in portal posts Currently summary tag is indistinguishable from plain text. This commit adds link-like styling.

Change-Id: Icca49fbbe7efd847a3d90cdfbd3da16ced348871
Comment by Gerrit Gerrit [ 2021-06-1 ]
Change oioioi~master~Icca49fbbe7efd847a3d90cdfbd3da16ced348871, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3728

SIO-2432 Add styling to summary tag in portal posts Currently summary tag is indistinguishable from plain text. This commit adds link-like styling.

Change-Id: Icca49fbbe7efd847a3d90cdfbd3da16ced348871




[SIO-2431] Improve add_js function workaround Created: 2021-05-10  Updated: 2021-05-10

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Hubert Badocha Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
add_js method on Media object was used in method get_compiler_for_language in oioioi/programs/controllers.py but it was removed without any notice in django 2.0 current workaround is a bit hacky and uses private api

 Comments   
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~python3~I66f362d0c3d688cd689ef703c431d5241c5e3b7e, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3660

Django2 support breaking changes.

Changed dependecies.
Made a workaround for lack of 'add_js' function https://jira.sio2project.mimuw.edu.pl/browse/SIO-2431.
Removed redundant apps from settings.
Removed last urlresolvers import.
Changed include to new syntax.
Removed context parameter from from_db_value.
Removed non-timezone-aware methods.

Change-Id: I66f362d0c3d688cd689ef703c431d5241c5e3b7e




[SIO-2430] Make problems' names translatable Created: 2021-05-7  Updated: 2021-05-25  Resolved: 2021-05-25

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Szymon Czyżmański Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Comments   
Comment by Gerrit Gerrit [ 2021-05-15 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-15 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-16 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-17 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-17 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of repeated problems

Some of the problems in the Szkopul are repeated: there exist one version
of a particular problem with legacy name in Polish and the other one with
legacy name in English. All of the pairs of repeated problems share the
same short name and exactly one legacy origin tag. After the change
"(SIO-2430) Make problems' names translatable" it is possible to make
problem names translatable by the means of addding ProblemName objects to
a particular problem.

*Add command for creating translations of legacy names of repeated problems
 in Polish and English and associating these translations with the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of repeated problems

Some of the problems in the Szkopul are repeated: there exist one version
of a particular problem with legacy name in Polish and the other one with
legacy name in English. All of the pairs of repeated problems share the
same short name and exactly one legacy origin tag. After the change
"(SIO-2430) Make problems' names translatable" it is possible to make
problem names translatable by the means of addding ProblemName objects to
a particular problem.

*Add command for creating translations of legacy names of repeated problems
 in Polish and English and associating these translations with the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of problems

Some of the problems in the Szkopul are repeated: there exist one
version of a particular problem with legacy name in Polish and the
other one with legacy name in English. All of the pairs of repeated
problems share the same short name and exactly one legacy origin tag.
After the change "(SIO-2430) Make problems' names translatable" it
is possible to make problem names translatable by the means of addding
ProblemName objects to a particular problem.

*Add command for creating translations of legacy names of repeated
 problems in Polish and English and associating these translations with
 the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of problems

Some of the problems in the Szkopul are repeated: there exist one
version of a particular problem with legacy name in Polish and the
other one with legacy name in English. All of the pairs of repeated
problems share the same short name and exactly one legacy origin tag.
After the change "(SIO-2430) Make problems' names translatable" it
is possible to make problem names translatable by the means of addding
ProblemName objects to a particular problem.

*Add command for creating translations of legacy names of repeated
 problems in Polish and English and associating these translations with
 the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I43c17d11998594eafa3ae2d9dbb66ceb011b6cee, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3729

(no-ticket) Allow for problem name's transll. in sinol packages

Problems in Szkopul can be created with sinol packages - standarized
archives with problem data. After the change "(SIO-2430) Make problems'
names translatable" it is possible to manually add problem name's
translations in the problem's settings. It would be convenient to allow
for creating them when problem package is loaded.

*Allow to add new fields in `config.yml` file, each matching the pattern
 `title_[a-z]{2}`, where `[a-z]{2}` represents two-letter language code
 defined in `settings.py`. Each such field represents translation of given
 problem's name in the corresponding language.
*Modify SinolPackage class to accommodate for new possible fields.
*Add test file and tests.

Change-Id: I43c17d11998594eafa3ae2d9dbb66ceb011b6cee
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I43c17d11998594eafa3ae2d9dbb66ceb011b6cee, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3729

(no-ticket) Allow for problem name's transll. in sinol packages

Problems in Szkopul can be created with sinol packages - standarized
archives with problem data. After the change "(SIO-2430) Make problems'
names translatable" it is possible to manually add problem name's
translations in the problem's settings. It would be convenient to allow
for creating them when problem package is loaded.

*Allow to add new fields in `config.yml` file, each matching the pattern
 `title_[a-z]{2}`, where `[a-z]{2}` represents two-letter language code
 defined in `settings.py`. Each such field represents translation of
 given problem's name in the corresponding language.
*Modify SinolPackage class to accommodate for new possible fields.
*Add test file and tests.

Change-Id: I43c17d11998594eafa3ae2d9dbb66ceb011b6cee
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I43c17d11998594eafa3ae2d9dbb66ceb011b6cee, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3729

(no-ticket) Allow for problem name's transll. in sinol packages

Problems in Szkopul can be created with sinol packages - standarized
archives with problem data. After the change "(SIO-2430) Make problems'
names translatable" it is possible to manually add problem name's
translations in the problem's settings. It would be convenient to allow
for creating them when problem package is loaded.

*Allow to add new fields in `config.yml` file, each matching the pattern
 `title_[a-z]{2}`, where `[a-z]{2}` represents two-letter language code
 defined in `settings.py`. Each such field represents translation of
 given problem's name in the corresponding language.
*Modify SinolPackage class to accommodate for new possible fields.
*Add test file and tests.

Change-Id: I43c17d11998594eafa3ae2d9dbb66ceb011b6cee
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of problems

Some of the problems in the Szkopul are repeated: there exist one
version of a particular problem with legacy name in Polish and the
other one with legacy name in English. All of the pairs of repeated
problems share the same short name and exactly one legacy origin tag.
After the change "(SIO-2430) Make problems' names translatable" it
is possible to make problem names translatable by the means of addding
ProblemName objects to a particular problem.

*Add command for creating translations of legacy names of repeated
 problems in Polish and English and associating these translations with
 the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of problems

Some of the problems in the Szkopul are repeated: there exist one
version of a particular problem with legacy name in Polish and the
other one with legacy name in English. All of the pairs of repeated
problems share the same short name and exactly one legacy origin tag.
After the change "(SIO-2430) Make problems' names translatable" it
is possible to make problem names translatable by the means of addding
ProblemName objects to a particular problem.

*Add command for creating translations of legacy names of repeated
 problems in Polish and English and associating these translations with
 the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I43c17d11998594eafa3ae2d9dbb66ceb011b6cee, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3729

(no-ticket) Allow for problem name's transll. in sinol packages

Problems in Szkopul can be created with sinol packages - standarized
archives with problem data. After the change "(SIO-2430) Make problems'
names translatable" it is possible to manually add problem name's
translations in the problem's settings. It would be convenient to allow
for creating them when problem package is loaded.

*Allow to add new fields in `config.yml` file, each matching the pattern
 `title_[a-z]{2}`, where `[a-z]{2}` represents two-letter language code
 defined in `settings.py`. Each such field represents translation of
 given problem's name in the corresponding language.
*Modify SinolPackage class to accommodate for new possible fields.
*Add test file and tests.

Change-Id: I43c17d11998594eafa3ae2d9dbb66ceb011b6cee
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of problems

Some of the problems in the Szkopul are repeated: there exist one
version of a particular problem with legacy name in Polish and the
other one with legacy name in English. All of the pairs of repeated
problems share the same short name and exactly one legacy origin tag.
After the change "(SIO-2430) Make problems' names translatable" it
is possible to make problem names translatable by the means of addding
ProblemName objects to a particular problem.

*Add command for creating translations of legacy names of repeated
 problems in Polish and English and associating these translations with
 the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-19 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-19 ]
Change oioioi~master~I43c17d11998594eafa3ae2d9dbb66ceb011b6cee, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3729

(no-ticket) Allow for problem name's transll. in sinol packages

Problems in Szkopul can be created with sinol packages - standarized
archives with problem data. After the change "(SIO-2430) Make problems'
names translatable" it is possible to manually add problem name's
translations in the problem's settings. It would be convenient to allow
for creating them when problem package is loaded.

*Allow to add new fields in `config.yml` file, each matching the pattern
 `title_[a-z]{2}`, where `[a-z]{2}` represents two-letter language code
 defined in `settings.py`. Each such field represents translation of
 given problem's name in the corresponding language.
*Modify SinolPackage class to accommodate for new possible fields.
*Add test file and tests.

Change-Id: I43c17d11998594eafa3ae2d9dbb66ceb011b6cee
Comment by Gerrit Gerrit [ 2021-05-19 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-19 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of problems

Some of the problems in the Szkopul are repeated: there exist one
version of a particular problem with legacy name in Polish and the
other one with legacy name in English. All of the pairs of repeated
problems share the same short name and exactly one legacy origin tag.
After the change "(SIO-2430) Make problems' names translatable" it
is possible to make problem names translatable by the means of addding
ProblemName objects to a particular problem.

*Add command for creating translations of legacy names of repeated
 problems in Polish and English and associating these translations with
 the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-19 ]
Change oioioi~master~I43c17d11998594eafa3ae2d9dbb66ceb011b6cee, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3729

(no-ticket) Allow for problem name's transll. in sinol packages

Problems in Szkopul can be created with sinol packages - standarized
archives with problem data. After the change "(SIO-2430) Make problems'
names translatable" it is possible to manually add problem name's
translations in the problem's settings. It would be convenient to allow
for creating them when problem package is loaded.

*Allow to add new fields in `config.yml` file, each matching the pattern
 `title_[a-z]{2}`, where `[a-z]{2}` represents two-letter language code
 defined in `settings.py`. Each such field represents translation of
 given problem's name in the corresponding language.
*Modify SinolPackage class to accommodate for new possible fields.
*Add test file and tests.

Change-Id: I43c17d11998594eafa3ae2d9dbb66ceb011b6cee
Comment by Gerrit Gerrit [ 2021-05-19 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-19 ]
Change oioioi~master~I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3715

(SIO-2430) Make problems' names translatable

Up to this point, there was no mechanism enabling translation
of the name of a particular problem in the Szkopul. As a result,
the name of a problem was displayed in the same way regardless
of the chosen language.

*Change old 'name' field of the 'Problem' model to 'legacy_name'
 field (compatibility with existing sinolpack files).
*Add 'ProblemName' model representing a translation of the problem's
 name to a particular language.
*Add 'name' property to the 'Problem' model that retrieves
 translation in the currently chosen language or the value of
 'legacy_name' field if no such a translation exists.
*Add panel for adding and modifying translations of the problem's
 name to ProblemAdmin.
*Modify existing database queries to accommodate for changes.
*Modify existing json fixtures to accommodate for changes.
*Add tests.

Change-Id: I2bd42f3e0b6a61de53f88414891aeaaa92fd8d9a
Comment by Gerrit Gerrit [ 2021-05-20 ]
Change oioioi~master~I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3723

(no-ticket) Command for creating names' translations of problems

Some of the problems in the Szkopul are repeated: there exist one
version of a particular problem with legacy name in Polish and the
other one with legacy name in English. All of the pairs of repeated
problems share the same short name and exactly one legacy origin tag.
After the change "(SIO-2430) Make problems' names translatable" it
is possible to make problem names translatable by the means of addding
ProblemName objects to a particular problem.

*Add command for creating translations of legacy names of repeated
 problems in Polish and English and associating these translations with
 the problems.
*Add files with all possible legacy origin tags present in the database
 at the production.
*Add tests for the new command.

Change-Id: I6bb9c5fb6b67c4094d285876d7a6d3bb98ead7f3
Comment by Gerrit Gerrit [ 2021-05-20 ]
Change oioioi~master~I43c17d11998594eafa3ae2d9dbb66ceb011b6cee, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3729

(no-ticket) Allow for problem name's transll. in sinol packages

Problems in Szkopul can be created with sinol packages - standarized
archives with problem data. After the change "(SIO-2430) Make problems'
names translatable" it is possible to manually add problem name's
translations in the problem's settings. It would be convenient to allow
for creating them when problem package is loaded.

*Allow to add new fields in `config.yml` file, each matching the pattern
 `title_[a-z]{2}`, where `[a-z]{2}` represents two-letter language code
 defined in `settings.py`. Each such field represents translation of
 given problem's name in the corresponding language.
*Modify SinolPackage class to accommodate for new possible fields.
*Add test file and tests.

Change-Id: I43c17d11998594eafa3ae2d9dbb66ceb011b6cee
Comment by Gerrit Gerrit [ 2021-05-20 ]
Change oioioi~master~I43c17d11998594eafa3ae2d9dbb66ceb011b6cee, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3729

(no-ticket) Allow for problem name's transll. in sinol packages

Problems in Szkopul can be created with sinol packages - standarized
archives with problem data. After the change "(SIO-2430) Make problems'
names translatable" it is possible to manually add problem name's
translations in the problem's settings. It would be convenient to allow
for creating them when problem package is loaded.

*Allow to add new fields in `config.yml` file, each matching the pattern
 `title_[a-z]{2}`, where `[a-z]{2}` represents two-letter language code
 defined in `settings.py`. Each such field represents translation of
 given problem's name in the corresponding language.
*Modify SinolPackage class to accommodate for new possible fields.
*Add test file and tests.

Change-Id: I43c17d11998594eafa3ae2d9dbb66ceb011b6cee




[SIO-2429] Different limits per language Created: 2021-05-4  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: For the OI Team
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Alicja Kluczek Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Add different time/memory limits overrides per language

 Comments   
Comment by Gerrit Gerrit [ 2021-05-4 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-17 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~Ic5b22c3277f4662bac5074abd3badad07b8df92a, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3694

(SIO-2429) Allow different time/memory limits per language in config.

This change is requested by OIJ team to have different
time/memory limits for Python and C++.
OIJ jury couldn't come up with common limits for both
languages, and creating two different tasks with different
limits was confusing for participants. Especially since
it's hard to control whether the participant exceeded
the allowed number of submissions. The hack above was
introduced in 2021 OIJ edition, but we expect it to be
completely resolved by this new feature.

Allow to add new field in `config.yml` file: `override_limits`.
It has the same structure as normal limits config, except
it allows to override specific group/global limit per language.
For example, adding at the end of config:

override_tests:
  cpp:
    time_limit: 2000
    memory_limits:
      1: 20000
      3: 10000

would change time limit for c++ submissions to 2 seconds,
and for memory limits, test groups 1 and 3 would have
recpectively 20000 and 10000 kiB memory limits.
Other, not overriden groups, would remain with default limits.

Change-Id: Ic5b22c3277f4662bac5074abd3badad07b8df92a




[SIO-2428] Enable linking problems to the portal pages Created: 2021-04-27  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Summer Sprint 3

Type: Improvement Priority: Major
Reporter: Tymoteusz Wiśniewski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Currently linking portal pages with problems is disabled, even though code supporting it already exists. Enable it, so that problems linked by a page are automatically detected from its content and the information about related portal pages appears in the problem sites / somewhere around them.

 Comments   
Comment by Gerrit Gerrit [ 2021-06-8 ]
Change oioioi~master~I918179a2ca2d85f2d35eb0986fe9a7047e4ad92b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3759

SIO-2428 Enable linking problems with portal pages

Display information about related portal pages in a new problem
site tab.

Change-Id: I918179a2ca2d85f2d35eb0986fe9a7047e4ad92b
Comment by Gerrit Gerrit [ 2021-06-8 ]
Change oioioi~master~I918179a2ca2d85f2d35eb0986fe9a7047e4ad92b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3759

SIO-2428 Enable linking problems with portal pages

Display information about related portal pages in a new problem
site tab.

Change-Id: I918179a2ca2d85f2d35eb0986fe9a7047e4ad92b




[SIO-2427] Add django 2.2 support Created: 2021-04-20  Updated: 2022-01-2  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: TAG 2020/21 Summer Sprint 2

Type: Improvement Priority: Major
Reporter: Hubert Badocha Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Comments   
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~python3~I8858ff4c6ebd69f2271150b11291ed9404ffa372, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3692

SIO-2427 Add django 2.2 support

Removed python_2_unicode_compatible decorator.
Silenced admin.E130 system check.
Removed use of None as url arguemnt.
Started creating object if it's id is used in tests as foreign key.
Adjusted dependencies.

Change-Id: I8858ff4c6ebd69f2271150b11291ed9404ffa372
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~python3~I8858ff4c6ebd69f2271150b11291ed9404ffa372, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3692

SIO-2427 Add django 2.2 support

Removed python_2_unicode_compatible decorator.
Silenced admin.E130 system check.
Removed use of None as url arguemnt.
Started creating object if it's id is used in tests as foreign key.
Adjusted dependencies.
Django 2.2.21 support is not there as it introduced breaking change that I'm not sure how to adjsut to.

Change-Id: I8858ff4c6ebd69f2271150b11291ed9404ffa372
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~python3~I8858ff4c6ebd69f2271150b11291ed9404ffa372, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3692

SIO-2427 Add django 2.2 support

Removed python_2_unicode_compatible decorator and made migration after its removal.
Silenced admin.E130 system check.
Removed use of None as url arguemnt.
Started creating object if its id is used in tests as foreign key.
Adjusted dependencies.
Django 2.2.21 support is not there as it introduced breaking change(name of a file cannot be path) that I'm not sure how to adjust to.

Change-Id: I8858ff4c6ebd69f2271150b11291ed9404ffa372
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~python3~I8858ff4c6ebd69f2271150b11291ed9404ffa372, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3692

SIO-2427 Add django 2.2 support

Removed python_2_unicode_compatible decorator and made migration after its removal.
Silenced admin.E130 system check.
Removed use of None as url arguemnt.
Started creating object if its id is used in tests as foreign key.
Adjusted dependencies.
Django 2.2.21 support is not there as it introduced breaking change(name of a file cannot be path) that I'm not sure how to adjust to.

Change-Id: I8858ff4c6ebd69f2271150b11291ed9404ffa372
Comment by Gerrit Gerrit [ 2021-05-17 ]
Change oioioi~python3~I8858ff4c6ebd69f2271150b11291ed9404ffa372, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3692

SIO-2427 Add django 2.2 support

Removed python_2_unicode_compatible decorator.
Silenced admin.E130 system check.
Removed use of None as url arguemnt.
Started creating object if its id is used in tests as foreign key.
Adjusted dependencies.
Django 2.2.21 support is not there as it introduced breaking change(name of a file cannot be path) that I'm not sure how to adjust to.

Change-Id: I8858ff4c6ebd69f2271150b11291ed9404ffa372
Comment by Gerrit Gerrit [ 2021-05-17 ]
Change oioioi~python3~I8858ff4c6ebd69f2271150b11291ed9404ffa372, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3692

SIO-2427 Add django 2.2 support

Removed python_2_unicode_compatible decorator.
Silenced admin.E130 system check.
Removed use of None as url arguemnt.
Started creating object if its id is used in tests as foreign key.
Adjusted dependencies.
Django 2.2.21 support is not there as it introduced breaking change(name of a file cannot be path) that I'm not sure how to adjust to.

Change-Id: I8858ff4c6ebd69f2271150b11291ed9404ffa372
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~python3~I8858ff4c6ebd69f2271150b11291ed9404ffa372, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3692

SIO-2427 Add django 2.2 support

Removed python_2_unicode_compatible decorator.
Silenced admin.E130 system check.
Removed use of None as url arguemnt.
Started creating object if its id is used in tests as a foreign key.
Adjusted dependencies.
Django 2.2.21 support is not there as it introduced breaking change(name of a file cannot be path) that I'm not sure how to adjust to.

Change-Id: I8858ff4c6ebd69f2271150b11291ed9404ffa372




[SIO-2426] Add django 2.1 support Created: 2021-04-20  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: TAG 2020/21 Summer Sprint 2

Type: Improvement Priority: Major
Reporter: Hubert Badocha Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Comments   
Comment by Gerrit Gerrit [ 2021-04-20 ]
Change oioioi~python3~I9b451ebe22f4edad44a06c412bedb94611129bf0, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3672

SIO-2426 Add django 2.1 support

Added 1.11 compatible changes.
Change load staticfiles to load static in templates.
Removed use of django.utils.translation.string_concat().
Updated is_safe_url to new standard.

Change-Id: I9b451ebe22f4edad44a06c412bedb94611129bf0
Comment by Gerrit Gerrit [ 2021-04-20 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added obligatory positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Bumped Django version.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-21 ]
Change oioioi~python3~I9b451ebe22f4edad44a06c412bedb94611129bf0, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3672

SIO-2426 Add django 2.1 support

Added 1.11 compatible changes.
Change load staticfiles to load static in templates.
Removed use of django.utils.translation.string_concat().
Few more string enforcements.
Updated is_safe_url to new standard.

Change-Id: I9b451ebe22f4edad44a06c412bedb94611129bf0
Comment by Gerrit Gerrit [ 2021-04-21 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added obligatory positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Bumped Django version.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-21 ]
Change oioioi~python3~I9b451ebe22f4edad44a06c412bedb94611129bf0, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3672

SIO-2426 Add django 2.1 support

Added 1.11 compatible changes.
Change load staticfiles to load static in templates.
Removed use of django.utils.translation.string_concat().
Updated is_safe_url to new standard.
Few more string enforecements.
Added workaround for sqlite change.

Change-Id: I9b451ebe22f4edad44a06c412bedb94611129bf0
Comment by Gerrit Gerrit [ 2021-04-21 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added obligatory positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-21 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added obligatory positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-25 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added obligatory positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added requests to context in responses.
Fixed migration problems in sqlite test.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~master~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3688

SIO-2426 Add django 2.1 support

Added obligatory positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_view_permissions() to custom AdminModel classes.
Fixed migration problems in sqlite test.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added obligatory positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added requests to context in responses.
Fixed migration problems in sqlite test.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added obligatory positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-05-7 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-05-7 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-05-7 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-05-8 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.
Adjusted date in tests to fit in 32bit timestamp.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~python3~I9b451ebe22f4edad44a06c412bedb94611129bf0, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3672

SIO-2426 Add django 2.1 support

Added 1.11 compatible changes.
Change load staticfiles to load static in templates.
Removed use of django.utils.translation.string_concat().
Updated is_safe_url to new standard.
Few more string enforecements.
Added temporary workaround for sqlite change.

Change-Id: I9b451ebe22f4edad44a06c412bedb94611129bf0
Comment by Gerrit Gerrit [ 2021-05-10 ]
Change oioioi~python3~I9b451ebe22f4edad44a06c412bedb94611129bf0, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3672

SIO-2426 Add django 2.1 support

Added 1.11 compatible changes.
Change load staticfiles to load static in templates.
Removed use of django.utils.translation.string_concat().
Updated is_safe_url to new standard.
Few more string enforecements.
Added temporary workaround for sqlite change.

Change-Id: I9b451ebe22f4edad44a06c412bedb94611129bf0
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.
Adjusted date in tests to fit in 32bit timestamp.

TODO:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~python3~Iccc870ed9b7da334713ab1e8265702edf49989d7, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3673

SIO-2426 Add django 2.1 support

Added optional positional obj parameter to InlineAdmin.
Added obligatory positional request parameter to authenticate.
Adapted FileInFiletracker to change File class.
Adjusted dependencies versions.
Added support to has_change_permission in get_form on admin sites.
Added has_changed_permission to requiring it model admins.
Fixed migration problems in sqlite test.
Adjusted date in tests to fit in 32bit timestamp.

TODO for me in further commit:
Review other model admins and check if they also need custon view permissions.

Change-Id: Iccc870ed9b7da334713ab1e8265702edf49989d7




[SIO-2425] Integrate exportszu with a plagiarism detection tool Created: 2021-04-19  Updated: 2021-05-31  Resolved: 2021-05-31

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Summer Sprint 2

Type: Improvement Priority: Minor
Reporter: Tymoteusz Wiśniewski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Comments   
Comment by Gerrit Gerrit [ 2021-05-12 ]
Change oioioi~master~I287c6eb89f5e82522a6954e46b06fefff390cff1, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3713

SIO-2425 Add integration with MOSS

Create an option for contest admin to export all submissions for
a certain problem and submit them to the MOSS plagiarism detection
system.

Change-Id: I287c6eb89f5e82522a6954e46b06fefff390cff1
Comment by Gerrit Gerrit [ 2021-05-13 ]
Change oioioi~master~I287c6eb89f5e82522a6954e46b06fefff390cff1, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3713

SIO-2425 Add integration with MOSS

Create an option for contest admin to export all submissions for
a certain problem and submit them to the MOSS plagiarism detection
system.

Change-Id: I287c6eb89f5e82522a6954e46b06fefff390cff1
Comment by Gerrit Gerrit [ 2021-05-14 ]
Change oioioi~master~I287c6eb89f5e82522a6954e46b06fefff390cff1, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3713

SIO-2425 Add integration with MOSS

Create an option for contest admin to export all submissions for
a certain problem and submit them to the MOSS code similarity
detection system.

Change-Id: I287c6eb89f5e82522a6954e46b06fefff390cff1
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I287c6eb89f5e82522a6954e46b06fefff390cff1, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3713

SIO-2425 Add integration with MOSS

Create an option for contest admin to export all submissions for
a certain problem and submit them to the MOSS code similarity
detection system.

Change-Id: I287c6eb89f5e82522a6954e46b06fefff390cff1
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I287c6eb89f5e82522a6954e46b06fefff390cff1, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3713

SIO-2425 Add integration with MOSS

Create an option for contest admin to export all submissions for
a certain problem and submit them to the MOSS code similarity
detection system.

Change-Id: I287c6eb89f5e82522a6954e46b06fefff390cff1




[SIO-2424] Refactor and slim down the code Created: 2021-04-19  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Summer Sprint 2

Type: Improvement Priority: Major
Reporter: Tymoteusz Wiśniewski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Comments   
Comment by Gerrit Gerrit [ 2021-04-20 ]
Change oioioi~master~Id2b7a1d63ca9fc71bd09f4852e3c2247f967306b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3669

SIO-2424 Remove avatar app

The 'avatar' app contains only one context processor, which
is explicitly used by the settings files. Move the content of this
app to the 'base' module and remove it.

Change-Id: Id2b7a1d63ca9fc71bd09f4852e3c2247f967306b
Comment by Gerrit Gerrit [ 2021-04-20 ]
Change oioioi~master~Id2b7a1d63ca9fc71bd09f4852e3c2247f967306b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3669

SIO-2424 Remove avatar app

The 'avatar' app contains only one context processor, which
is explicitly used by the settings files. Move the content of this
app to the 'base' module and remove it.

Change-Id: Id2b7a1d63ca9fc71bd09f4852e3c2247f967306b
Comment by Gerrit Gerrit [ 2021-04-26 ]
Change oioioi~master~I90aa1ccb51c02ed1c7ebce947253a77625e4937d, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3679

SIO-2424 Clean up the portals app (WIP)

Change-Id: I90aa1ccb51c02ed1c7ebce947253a77625e4937d
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~master~I90aa1ccb51c02ed1c7ebce947253a77625e4937d, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3679

SIO-2424 Clean up the portals app (WIP)

Change-Id: I90aa1ccb51c02ed1c7ebce947253a77625e4937d
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~master~I90aa1ccb51c02ed1c7ebce947253a77625e4937d, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3679

SIO-2424 Clean up the portals app

Remove redundant model logic and repeating code.

Change-Id: I90aa1ccb51c02ed1c7ebce947253a77625e4937d
Comment by Gerrit Gerrit [ 2021-04-30 ]
Change oioioi~master~I90aa1ccb51c02ed1c7ebce947253a77625e4937d, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3679

SIO-2424 Clean up the portals app

Remove redundant model logic and repeating code.

Change-Id: I90aa1ccb51c02ed1c7ebce947253a77625e4937d
Comment by Gerrit Gerrit [ 2021-05-3 ]
Change oioioi~master~I90aa1ccb51c02ed1c7ebce947253a77625e4937d, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3679

SIO-2424 Clean up the portals app

Remove redundant model logic and repeating code.

Change-Id: I90aa1ccb51c02ed1c7ebce947253a77625e4937d
Comment by Gerrit Gerrit [ 2021-05-7 ]
Change oioioi~master~I9723fbc3fcefccb80562a272582cd185663922eb, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3700

SIO-2424 Remove unnecessary portal page import commands

Remove import commands which were used once to import pages from
the MAIN service. They are not needed anymore and using them to
import more content to the OIOIOI now may cause more harm than expected.

Change-Id: I9723fbc3fcefccb80562a272582cd185663922eb
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~master~If2d72ae94cd83a9370e80b0586787e105c340b7e, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3695

(no-ticket) Add migration for NodeLanguageVersion (portals app)

Add a migration for a NodeLanguageVersion model, which should
have been added in the change "SIO-2424 Clean up the portals app".

Change-Id: If2d72ae94cd83a9370e80b0586787e105c340b7e




[SIO-2423] Add ranking for each user group in a contest Created: 2021-04-13  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Summer Sprint 2

Type: Improvement Priority: Major
Reporter: Tomasz Domagała Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Comments   
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~master~I355c920340fe63a05d77b41db4e65216013fd1ed, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3708

SIO-2423 Add user group rankings

Provides the ability to create separate contest rankings
for specified user groups. This can be a useful tool for
teachers to manage multiple classes in the same contest.

Change-Id: I355c920340fe63a05d77b41db4e65216013fd1ed
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~master~I355c920340fe63a05d77b41db4e65216013fd1ed, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3708

SIO-2423 Add user group rankings

Provides the ability to create separate contest rankings
for specified user groups. This can be a useful tool for
teachers to manage multiple classes in the same contest.

Change-Id: I355c920340fe63a05d77b41db4e65216013fd1ed
Comment by Gerrit Gerrit [ 2021-05-11 ]
Change oioioi~master~I355c920340fe63a05d77b41db4e65216013fd1ed, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3708

SIO-2423 Add user group rankings

Provides the ability to create separate contest rankings
for specified user groups. This can be a useful tool for
teachers to manage multiple classes in the same contest.

Change-Id: I355c920340fe63a05d77b41db4e65216013fd1ed
Comment by Gerrit Gerrit [ 2021-05-18 ]
Change oioioi~master~I355c920340fe63a05d77b41db4e65216013fd1ed, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3708

SIO-2423 Add user group rankings

Provides the ability to create separate contest rankings
for specified user groups. This can be a useful tool for
teachers to manage multiple classes in the same contest.

Change-Id: I355c920340fe63a05d77b41db4e65216013fd1ed




[SIO-2422] Make technical details of contests and problems available for users Created: 2021-04-13  Updated: 2022-02-28

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: TAG 2020/21 Summer Sprint 2

Type: Improvement Priority: Minor
Reporter: Jakub Wasilewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Description   
Contest wide technical information like how points are calculated, compiler version or whether last or best submission counts are hard to access.

Problem wide technical information like available languages, compilation commands lines, code size limit etc. are also rather unavailable.

The goal of this issue is to make those information available and easy to find

 Comments   
Comment by Gerrit Gerrit [ 2021-06-7 ]
Change oioioi~master~Ic729880e8e4fccfadd15753233f27cf1d35f06cc, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3754

(SIO-2422) Make technical details of contest publicly visible.

This feature has been requested by Polish Olympiad in Informatics.

Display contest technical settings on the contest's dashboard.
Previously this information was available only in the controller's
source code, which made it tedious to check.

The information shown on the dashboard:
* Available programming languages,
        * Execution mode (CPU/sio2jail),
        * Compilers and libraries versions,
        * Scoring methods
- Single test scoring,
- Test group scoring,
- Which submission is treated as definitive (LAST/MAX/MAX_REVEALED).
Methods have link to the wiki, where in the near future will be placed
their descriptions.

Change-Id: Ic729880e8e4fccfadd15753233f27cf1d35f06cc




[SIO-2421] Add django 2.0 support Created: 2021-04-13  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: TAG 2020/21 Summer Sprint 2

Type: Improvement Priority: Major
Reporter: Hubert Badocha Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2




[SIO-2420] Change table styling in portals to improve readability Created: 2021-04-13  Updated: 2021-04-13  Resolved: 2021-04-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Tomasz Domagała Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Currently, the table element rendered in markdown posts has no visible borders and weird cell alignment. Especially with big tables, it makes it impossible to read them.

 Comments   
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I2590035ab7ed93f3bd2ab00de59795c61d3e3d96, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3654

SIO-2420 Change table styling in portals

Currently, the table element in portals is hard to read
due to the lack of visible borders and wierd cell alignment.

Change-Id: I2590035ab7ed93f3bd2ab00de59795c61d3e3d96
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I2590035ab7ed93f3bd2ab00de59795c61d3e3d96, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3654

SIO-2420 Change table styling in portals

Currently, the table element in portals is hard to read
due to the lack of visible borders and wierd cell alignment.

Change-Id: I2590035ab7ed93f3bd2ab00de59795c61d3e3d96
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I2590035ab7ed93f3bd2ab00de59795c61d3e3d96, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3654

SIO-2420 Change table styling in portals

Currently, the table element in portals is hard to read
due to the lack of visible borders and weird cell alignment.

Change-Id: I2590035ab7ed93f3bd2ab00de59795c61d3e3d96




[SIO-2419] Add basic info about selected problem while reuploading a package Created: 2021-04-12  Updated: 2021-06-8  Resolved: 2021-06-8

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Tomasz Nowak Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
On "Admin Playground -> Contest Administration -> Problems -> Reupload package" there is absolutely no information about the selected problem. I wasn't sure if I clicked on the right problem and I had no way of checking it besides going back and reclicking the "Reupload package" link.




[SIO-2418] Improve algorithm and difficulty tags system Created: 2021-04-12  Updated: 2021-05-7  Resolved: 2021-05-7

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Summer Sprint 2

Type: Improvement Priority: Major
Reporter: Szymon Czyżmański Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Summer Sprint 2

 Comments   
Comment by Gerrit Gerrit [ 2021-04-12 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Modify AlgorithmTag and AlgorithmTagLocalization models to
 accomodate for shorter algorithms abbreviations and longer,
 localized full names of algorithms.
*Add DifficultyTagLocalization model to accomodate for
 difficulty tags translations.
*Modify DifficutTagProposal to relate DifficultyTag objects
 with users proposals.
*Display difficulty tags in a currently chosen language.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for connecting existing algorithm and
 difficulty tags with given problems (drop-down lists).
*Make searching for algorithm and difficulty tags use their
 full names in all available languages.
*Add button for adding users algorithm tag proposals.
*Add displaying users difficulty tag proposals in the problem
 settings view.
*Add other minor UI tweaks.
*Modify existing tests and add new test cases.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-04-12 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Modify AlgorithmTag and AlgorithmTagLocalization models to
 accomodate for shorter algorithms abbreviations and longer,
 localized full names of algorithms.
*Add DifficultyTagLocalization model to accomodate for
 difficulty tags translations.
*Modify DifficutTagProposal to relate DifficultyTag objects
 with users proposals.
*Display difficulty tags in a currently chosen language.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for connecting existing algorithm and
 difficulty tags with given problems (drop-down lists).
*Make searching for algorithm and difficulty tags use their
 full names in all available languages.
*Add button for adding users algorithm tag proposals.
*Add displaying users difficulty tag proposals in the problem
 settings view.
*Add other minor UI tweaks.
*Modify existing tests and add new test cases.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-04-12 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Modify AlgorithmTag and AlgorithmTagLocalization models to
 accomodate for shorter algorithms abbreviations and longer,
 localized full names of algorithms.
*Add DifficultyTagLocalization model to accomodate for
 difficulty tags translations.
*Modify DifficutTagProposal to relate DifficultyTag objects
 with users proposals.
*Display difficulty tags in a currently chosen language.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for connecting existing algorithm and
 difficulty tags with given problems (drop-down lists).
*Make searching for algorithm and difficulty tags use their
 full names in all available languages.
*Add button for adding users algorithm tag proposals.
*Add displaying users difficulty tag proposals in the problem
 settings view.
*Add other minor UI tweaks.
*Modify existing tests and add new test cases.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-04-12 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Modify AlgorithmTag and AlgorithmTagLocalization models to
 accomodate for shorter algorithms abbreviations and longer,
 localized full names of algorithms.
*Add DifficultyTagLocalization model to accomodate for
 difficulty tags translations.
*Modify DifficutTagProposal to relate DifficultyTag objects
 with users proposals.
*Display difficulty tags in a currently chosen language.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for connecting existing algorithm and
 difficulty tags with given problems (drop-down lists).
*Make searching for algorithm and difficulty tags use their
 full names in all available languages.
*Add button for adding users algorithm tag proposals.
*Add displaying users difficulty tag proposals in the problem
 settings view.
*Add other minor UI tweaks.
*Modify existing tests and add new test cases.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-04-12 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Modify AlgorithmTag and AlgorithmTagLocalization models to
 accomodate for shorter algorithms abbreviations and longer,
 localized full names of algorithms.
*Add DifficultyTagLocalization model to accomodate for
 difficulty tags translations.
*Modify DifficutTagProposal to relate DifficultyTag objects
 with users proposals.
*Display difficulty tags in a currently chosen language.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for connecting existing algorithm and
 difficulty tags with given problems (drop-down lists).
*Make searching for algorithm and difficulty tags use their
 full names in all available languages.
*Add button for adding users algorithm tag proposals.
*Add displaying users difficulty tag proposals in the problem
 settings view.
*Add other minor UI tweaks.
*Modify existing tests and add new test cases.
*Refactor old code.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Modify AlgorithmTag and AlgorithmTagLocalization models to
 accomodate for shorter algorithms abbreviations and longer,
 localized full names of algorithms.
*Add DifficultyTagLocalization model to accomodate for
 difficulty tags translations.
*Modify DifficutTagProposal to relate DifficultyTag objects
 with users proposals.
*Display difficulty tags in a currently chosen language.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for connecting existing algorithm and
 difficulty tags with given problems (drop-down lists).
*Make searching for algorithm and difficulty tags use their
 full names in all available languages.
*Add button for adding users algorithm tag proposals.
*Add displaying users difficulty tag proposals in the problem
 settings view.
*Add other minor UI tweaks.
*Modify existing tests and add new test cases.
*Refactor old code.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-05-2 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Make difficulty tags translatable.
*Display difficulty tags by their full names in a currently
 chosen language.
*Force users to choose proposed difficulty level for a problem
 only from existing difficulty tags.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for relating existing algorithm and
 difficulty tags with a problem (drop-down lists instead
 of text input fields).
*Internationalize searching by algorithm and difficulty tags.
*Miscellaneous UI tweaks.
*Modify existing tests and add new test cases.
*Refactor old code.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-05-2 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Make difficulty tags translatable.
*Display difficulty tags by their full names in a currently
 chosen language.
*Force users to choose proposed difficulty level for a problem
 only from existing difficulty tags.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for relating existing algorithm and
 difficulty tags with a problem (drop-down lists instead
 of text input fields).
*Internationalize searching by algorithm and difficulty tags.
*Miscellaneous UI tweaks.
*Modify existing tests and add new test cases.
*Refactor old code.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-05-2 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Make difficulty tags translatable.
*Display difficulty tags by their full names in a currently
 chosen language.
*Force users to choose proposed difficulty level for a problem
 only from existing difficulty tags.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for relating existing algorithm and
 difficulty tags with a problem (drop-down lists instead
 of text input fields).
*Internationalize searching by algorithm and difficulty tags.
*Miscellaneous UI tweaks.
*Modify existing tests and add new test cases.
*Refactor old code.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-05-3 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Make difficulty tags translatable.
*Display difficulty tags by their full names in a currently
 chosen language.
*Force users to choose proposed difficulty level for a problem
 only from existing difficulty tags.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for relating existing algorithm and
 difficulty tags with a problem (drop-down lists instead
 of text input fields).
*Internationalize searching by algorithm and difficulty tags.
*Miscellaneous UI tweaks.
*Modify existing tests and add new test cases.
*Refactor old code.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-05-3 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Make difficulty tags translatable.
*Display difficulty tags by their full names in a currently
 chosen language.
*Force users to choose proposed difficulty level for a problem
 only from existing difficulty tags.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for relating existing algorithm and
 difficulty tags with a problem (drop-down lists instead
 of text input fields).
*Internationalize searching by algorithm and difficulty tags.
*Miscellaneous UI tweaks.
*Modify existing tests and add new test cases.
*Refactor old code.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-05-4 ]
Change oioioi~master~If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3651

(SIO-2418) Improve algorithm and difficulty tags system

Problems in Szkopul can be tagged with three types of tags:
algorithm, difficulty and origin. There is a need to improve
algorithm and difficulty tags system in order to provide
a better problems search and discovery for the users.

*Make difficulty tags translatable.
*Display difficulty tags by their full names in a currently
 chosen language.
*Force users to choose proposed difficulty level for a problem
 only from existing difficulty tags.
*Modify admin panel for creating new tags: make algorithm
 and difficulty tag localizations obligatory for all available
 languages.
*Modify admin panel for relating existing algorithm and
 difficulty tags with a problem (drop-down lists instead
 of text input fields).
*Internationalize searching by algorithm and difficulty tags.
*Miscellaneous UI tweaks.
*Modify existing tests and add new test cases.
*Refactor old code.

Change-Id: If54de8b0aaf7a006eb6980bdae8c07513d9c4a1e
Comment by Gerrit Gerrit [ 2021-05-6 ]
Change oioioi~master~I27cfaf2d20aadc1c6e0c8f9c41a7880676cdb0cd, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3696

(no-ticket) Fix permissions for labeling problems with tags

*Allow any user who can edit a problem to label the problem
 with the algorithm and difficulty tags.
*Restore the function 'can_admin_problem' to its original
 definition (before the '(SIO-2418) Improve algorithm and
 difficulty tags system' change).

Change-Id: I27cfaf2d20aadc1c6e0c8f9c41a7880676cdb0cd
Comment by Gerrit Gerrit [ 2021-05-7 ]
Change oioioi~master~I27cfaf2d20aadc1c6e0c8f9c41a7880676cdb0cd, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3696

(no-ticket) Fix permissions for labeling problems with tags

*Allow any user who can edit a problem to label the problem
 with the algorithm and difficulty tags.
*Restore the function 'can_admin_problem' to its original
 definition (before the '(SIO-2418) Improve algorithm and
 difficulty tags system' change).
*Add docs for the function 'can_admin_problem'.

Change-Id: I27cfaf2d20aadc1c6e0c8f9c41a7880676cdb0cd
Comment by Gerrit Gerrit [ 2021-05-7 ]
Change oioioi~master~I27cfaf2d20aadc1c6e0c8f9c41a7880676cdb0cd, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3696

(no-ticket) Fix permissions for labeling problems with tags

*Allow any user who can edit a problem to label the problem
 with the algorithm and difficulty tags.
*Restore the function 'can_admin_problem' to its original
 definition (before the '(SIO-2418) Improve algorithm and
 difficulty tags system' change).
*Add docs for the function 'can_admin_problem'.

Change-Id: I27cfaf2d20aadc1c6e0c8f9c41a7880676cdb0cd




[SIO-2417] Adding a problem which has model solution in language not available in contest controller crashes site Created: 2021-03-30  Updated: 2021-03-30

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Alicja Kluczek Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Server gets assertion error when trying to retrieve compiler for the submission -- which doesn't exist, because contest controller overrides general compiler names.

Create contest controller with specified languages -- e.g. add
def get_allowed_language(self):
      return ['C']
to oioioi/oi/controller.py
Create a public task (you can use Sumżyce) with py solution.
Add to contest. Try adding to round (the site crashes just after clicking save) from basic problem form view. Voila.






[SIO-2416] Create an easy way to replace a problem statement Created: 2021-03-24  Updated: 2021-11-17  Resolved: 2021-04-19

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Tymoteusz Wiśniewski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Sometimes during a contest a problem statement has to be quickly patched/replaced without reevaluating the entire problem package and participant submissions. Create an interface for a contest admin which allows him to quickly replace problem statements.

 Comments   
Comment by Gerrit Gerrit [ 2021-03-30 ]
Change oioioi~master~I40fd789286d6fe4f920a11a0bd03d348f2e5a57e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3648

SIO-2416 Add a problem site tab for replacing problem statements

Replacing package files requires reevaluation of the package.
Add a tab to problem site which can quickly replace problem
statement in place without rejudging submissions or reevaluating
the package.

Change-Id: I40fd789286d6fe4f920a11a0bd03d348f2e5a57e
Comment by Gerrit Gerrit [ 2021-03-30 ]
Change oioioi~master~I40fd789286d6fe4f920a11a0bd03d348f2e5a57e, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3648

SIO-2416 Add a problem site tab for replacing problem statements

Replacing package files requires reevaluation of the package.
Add a tab to problem site which can quickly replace problem
statement in place without rejudging submissions or reevaluating
the package.

Change-Id: I40fd789286d6fe4f920a11a0bd03d348f2e5a57e
Comment by Gerrit Gerrit [ 2021-04-6 ]
Change oioioi~master~I40fd789286d6fe4f920a11a0bd03d348f2e5a57e, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3648

SIO-2416 Add a problem site tab for replacing problem statements

Replacing package files requires reevaluation of the package.
Add a tab to problem site which can quickly replace problem
statement in place without rejudging submissions or reevaluating
the package.

Change-Id: I40fd789286d6fe4f920a11a0bd03d348f2e5a57e
Comment by Gerrit Gerrit [ 2021-04-6 ]
Change oioioi~master~I40fd789286d6fe4f920a11a0bd03d348f2e5a57e, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3648

SIO-2416 Add a problem site tab for replacing problem statements

Replacing package files requires reevaluation of the package.
Add a tab to problem site which can quickly replace problem
statement in place without rejudging submissions or reevaluating
the package.

Change-Id: I40fd789286d6fe4f920a11a0bd03d348f2e5a57e




[SIO-2415] Remove the use of the legacy problem tags Created: 2021-03-23  Updated: 2021-05-7  Resolved: 2021-05-7

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Task Priority: Major
Reporter: Szymon Czyżmański Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2021-04-1 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-1 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-1 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-1 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-1 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-1 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-2 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-2 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-3 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-3 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove old tags use and replace it with the new tags
  if necessary.
* Remove the old tags tests or mark them to be skipped.
* Add a temporary UI for creating the new tags in the
  problem-settings view (to be improved).
* Add tests for the new UI.
* Correct a few typos.
* Add a few cosmetic changes to old code for a better
  readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-7 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove the old tags use and replace it with the new tags
  use if necessary.
* Remove the old tags tests.
* Remove the old tags formset and the attachments formset
  from the simpleui_problem_settings view and add links
  to the problem admin page for the new tags and the
  attachments modifications.
* Correct a few typos.
* Add a few cosmetic changes to the old code for a better
  code readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-7 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove the old tags use and replace it with the new tags
  use if necessary.
* Remove the old tags tests.
* Remove the old tags formset and the attachments formset
  from the simpleui_problem_settings view and add links
  to the problem admin page for the new tags and the
  attachments modifications.
* Correct a few typos.
* Add a few cosmetic changes to the old code for a better
  code readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-7 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove the old tags use and replace it with the new tags
  use if necessary.
* Remove the old tags tests.
* Remove the old tags formset and the attachments formset
  from the simpleui_problem_settings view and add links
  to the problem admin page for the new tags and the
  attachments modifications.
* Correct a few typos.
* Add a few cosmetic changes to the old code for a better
  code readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-12 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove the old tags use and replace it with the new tags
  use if necessary.
* Remove the old tags tests.
* Remove the old tags formset and the attachments formset
  from the simpleui_problem_settings view and add links
  to the problem admin page for the new tags and the
  attachments modifications.
* Correct a few typos.
* Add a few cosmetic changes to the old code for a better
  code readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-28 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove the old tags use and replace it with the new tags
  use if necessary.
* Remove the old tags tests.
* Remove the old tags formset and the attachments formset
  from the simpleui_problem_settings view and add links
  to the problem admin page for the new tags and the
  attachments modifications.
* Correct a few typos.
* Add a few cosmetic changes to the old code for a better
  code readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-28 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove the old tags use and replace it with the new tags
  use if necessary.
* Remove the old tags tests.
* Remove the old tags formset and the attachments formset
  from the simpleui_problem_settings view and add links
  to the problem admin page for the new tags and the
  attachments modifications.
* Correct a few typos.
* Add a few cosmetic changes to the old code for a better
  code readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-28 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove the old tags use and replace it with the new tags
  use if necessary.
* Remove the old tags tests.
* Remove the old tags formset and the attachments formset
  from the simpleui_problem_settings view and add links
  to the problem admin page for the new tags and the
  attachments modifications.
* Correct a few typos.
* Add a few cosmetic changes to the old code for a better
  code readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee
Comment by Gerrit Gerrit [ 2021-04-28 ]
Change oioioi~master~Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3649

(SIO-2415) Remove the use of the legacy problem tags

There are currently old (legacy) problem tags used for
searching problems and quizzes in the Szkopul alongside
new, more specific ones: algorithm, origin and difficulty
tags. There is a need to differentiate between tags types
in order to provide a better problems search and discovery
for the users.

* Remove the old tags use and replace it with the new tags
  use if necessary.
* Remove the old tags tests.
* Remove the old tags formset and the attachments formset
  from the simpleui_problem_settings view and add links
  to the problem admin page for the new tags and the
  attachments modifications.
* Correct a few typos.
* Add a few cosmetic changes to the old code for a better
  code readability.

Change-Id: Id9dc04ce89a59ac8eaaee437798ef6dc8c5b03ee




[SIO-2414] Add spoiler block to markdown Created: 2021-03-19  Updated: 2021-04-13  Resolved: 2021-04-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Tomasz Domagała Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Some of the main2 courses use spoilers to show certain content only after the user click. We need this functionality in the markdown renderer to nicely translate them from HTML to MD.

 Comments   
Comment by Gerrit Gerrit [ 2021-03-23 ]
Change oioioi~master~Ia8c9676766d42d4dde091612960725e8aad58ea9, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3637

SIO-2414 Add support for spoilers in markdown

Default markdown specification does not include
a spoiler tag, but we need it to translate some
of the courses from main2.edu.pl/main2/courses/.

Change-Id: Ia8c9676766d42d4dde091612960725e8aad58ea9
Comment by Gerrit Gerrit [ 2021-03-23 ]
Change oioioi~master~Ia8c9676766d42d4dde091612960725e8aad58ea9, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3637

SIO-2414 Add support for spoilers in markdown

Default markdown specification does not include
a spoiler tag, but we need it to translate some
of the courses from main2.edu.pl/main2/courses/.

Change-Id: Ia8c9676766d42d4dde091612960725e8aad58ea9
Comment by Gerrit Gerrit [ 2021-03-23 ]
Change oioioi~master~Ia8c9676766d42d4dde091612960725e8aad58ea9, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3637

SIO-2414 Add support for spoilers in markdown

Default markdown specification does not include
a spoiler tag, but we need it to translate some
of the courses from main2.edu.pl/main2/courses/.

Change-Id: Ia8c9676766d42d4dde091612960725e8aad58ea9
Comment by Gerrit Gerrit [ 2021-03-30 ]
Change oioioi~master~Ia8c9676766d42d4dde091612960725e8aad58ea9, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3637

SIO-2414 Add support for spoilers in markdown

Default markdown specification does not include
a spoiler tag, but we need it to translate some
of the courses from main2.edu.pl/main2/courses/.

Change-Id: Ia8c9676766d42d4dde091612960725e8aad58ea9
Comment by Gerrit Gerrit [ 2021-03-30 ]
Change oioioi~master~Ia8c9676766d42d4dde091612960725e8aad58ea9, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3637

SIO-2414 Add support for spoilers in markdown

Default markdown specification does not include
a spoiler tag, but we need it to translate some
of the courses from main2.edu.pl/main2/courses/.

Change-Id: Ia8c9676766d42d4dde091612960725e8aad58ea9
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~Ia8c9676766d42d4dde091612960725e8aad58ea9, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3637

SIO-2414 Add support for spoilers in markdown

Default markdown specification does not include
a spoiler tag, but we need it to translate some
of the courses from main2.edu.pl/main2/courses/.

Change-Id: Ia8c9676766d42d4dde091612960725e8aad58ea9




[SIO-2413] Integrate export of test results for all submissions per problem Created: 2021-03-19  Updated: 2021-06-5

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Trivial
Reporter: Bartosz Kostka Assignee: Alicja Kluczek
Resolution: Unresolved Votes: 0
Labels: None

Attachments: HTML File sio_export    

 Description   
We would like to be able to create a table with the following header:
- Submission id
- Contestant name
- Time of submission
- Language
- Score
- test0a status
...
- test 9z status
Apparently it is useful for jury. I made a sample script to do this (in attachment).




[SIO-2411] Change the main2 courses format from html to markdown Created: 2021-03-16  Updated: 2021-04-13  Resolved: 2021-04-13

Status: Resolved
Project: The SIO2 project
Component/s: Zzz! / None of the above / I really don't know
Affects Version/s: Near Future
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Tomasz Domagała Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
We want to publish courses from unused main2 service (https://main2.edu.pl/main2/courses/) on the szkopul.edu.pl website.
To do this nicely, we need them in markdown format.




[SIO-2410] Unnecessary trimming whitespaces in test run view. Created: 2021-02-18  Updated: 2021-02-18

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: For the OI Team
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Alicja Kluczek Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None





[SIO-2409] Optimization task -- Adding a permission in contest view is really slow Created: 2021-02-11  Updated: 2021-03-22  Resolved: 2021-03-22

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Alicja Kluczek Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Currently adding a permission is really slow -- on sio2.mimuw.edu.pl it takes few minutes for site to unfreeze. I think the cause is that it fetches all users and processes them. Maybe instead of form "pick user"&"pick permission" form, we could generate invite codes for admins?

Or maybe we would just insert user's nickname in the form as a plaintext?

 Comments   
Comment by Gerrit Gerrit [ 2021-03-11 ]
Change oioioi~master~I4d6196a94c35a8100cf32acfacd8ab203dd9923c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3602

SIO-2409 Change user choice widget in contest permissions admin

The default fk object selection widget fetches all possible choices from
the db and creates a dropdown select with options. This caused problems
because with 10s of thousands of users the browser would freeze when
loading the options.

This commit changes the widget. Now the field accepts just a plaintext
username.

Also a minor change in conftest.py is included - function-level imports
are moved to global-level so that the imports need not to be executed for
every test that is run.

Change-Id: I4d6196a94c35a8100cf32acfacd8ab203dd9923c
Comment by Gerrit Gerrit [ 2021-03-14 ]
Change oioioi~master~I4d6196a94c35a8100cf32acfacd8ab203dd9923c, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3602

SIO-2409 Change user choice widget in contest permissions admin

The default fk object selection widget fetches all possible choices from
the db and creates a dropdown select with options. This caused problems
because with 10s of thousands of users the browser would freeze when
loading the options.

This commit changes the widget. Now the field accepts just a plaintext
username.

Change-Id: I4d6196a94c35a8100cf32acfacd8ab203dd9923c




[SIO-2408] Enable deletion of questions in a quiz Created: 2021-01-27  Updated: 2021-11-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Szymon Czyżmański Assignee: Patrycja Krzyna
Resolution: Unresolved Votes: 0
Labels: None





[SIO-2407] Fix post report confirmation layout Created: 2021-01-27  Updated: 2021-02-3  Resolved: 2021-02-3

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Bug Priority: Major
Reporter: Jakub Niściór Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Winter Sprint

 Description   
Report button in should be centralized.
Textbox should not be resizable.

 Comments   
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ie81db0104684f99b5ed69c7b8ca4383558ba1771, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3594

SIO-2407 Fix textarea form layout

- Add new css class 'form-wide' to discard max-width for forms
- Add global style 'resize: none' for textareas
- Fix confirm_report layouot by adding new 'form-wide' css class.

Change-Id: Ie81db0104684f99b5ed69c7b8ca4383558ba1771
Comment by Gerrit Gerrit [ 2021-02-3 ]
Change oioioi~master~Ie81db0104684f99b5ed69c7b8ca4383558ba1771, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3594

SIO-2407 Fix textarea form layout

- Add new css class 'form-wide' to discard max-width for forms
- Add new css class '.non-resizable' for textareas, which prevents resizing of the textarea.
- Fix confirm_report layouot by adding new 'form-wide' class to form, and 'non-resizable' class to textarea.

Change-Id: Ie81db0104684f99b5ed69c7b8ca4383558ba1771
Comment by Gerrit Gerrit [ 2021-02-3 ]
Change oioioi~master~Ie81db0104684f99b5ed69c7b8ca4383558ba1771, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3594

SIO-2407 Fix textarea form layout

- Add new css class 'form-wide' to discard max-width for forms
- Add new css class '.non-resizable' for textareas, which prevents resizing of the textarea.
- Fix confirm_report layouot by adding new 'form-wide' class to form, and 'non-resizable' class to textarea.

Change-Id: Ie81db0104684f99b5ed69c7b8ca4383558ba1771
Comment by Gerrit Gerrit [ 2021-02-3 ]
Change oioioi~master~Ie81db0104684f99b5ed69c7b8ca4383558ba1771, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3594

SIO-2407 Fix textarea form layout

- Add new css class 'form-wide' to discard max-width for forms
- Add new css class '.non-resizable' for textareas, which prevents resizing of the textarea.
- Fix confirm_report layouot by adding new 'form-wide' class to form, and 'non-resizable' class to textarea.

Change-Id: Ie81db0104684f99b5ed69c7b8ca4383558ba1771




[SIO-2406] Filetracker not connecting on docker on newest sio2 version Created: 2021-01-27  Updated: 2021-10-31

Status: New
Project: The SIO2 project
Component/s: Filetracker, OIOIOI, SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Alicja Kluczek Assignee: Wojciech Dubiel
Resolution: Unresolved Votes: 0
Labels: None
Environment: docker-compose version 1.28.0, build unknown
Docker version 20.10.2, build 2291f610ae
kernel 5.10.10-arch1-1 27-01-2020

Attachments: Text File filetracker.log     PNG File sio2.png    

 Description   
Sio2 attempt to build using

OIOIOI_UID=$(id -u) docker-compose -f docker-compose-dev.yml -f extra/docker/docker-compose-dev-noserver.yml up -d
OIOIOI_UID=$(id -u) docker-compose -f docker-compose-dev.yml -f extra/docker/docker-compose-dev-noserver.yml exec web python manage.py runserver 0.0.0.0:8000

 Comments   
Comment by Paweł Dietrich [ 2021-03-1 ]
I fixed this issue on my computer by getting in the container during building of OIOIOI image

docker exec -it <container-id> bash

And adding web to the /etc/hosts

echo -e '127.0.0.1\tweb' | sudo tee -a /etc/hosts

Which allowed web to be resolved and upload sandbox files to the File Tracker
Comment by Paweł Dietrich [ 2021-10-31 ]
Related https://github.com/sio2project/oioioi/issues/46




[SIO-2405] Prioritize certain kinds of statuses when aggregating ACM-style test results Created: 2021-01-17  Updated: 2021-06-7

Status: New
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wojciech Dubiel Assignee: Alicja Kluczek
Resolution: Unresolved Votes: 0
Labels: tag2


 Description   
In ACM-style contests, the user-visible result for a submit is "AC" when all tests pass, and some type of error status when one or more tests fail.

Currently, if multiple tests fail with different statuses, the "first" failure is shown.
Moreover, "first" is defined according to some internal order, different from the order visible in UI.

It'd be preferable if the status to display was chosen based on type of failure, and not order of tests.
For example, RE could take precedence over WA, then MLE, then TLE, etc.





Forum improvements (SIO-2266)

[SIO-2404] Allow markdown in posts Created: 2021-01-13  Updated: 2021-01-13

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Winter Sprint

Type: Sub-task Priority: Major
Reporter: Jakub Moliński Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Sprint: TAG 2020/21 Winter Sprint

 Description   
1. Research our ability to easily and safely limit the scope of supported markdown features (if this is very hard then it may not be worth the hassle)

2. Implement the support for md in posts (scope: syntax highlighting...? to be decided)

Wojtek says that we may already be using markdown in some part of OIOIOI - reusing that would be useful.




Forum improvements (SIO-2266)

[SIO-2403] Allow giving +1 and -1 reactions to posts on forum Created: 2021-01-13  Updated: 2021-01-23  Resolved: 2021-01-23

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version, TAG 2020/21 Winter Sprint
Fix Version/s: TAG 2020/21 Winter Sprint

Type: Sub-task Priority: Minor
Reporter: Jakub Moliński Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Winter Sprint

 Description   
This feature would be useful for confirming tests. We don't want to allow emoji reactions for now, only +1 and -1.

 Comments   
Comment by Gerrit Gerrit [ 2021-01-20 ]
Change oioioi~master~I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3585

(SIO-2403) Add forum post reactions

Change-Id: I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17
Comment by Gerrit Gerrit [ 2021-01-21 ]
Change oioioi~master~I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3585

(SIO-2403) Add forum post reactions

Change-Id: I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17
Comment by Gerrit Gerrit [ 2021-01-21 ]
Change oioioi~master~I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3585

(SIO-2403) Add forum post reactions

Add +1 and -1 reactions to forum posts.

Reactions can be enabled or disabled independently for each category.

Change-Id: I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17
Comment by Gerrit Gerrit [ 2021-01-21 ]
Change oioioi~master~I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3585

(SIO-2403) Add forum post reactions

Add +1 and -1 reactions to forum posts.

Reactions can be enabled or disabled independently for each category.

Change-Id: I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17
Comment by Gerrit Gerrit [ 2021-01-21 ]
Change oioioi~master~I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3585

(SIO-2403) Add forum post reactions

Adds +1 and -1 reactions to forum posts.

Reactions can be enabled or disabled independently for each category.

Refactors some of the forum post tests code (DRY).

Change-Id: I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17
Comment by Gerrit Gerrit [ 2021-01-23 ]
Change oioioi~master~I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3585

(SIO-2403) Add forum post reactions

Adds +1 and -1 reactions to forum posts.

Reactions can be enabled or disabled independently for each category.

Refactors some of the forum post tests code (DRY).

Change-Id: I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17
Comment by Gerrit Gerrit [ 2021-01-23 ]
Change oioioi~master~I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3585

(SIO-2403) Add forum post reactions

Adds +1 and -1 reactions to forum posts.

Reactions can be enabled or disabled independently for each category.

Refactors some of the forum post tests code (DRY).

Change-Id: I5e4676ca1a8b18bc0a41e88ed95ecc3df70eca17




Forum improvements (SIO-2266)

[SIO-2402] Add latest posts view on forum Created: 2021-01-13  Updated: 2021-01-13  Resolved: 2021-01-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version, TAG 2020/21 Winter Sprint
Fix Version/s: TAG 2020/21 Winter Sprint

Type: Sub-task Priority: Minor
Reporter: Jakub Moliński Assignee: Jakub Moliński
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Winter Sprint

 Comments   
Comment by Gerrit Gerrit [ 2021-01-13 ]
Change oioioi~master~Ibeb6352e781f7ebccd6537eb5dab66761ada8999, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3580

(fixes SIO-2402) Add FORUM_PAGE_SIZE to default_settings

This default value should have been added in `latest posts` changeset
but has been omitted by mistake.

Change-Id: Ibeb6352e781f7ebccd6537eb5dab66761ada8999




[SIO-2401] Add scripts for running static tests on the local dev environment Created: 2021-01-11  Updated: 2021-01-23  Resolved: 2021-01-20

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2020/21 Winter Sprint
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Jakub Moliński Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Winter Sprint

 Description   
Add scripts for running black, isort and pylint locally

 Comments   
Comment by Gerrit Gerrit [ 2021-01-13 ]
Change oioioi~master~I28a98a77ac34476efe5a1ea61691dc25580b1ada, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3581

(SIO-2401) Add scripts for running static locally

Adds run_static.sh file for running static server check locally.

Black and isort require python3, thus the Dockerfile needed to be
modified to include python3-pip installation and requirements files for
static analysis tools.

Change-Id: I28a98a77ac34476efe5a1ea61691dc25580b1ada
Comment by Gerrit Gerrit [ 2021-01-17 ]
Change oioioi~master~I28a98a77ac34476efe5a1ea61691dc25580b1ada, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3581

(SIO-2401) Add scripts for running static locally

Adds run_static.sh file for running static server check locally.

Black and isort require python3, thus the Dockerfile needed to be
modified to include python3-pip installation and requirements files for
static analysis tools.

Change-Id: I28a98a77ac34476efe5a1ea61691dc25580b1ada
Comment by Gerrit Gerrit [ 2021-01-17 ]
Change oioioi~master~I28a98a77ac34476efe5a1ea61691dc25580b1ada, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3581

(SIO-2401) Add scripts for running static locally

Adds run_static.sh file for running static server check locally.

Black and isort require python3, thus the Dockerfile needed to be
modified to include python3-pip installation and requirements files for
static analysis tools.

Change-Id: I28a98a77ac34476efe5a1ea61691dc25580b1ada
Comment by Gerrit Gerrit [ 2021-01-22 ]
Change oioioi~master~Id8884c4abbf5209a81587e48b25def146746ef05, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3590

(SIO-2401) Add local static checks description to readme

Adds instructions how to run static checks in the local dev environment.

In the README.rst corrects formatting & commands provided in "Running
tests on Docker" paragraph.

Fixes problem with static isort not ignoring migration files when
running it against recently modified files listed by git.

Fixes minor problems with the docker-compose command (removes the unneded OIOIOI_UID env variable which caused compability problems)

Change-Id: Id8884c4abbf5209a81587e48b25def146746ef05
Comment by Gerrit Gerrit [ 2021-01-22 ]
Change oioioi~master~Id8884c4abbf5209a81587e48b25def146746ef05, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3590

(SIO-2401) Add local static checks description to readme

Adds instructions how to run static checks in the local dev environment.

In the README.rst corrects formatting & commands provided in "Running
tests on Docker" paragraph.

Fixes problem with static isort not ignoring migration files when
running it against recently modified files listed by git.

Fixes minor problems with the docker-compose command (removes the unneded OIOIOI_UID env variable which caused compability problems)

Change-Id: Id8884c4abbf5209a81587e48b25def146746ef05
Comment by Gerrit Gerrit [ 2021-01-22 ]
Change oioioi~master~Id8884c4abbf5209a81587e48b25def146746ef05, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3590

(SIO-2401) Add local static checks description to readme

Adds instructions how to run static checks in the local dev environment.

In the README.rst corrects formatting & commands provided in "Running
tests on Docker" paragraph.

Fixes problem with static isort not ignoring migration files when
running it against recently modified files listed by git.

Fixes minor problems with the docker-compose command (removes the unneded OIOIOI_UID env variable which caused compability problems)

Change-Id: Id8884c4abbf5209a81587e48b25def146746ef05
Comment by Gerrit Gerrit [ 2021-01-23 ]
Change oioioi~master~Id8884c4abbf5209a81587e48b25def146746ef05, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3590

(SIO-2401) Add local static checks description to readme

Adds instructions how to run static checks in the local dev environment.

In the README.rst corrects formatting & commands provided in "Running
tests on Docker" paragraph.

Fixes problem with static isort not ignoring migration files when
running it against recently modified files listed by git.

Fixes minor problems with the docker-compose command (removes the unneded OIOIOI_UID env variable which caused compability problems)

Change-Id: Id8884c4abbf5209a81587e48b25def146746ef05
Comment by Gerrit Gerrit [ 2021-01-23 ]
Change oioioi~master~Id8884c4abbf5209a81587e48b25def146746ef05, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3590

(SIO-2401) Add local static checks description to readme

Adds instructions how to run static checks in the local dev environment.

In the README.rst corrects formatting & commands provided in "Running
tests on Docker" paragraph.

Fixes problem with static isort not ignoring migration files when
running it against recently modified files listed by git.

Fixes minor problems with the docker-compose command (removes the unneded OIOIOI_UID env variable which caused compability problems)

Change-Id: Id8884c4abbf5209a81587e48b25def146746ef05




[SIO-2400] KeyError after accessing user add admin panel Created: 2021-01-8  Updated: 2021-01-20  Resolved: 2021-01-20

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Alicja Kluczek Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None
Environment: Only global admin site, not contest specific.


 Description   
KeyError after accessing /admin/auth/user/add/ 'first_name'
Problematic function:
oioioi/base/forms.py in adjust_unicode_field at line 40

 Comments   
Comment by Gerrit Gerrit [ 2021-01-15 ]
Change oioioi~master~Ibb19a9d2a837ebbf189c9093ee5eba82d635524f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3582

(SIO-2400) Fix user creation form initialization

The OioioiUserCreationForm attempted to change error messages for fields
that do not exist on the form which would cause a KeyError when
attempting to add a new user in the OIOIOI admin panel.

Change-Id: Ibb19a9d2a837ebbf189c9093ee5eba82d635524f




[SIO-2399] Configure Black as our new code formatter and reformat the oioioi codebase Created: 2021-01-8  Updated: 2021-01-13  Resolved: 2021-01-12

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Winter Sprint

Type: Improvement Priority: Minor
Reporter: Jakub Moliński Assignee: Jakub Moliński
Resolution: Fixed Votes: 0
Labels: None

Sprint: TAG 2020/21 Winter Sprint

 Description   
Konieczne:

1. Dodanie Blacka do staticznej analizy z poprawnym konfigiem (ignorowanie migracji, ignorowanie zmian apostrofów i cudzysłowów; konfig nie może się gryźć z pylintem)
2. Sformatowanie kodu Blackiem
3. Ustawienie ignore ref na commit formatujący, żeby nie zepsuć git blame


 Comments   
Comment by Gerrit Gerrit [ 2021-01-11 ]
Change oioioi~master~Iac7b2e474534d1700234e798e73bd464ffe6f517, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3577

(SIO-2399) Black and isort bulk reformat

This commit contains a bulk reformat of all the files in oioioi
directory. The tools used for reformatting were black and isort. This
commit should be ignored from git blame. The config files for black and
isort will be included in a subsequent commit so that they are not
excluded from git blame.

Change-Id: Iac7b2e474534d1700234e798e73bd464ffe6f517
Comment by Gerrit Gerrit [ 2021-01-11 ]
Change oioioi~master~Iac7b2e474534d1700234e798e73bd464ffe6f517, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3577

(SIO-2399) Black and isort bulk reformat

This commit contains a bulk reformat of all the files in oioioi
directory. The tools used for reformatting were black and isort. This
commit should be ignored from git blame. The config files for black and
isort will be included in a subsequent commit so that they are not
excluded from git blame.

Change-Id: Iac7b2e474534d1700234e798e73bd464ffe6f517
Comment by Gerrit Gerrit [ 2021-01-11 ]
Change oioioi~master~Iac7b2e474534d1700234e798e73bd464ffe6f517, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3577

(SIO-2399) Black and isort bulk reformat

This commit contains a bulk reformat of all the files in oioioi
directory. The tools used for reformatting were black and isort. This
commit should be ignored from git blame. The config files for black and
isort will be included in a subsequent commit so that they are not
excluded from git blame.

Change-Id: Iac7b2e474534d1700234e798e73bd464ffe6f517
Comment by Gerrit Gerrit [ 2021-01-11 ]
Change oioioi~master~Iac7b2e474534d1700234e798e73bd464ffe6f517, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3577

(SIO-2399) Black and isort bulk reformat

This commit contains a bulk reformat of all the files in oioioi
directory. The tools used for reformatting were black and isort. This
commit should be ignored from git blame. The config files for black and
isort will be included in a subsequent commit so that they are not
excluded from git blame.

Change-Id: Iac7b2e474534d1700234e798e73bd464ffe6f517
Comment by Gerrit Gerrit [ 2021-01-11 ]
Change oioioi~master~Iac7b2e474534d1700234e798e73bd464ffe6f517, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3577

(SIO-2399) Black and isort bulk reformat

This commit contains a bulk reformat of all the files in oioioi
directory. The tools used for reformatting were black and isort. This
commit should be ignored from git blame. The config files for black and
isort will be included in a subsequent commit so that they are not
excluded from git blame.

Change-Id: Iac7b2e474534d1700234e798e73bd464ffe6f517
Comment by Gerrit Gerrit [ 2021-01-12 ]
Change oioioi~master~I2690a18d3119ebe1b33b1d42c0243402885c52f4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3578

(SIO-2399) Update static analysis config files

Adds new configs for black and isort and updates configs for pep8 and
pylint.
Adds .git-blame-ignore-revs file that containts ref numbers of commits
that should be ignored by git blame.

It may be necessary to run
git config blame.ignoreRevsFile .git-blame-ignore-revs
for git to always respect this config when running blame.

Change-Id: I2690a18d3119ebe1b33b1d42c0243402885c52f4
Comment by Gerrit Gerrit [ 2021-01-12 ]
Change oioioi~master~I2690a18d3119ebe1b33b1d42c0243402885c52f4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3578

(SIO-2399) Update static analysis config files

Adds new configs for black and isort and updates configs for pep8 and
pylint.
Adds .git-blame-ignore-revs file that containts ref numbers of commits
that should be ignored by git blame.

It may be necessary to run
git config blame.ignoreRevsFile .git-blame-ignore-revs
for git to always respect this config when running blame.

Change-Id: I2690a18d3119ebe1b33b1d42c0243402885c52f4
Comment by Gerrit Gerrit [ 2021-01-12 ]
Change oioioi~master~I2690a18d3119ebe1b33b1d42c0243402885c52f4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3578

(SIO-2399) Update static analysis config files

Adds new configs for black and isort and updates configs for pep8 and
pylint.
Adds .git-blame-ignore-revs file that containts ref numbers of commits
that should be ignored by git blame.

It may be necessary to run
git config blame.ignoreRevsFile .git-blame-ignore-revs
for git to always respect this config when running blame.

Change-Id: I2690a18d3119ebe1b33b1d42c0243402885c52f4
Comment by Gerrit Gerrit [ 2021-01-12 ]
Change oioioi~master~I2690a18d3119ebe1b33b1d42c0243402885c52f4, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3578

(SIO-2399) Update static analysis config files

Adds new configs for black and isort and updates configs for pep8 and
pylint.
Adds .git-blame-ignore-revs file that containts ref numbers of commits
that should be ignored by git blame.

It may be necessary to run
git config blame.ignoreRevsFile .git-blame-ignore-revs
for git to always respect this config when running blame.

Change-Id: I2690a18d3119ebe1b33b1d42c0243402885c52f4
Comment by Gerrit Gerrit [ 2021-01-12 ]
Change oioioi~master~Iac7b2e474534d1700234e798e73bd464ffe6f517, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3577

(SIO-2399) Black and isort bulk reformat

This commit contains a bulk reformat of all the files in oioioi
directory. The tools used for reformatting were black and isort. This
commit should be ignored from git blame. The config files for black and
isort will be included in a subsequent commit so that they are not
excluded from git blame.

Change-Id: Iac7b2e474534d1700234e798e73bd464ffe6f517
Comment by Gerrit Gerrit [ 2021-01-12 ]
Change oioioi~master~I9645a2d9a8772e92bf99ce9fbaa6a98a0c94b422, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3579

(SIO-2399) Update static analysis config files

Adds new configs for black and isort and updates configs for pep8 and
pylint.
Adds .git-blame-ignore-revs file that containts ref numbers of commits
that should be ignored by git blame.

It may be necessary to run
git config blame.ignoreRevsFile .git-blame-ignore-revs
for git to always respect this config when running blame.

Change-Id: I9645a2d9a8772e92bf99ce9fbaa6a98a0c94b422
Comment by Jakub Moliński [ 2021-01-13 ]
This is a duplicate od (SIO-2397) which should be closed now as this has been resolved




[SIO-2398] Allow opening registration at a later date on contests with public registration Created: 2020-12-16  Updated: 2022-02-28

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Winter Sprint

Type: Improvement Priority: Major
Reporter: Wojciech Dubiel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag2

Sprint: TAG 2020/21 Winter Sprint

 Description   
Contests such as PA and OI have a public registration form that any registered user can fill in to become a participant.

They can do this as soon as the contest is created, which leaves very little time for contest admins to configure the contest properly before someone registers.

There should be a registration start date, or an "enable registration" checbox, in the contest settings (including contest creation form), which contest admins can use to keep the registration closed until they're ready.




[SIO-2397] Use automatic source code formating on the project Created: 2020-12-16  Updated: 2021-11-19  Resolved: 2021-03-14

Status: Closed
Project: The SIO2 project
Component/s: Zzz! / None of the above / I really don't know
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Wojciech Dubiel Assignee: Wojciech Dubiel
Resolution: Duplicate Votes: 0
Labels: None


 Description   
For a year or two, the pylint hooks on gerrit weren't working, so a large portion of the code may not be following our code style.

We could use an automated code formatting tool such as "black" or "darker" to reformat that code, and possibly keep code automatically formatted in the future.

However, our project has a few peculiar conventions, such as the distinction between single and double quotes. It'd be better if we could keep them, so code formatting tools may need some special configuration for this.

Also, if we were to do code formatting when unrelated changes are being made, care must be taken to keep the diffs readable.

 Comments   
Comment by Jakub Moliński [ 2021-01-13 ]
This is a duplicate of (SIO-2399) which has been resolved so this should probably be resolved or closed




[SIO-2396] API: Allow finding a problem by contest_id and short_name Created: 2020-12-16  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Wojciech Dubiel Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2394 Improve API support for problem packa... Resolved

 Description   
Contest id and problem short name already uniquely identify a problem instance, so they could be used to find it, and the problem.

It would be nice to have an API that allows obtaining problem_id (and possibly problem_instance_id) by providing contest id and problem short name.
The problem_id would be very useful for reuploading a package from a CI, which does not necessarily know it beforehend, but does have access the contest id and short name in the package source.


 Comments   
Comment by Gerrit Gerrit [ 2021-06-3 ]
Change oioioi~master~Icd4beca8f3668e6a69ee29b1a2e5036293328221, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3749

(SIO-2396) API: Allow finding a problem by contest_id and short_name

Contest id and problem short name already uniquely identify a problem
instance, so they could be used to find it, and the problem.
It would be nice to have an API that allows obtaining problem_id
(and possibly problem_instance_id) by providing contest id and problem
short name. The problem_id would be very useful for reuploading a package
from a CI, which does not necessarily know it beforehend, but does have
access the contest id and short name in the package source.

*Add an API endpoint for finding problem_id and problem_instance_id
 based on contest_id and problem_short_name.
*Refactor old code.
*Add tests.

Change-Id: Icd4beca8f3668e6a69ee29b1a2e5036293328221
Comment by Gerrit Gerrit [ 2021-06-8 ]
Change oioioi~master~Icd4beca8f3668e6a69ee29b1a2e5036293328221, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3749

(SIO-2396) API: Allow finding a problem by contest_id and short_name

Contest id and problem short name already uniquely identify a problem
instance, so they could be used to find it, and the problem.
It would be nice to have an API that allows obtaining problem_id
(and possibly problem_instance_id) by providing contest id and problem
short name. The problem_id would be very useful for reuploading a package
from a CI, which does not necessarily know it beforehend, but does have
access the contest id and short name in the package source.

*Add an API endpoint for finding problem_id and problem_instance_id
 based on contest_id and problem_short_name.
*Refactor old code.
*Add tests.

Change-Id: Icd4beca8f3668e6a69ee29b1a2e5036293328221




[SIO-2395] API: Allow contest/problem admins to query package upload status Created: 2020-12-16  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Wojciech Dubiel Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2394 Improve API support for problem packa... Resolved

 Description   
As far as I understand, currently the package_upload_query endpoint only allows global problemset admins to query package status, even though more people are allowed to (re)upload a problem using the other endpoints.

It'd be better if everyone who can upload a problem using the API could also query the status of the package they uploaded.

 Comments   
Comment by Gerrit Gerrit [ 2021-06-1 ]
Change oioioi~master~Idc4f4226f44d77ad7497d924b5195c2b6e907a85, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3748

(SIO-2395) Allow contest/problem admins to query package upload status

Currently the package_upload_query endpoint only allows global problemset
admins to query package status, even though more people are allowed to
(re)upload a problem using another endpoints. It'd be better if everyone
who can upload a problem using the API could also query the status of the
package they uploaded.

*Refactor package_upload_query endpoint (i.a. use GET instead of POST).
*Enable contest/problem admins to query package upload status.
*Add tests.

Change-Id: Idc4f4226f44d77ad7497d924b5195c2b6e907a85
Comment by Gerrit Gerrit [ 2021-06-2 ]
Change oioioi~master~Idc4f4226f44d77ad7497d924b5195c2b6e907a85, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3748

(SIO-2395) Allow contest/problem admins to query package upload status

Currently the package_upload_query endpoint only allows global problemset
admins to query package status, even though more people are allowed to
(re)upload a problem using another endpoints. It'd be better if everyone
who can upload a problem using the API could also query the status of the
package they uploaded.

*Refactor package_upload_query endpoint (i.a. use GET instead of POST)
 and other old code.
*Enable contest/problem admins to query package upload status.
*Add tests.

Change-Id: Idc4f4226f44d77ad7497d924b5195c2b6e907a85
Comment by Gerrit Gerrit [ 2021-06-2 ]
Change oioioi~master~Idc4f4226f44d77ad7497d924b5195c2b6e907a85, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3748

(SIO-2395) API: allow contest/problem admins to query package upload status

Currently the package_upload_query endpoint only allows global problemset
admins to query package status, even though more people are allowed to
(re)upload a problem using another endpoints. It'd be better if everyone
who can upload a problem using the API could also query the status of the
package they uploaded.

*Refactor package_upload_query endpoint (i.a. use GET instead of POST)
 and other old code.
*Enable contest/problem admins to query package upload status.
*Add tests.

Change-Id: Idc4f4226f44d77ad7497d924b5195c2b6e907a85
Comment by Gerrit Gerrit [ 2021-06-2 ]
Change oioioi~master~Idc4f4226f44d77ad7497d924b5195c2b6e907a85, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3748

(SIO-2395) API: allow contest/problem admins to query package upload status

Currently the package_upload_query endpoint only allows global problemset
admins to query package status, even though more people are allowed to
(re)upload a problem using another endpoints. It'd be better if everyone
who can upload a problem using the API could also query the status of the
package they uploaded.

*Refactor package_upload_query endpoint (i.a. use GET instead of POST)
 and other old code.
*Enable contest/problem admins to query package upload status.
*Add tests.

Change-Id: Idc4f4226f44d77ad7497d924b5195c2b6e907a85




[SIO-2394] Improve API support for problem package CI (meta-ticket) Created: 2020-12-16  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Wojciech Dubiel Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
is related to SIO-2350 API: no problem_id after package_upload Resolved
is related to SIO-2395 API: Allow contest/problem admins to ... Resolved
is related to SIO-2396 API: Allow finding a problem by conte... Resolved

 Description   
This is a meta-ticket for API improvements that could be useful for automatically uploading problem packages from a CI.




[SIO-2393] Add resubmit button in submission view Created: 2020-12-9  Updated: 2021-01-31  Resolved: 2020-12-21

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Hubert Badocha Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
It'd enhance user's exeperience if they were able to resubmit task from previus submission view. For example we can add resubmit button that would move user to submissions page with task chosen

 Comments   
Comment by Gerrit Gerrit [ 2020-12-16 ]
Change oioioi~master~I4c12b3f4ff40fed6d752bceb356c3cff6732f503, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3573

SIO-2393 Add 'submit another' button in submission view

Users can go to the submit page directly from the detailed
submission page. Repeated HTML in submission_header templates
was removed using inheritance.

Change-Id: I4c12b3f4ff40fed6d752bceb356c3cff6732f503
Comment by Gerrit Gerrit [ 2020-12-19 ]
Change oioioi~master~I4c12b3f4ff40fed6d752bceb356c3cff6732f503, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3573

SIO-2393 Add 'submit another' button in submission view

Users can go to the submit page directly from the detailed
submission page. Repeated HTML in submission_header templates
was removed using inheritance.

Change-Id: I4c12b3f4ff40fed6d752bceb356c3cff6732f503
Comment by Gerrit Gerrit [ 2020-12-19 ]
Change oioioi~master~I4c12b3f4ff40fed6d752bceb356c3cff6732f503, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3573

SIO-2393 Add 'submit another' button in submission view

Users can go to the submit page directly from the detailed
submission page. Repeated HTML in submission_header templates
was removed using inheritance.

Change-Id: I4c12b3f4ff40fed6d752bceb356c3cff6732f503
Comment by Gerrit Gerrit [ 2021-01-31 ]
Change oioioi~master~Ib093307f53e0f7ec23dc2ed7c88108cd2834a9c4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3596

SIO-2393 Fix submission view crashing

Previous change from the ticket added a 'submit another' button
in the submission view which did not check for associated contest
existence. Add this check and when a submission does not come
from a contest make button link fallback to problem site.

Change-Id: Ib093307f53e0f7ec23dc2ed7c88108cd2834a9c4
Comment by Gerrit Gerrit [ 2021-01-31 ]
Change oioioi~master~Ib093307f53e0f7ec23dc2ed7c88108cd2834a9c4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3596

SIO-2393 Fix submission view crashing

Previous change from the ticket added a 'submit another' button
in the submission view which did not check for associated contest
existence. Add this check and when a submission does not come
from a contest make button link fallback to problem site.

Change-Id: Ib093307f53e0f7ec23dc2ed7c88108cd2834a9c4
Comment by Gerrit Gerrit [ 2021-01-31 ]
Change oioioi~master~Ib093307f53e0f7ec23dc2ed7c88108cd2834a9c4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3596

SIO-2393 Fix submission view crashing

Previous change from the ticket added a 'submit another' button
in the submission view which did not check for associated contest
existence. Add this check and when a submission does not come
from a contest make button link fallback to problem site.

Change-Id: Ib093307f53e0f7ec23dc2ed7c88108cd2834a9c4
Comment by Gerrit Gerrit [ 2021-01-31 ]
Change oioioi~master~Ib093307f53e0f7ec23dc2ed7c88108cd2834a9c4, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3596

SIO-2393 Fix submission view crashing

Previous change from the ticket added a 'submit another' button
in the submission view which did not check for associated contest
existence. Add this check and when a submission does not come
from a contest make button link fallback to problem site.

Change-Id: Ib093307f53e0f7ec23dc2ed7c88108cd2834a9c4




[SIO-2392] Exportszu times out Created: 2020-11-29  Updated: 2020-12-16

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag2

Issue Links:
Duplicate
duplicates SIO-2144 "Export submissions" timing out with ... Reopened

 Description   
In large contests, generating an archive of every contestant's submissions takes a long time. Because the "export submissions" functionality does this synchronously, it causes a "504 gateway time-out" error before the archive is finished and ready for download.

One way to fix this would be to generate the arachive asynchronously, with a similar UX to generating user outs - you click once to generate the archive, and after a while, when the archive is done, you refresh the page and get a link to download the archive. In this case, care must be taken to keep track of when the archive was generated, as submissions created after that moment won't be included, and the user should be warned about this.

Another option would be to use a streaming response, so that the archive is being sent to the user as it's being generated. This could make the download slower than necessary, but at least the start of the response would arrive sooner, hopefully avoiding timeouts.

Yet another possibility is that this operation is slow for no good reason and could be made faster.




[SIO-2391] Package bsddb3 version 6.2.8 crushes docker image build Created: 2020-11-25  Updated: 2020-12-2  Resolved: 2020-12-2

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tomasz Domagała Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Package bsddb3 6.2.8 doesn't work with python 2.7 and crashes docker image build. It is temporarily necessary to force the download of a lower version.

 Comments   
Comment by Wojciech Dubiel [ 2020-11-25 ]
It also breaks tests and anything that does `pip -r requirements.txt` in general.

bsddb3 is being pulled in by filetracker, so we should set a version constrain there:
https://github.com/sio2project/filetracker/blob/master/setup.py
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~I5f6126f58819e5729ed9850e3161b289d548b442, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3554

SIO-2391 Package bsddb3 version 6.2.8 crushes docker image build

Fixed by setting version constrain to 6.2.7

Change-Id: I5f6126f58819e5729ed9850e3161b289d548b442
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~I5f6126f58819e5729ed9850e3161b289d548b442, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3554

SIO-2391 Package bsddb3 version 6.2.8 crushes docker image build.

Fixed by setting version constrain to 6.2.7

Change-Id: I5f6126f58819e5729ed9850e3161b289d548b442
Comment by Wojciech Dubiel [ 2020-12-2 ]
Fixed in filetracker with this PR:
https://github.com/sio2project/filetracker/pull/73




[SIO-2390] Literówka Created: 2020-11-24  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jakub Radoszewski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
https://sio2.mimuw.edu.pl/c/oi28-1/admin/evalmgr/contestqueuedjob/

Strona główna › Evalmgr › Zadania zakolejkowane w ramach konkursus

 0 Zadania zakolejkowane w ramach konkursus

"konkursus"

 Comments   
Comment by Szymon Czyżmański [ 2021-06-24 ]
This seems to have been already fixed.




[SIO-2389] Show code in mobile is hard to scroll Created: 2020-11-19  Updated: 2021-01-26

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Hubert Badocha Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag2
Environment: Android, Poco F2 Pro


 Description   
Verticall scrolling on website showing source code of solution doesn't work every time, especialy after few seconds since page loads




[SIO-2388] [UI] Misaligned quiz questions Created: 2020-11-16  Updated: 2021-06-14  Resolved: 2020-12-21

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Wojciech Dubiel Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Attachments: PNG File screenshot-skopul-quiz-misalign.png    
Issue Links:
Relates
relates to SIO-2295 Multiple minor bugs in quizzes (meta-... Resolved

 Description   
Single-choice and multiple-choice quiz questions have different padding/margin than text input questions, which causes them to misalign, as shown in the attached picture.

 Comments   
Comment by Gerrit Gerrit [ 2020-12-9 ]
Change oioioi~master~I77cd54082931882a28cab3504b3ee844013c9431, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3560

(SIO-2388) Fix misaligned quiz questions

Change-Id: I77cd54082931882a28cab3504b3ee844013c9431
Comment by Gerrit Gerrit [ 2020-12-9 ]
Change oioioi~master~I77cd54082931882a28cab3504b3ee844013c9431, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3560

(SIO-2388) Fix misaligned quiz questions

Change-Id: I77cd54082931882a28cab3504b3ee844013c9431
Comment by Gerrit Gerrit [ 2021-06-14 ]
Change oioioi~master~I44a438135281ed9d5951c15beb4cc3f159cb1e12, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3764

SIO-2388 Make quiz questions styling more specific

Changes selectors that controll padding in quiz questions to be more
specific. Previous selectors affected different checkboxes across oioioi
which was unintended.

Change-Id: I44a438135281ed9d5951c15beb4cc3f159cb1e12
Comment by Gerrit Gerrit [ 2021-06-14 ]
Change oioioi~master~I44a438135281ed9d5951c15beb4cc3f159cb1e12, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3764

SIO-2388 Make quiz questions styling more specific

Changes selectors that control padding in quiz questions to be more
specific. Previous selectors affected different check boxes across oioioi
which was unintended.

Change-Id: I44a438135281ed9d5951c15beb4cc3f159cb1e12




[SIO-2387] Fix Title underline too short warning. Created: 2020-10-21  Updated: 2020-10-21  Resolved: 2020-10-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Far Future
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Alicja Kluczek Assignee: Wojciech Dubiel
Resolution: Obsolete Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~I1bf12df025cd6d98453739d55f77a94f39332ac4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3542

SIO-2387 Suppress Title underline too short warning.

Change-Id: I1bf12df025cd6d98453739d55f77a94f39332ac4
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~I1bf12df025cd6d98453739d55f77a94f39332ac4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3542

SIO-2387 Fix Title underline too short warning.

Change-Id: I1bf12df025cd6d98453739d55f77a94f39332ac4




[SIO-2386] Zmiana Koloru tytułu readme Created: 2020-10-21  Updated: 2020-10-21  Resolved: 2020-10-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Jakub Niściór Assignee: Wojciech Dubiel
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Zmiana koloru tytułu readme na jakiś ładny

 Comments   
Comment by Jakub Niściór [ 2020-10-21 ]
nie da się zmieniać kolorów w readme, ale dodajemy dodatkowe "OI" do tytułu
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~Ibc90dbb4b61ac684cebc8f9d763a6d454ee8a004, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3545

SIO-2386 Color Title Change

It's impossible to change color of title so we add OI to title

Change-Id: Ibc90dbb4b61ac684cebc8f9d763a6d454ee8a004
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~Ibc90dbb4b61ac684cebc8f9d763a6d454ee8a004, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3545

SIO-2386 Color Title Change

It's impossible to change color of title so we add OI to title

Change-Id: Ibc90dbb4b61ac684cebc8f9d763a6d454ee8a004




[SIO-2385] Make header in README.rst more visible Created: 2020-10-21  Updated: 2020-10-21  Resolved: 2020-10-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Task Priority: Minor
Reporter: Szymon Czyżmański Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~Ic2d631ba135bd92f8f969eec100ad45c44365bf4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3544

SIO-2385 Make header in README.rst more visible

Made header in README.rst more visible

Change-Id: Ic2d631ba135bd92f8f969eec100ad45c44365bf4
Comment by Szymon Czyżmański [ 2020-10-21 ]
Change abandoned.




[SIO-2384] Update deployment section in the readme Created: 2020-10-21  Updated: 2020-10-21  Resolved: 2020-10-21

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Jakub Moliński Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~Ia7332aa55c89483177bd209f4a242b1eed568f01, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3539

SIO-2384 - Update deployment section in the readme

Update the port exposed by docker

Change-Id: Ia7332aa55c89483177bd209f4a242b1eed568f01
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~If8913bc44c9644617ea43d9cfc47986a84d20bb5, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3547

SIO-2384 - Update deployment section in the readme

Change host port in docker-compose

Change-Id: If8913bc44c9644617ea43d9cfc47986a84d20bb5




[SIO-2383] Not enough blank lines in the README Created: 2020-10-21  Updated: 2020-10-21  Resolved: 2020-10-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tymoteusz Wiśniewski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Add more blank lines!!!1

 Comments   
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~I967a99db7dc4387f51ad4292d338d8ba09885eb5, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3540

SIO-2383 Add more blank lines

Change-Id: I967a99db7dc4387f51ad4292d338d8ba09885eb5




[SIO-2382] Add ASCII art to file to /ioioi/__init__.py Created: 2020-10-21  Updated: 2020-10-21  Resolved: 2020-10-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Hubert Badocha Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Add ASCII art to __init__.py

 Comments   
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~I80ee09fb9d4af4d07d8c0b2a91b9f6a3534a8bcd, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3537

SIO-2382 - Add ASCII art to file to /ioioi/__init__.pyadded art

Change-Id: I80ee09fb9d4af4d07d8c0b2a91b9f6a3534a8bcd




[SIO-2381] Readme should be deleted Created: 2020-10-21  Updated: 2020-10-21  Resolved: 2020-10-21

Status: Closed
Project: The SIO2 project
Component/s: Zzz! / None of the above / I really don't know
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Jakub Wasilewski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Jakub Wasilewski [ 2020-10-21 ]
comment
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~I785a25612f9f20a90fa4f73fa3ee38607830cac4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3536

SIO-2381 Readme should be deleted

Readme should be deleted

Change-Id: I785a25612f9f20a90fa4f73fa3ee38607830cac4
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~I785a25612f9f20a90fa4f73fa3ee38607830cac4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3536

SIO-2381 Readme should be deleted

Readme should be deleted

Change-Id: I785a25612f9f20a90fa4f73fa3ee38607830cac4
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~I785a25612f9f20a90fa4f73fa3ee38607830cac4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3536

SIO-2381 Move README.rst to README.md

Readme should be deleted

Change-Id: I785a25612f9f20a90fa4f73fa3ee38607830cac4




[SIO-2380] Change background color to pink Created: 2020-10-21  Updated: 2020-10-21  Resolved: 2020-10-21

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Far Future
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Tomasz Domagała Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~Iab6d8988661f5e6f15fed781dcc7e04954cbd8d3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3538

SIO-2380 Change background color to pink

Change-Id: Iab6d8988661f5e6f15fed781dcc7e04954cbd8d3
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~Ibf0fec292bd9c4080cc89d5fa74c010ce50868e6, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3546

SIO-2380 Change background color to pink

Change-Id: Ibf0fec292bd9c4080cc89d5fa74c010ce50868e6
Comment by Gerrit Gerrit [ 2020-10-21 ]
Change oioioi~master~Ibf0fec292bd9c4080cc89d5fa74c010ce50868e6, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3546

SIO-2380 Change background color to pink

Changed pink color to differend shade of pink.

Change-Id: Ibf0fec292bd9c4080cc89d5fa74c010ce50868e6




[SIO-2379] Duplicated user entries in contest rankings Created: 2020-09-24  Updated: 2020-12-16

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Przemysław Podleśny Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PNG File 120126351_359042991808613_5722611450415607358_n.png    

 Description   
A user has reported duplicate entries appearing on contest scoreboards, in multiple contests. An example can be seen in the attached screenshot.

I confirm that the issue can be reproduced on my setup (Ubuntu 18.04, both Mozilla Firefox 80.0.1 and Chromium 85.0.4183.121).

Link to the contest: https://szkopul.edu.pl/c/archiwum-zadan-k0mpend1x/dashboard/

 Comments   
Comment by Wojciech Dubiel [ 2020-12-16 ]
When user groups are in use, the registration controller's
 filter_participants reports duplicate participants whenever someone is a participant, and belongs to any user groups. That participant will be reported once for every user group membership, irrespective of that group's contests. This is due to how outer joins work.
    
Theoretically, non-participants that belong to multiple groups which belong to the same contest will also be returned twice, but we haven't observed it in the wild.

This could be fixed by changing queryset `|` to `union` but then we get hit by a Django bug:
https://code.djangoproject.com/ticket/29834#no1




[SIO-2378] Review versions of oioioi's dependencies Created: 2020-08-5  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wojciech Dubiel Assignee: Szymon Czyżmański
Resolution: Unresolved Votes: 0
Labels: None


 Description   
The version constraints in oioioi's setup.py are rather chaotic.

Some of them weren't updated when we updated Django, which means we're using unnecessarily old dependencies.
Other have hardcoded versions from some point in the past.
Other don't have less-than constraint, allowing newer, incompatible versions of some package to be installed.

We should go through each of them, find out the maximal range of versions that works correctly with our version of Django and Python, and set the constraints to that range.




[SIO-2377] Create and configure oioioi-github-release-3-selenium Created: 2020-06-29  Updated: 2020-06-29  Resolved: 2020-06-29

Status: Closed
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wiktor Czyż Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Wiktor Czyż [ 2020-06-29 ]
https://hudson.sio2project.mimuw.edu.pl/view/Github%20Release/job/oioioi-github-release-3-selenium/




[SIO-2376] Django 1.11: fix of various smaller tests Created: 2020-06-29  Updated: 2020-06-29  Resolved: 2020-06-29

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wiktor Czyż Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Wiktor Czyż

 Comments   
Comment by Wiktor Czyż [ 2020-06-29 ]
https://gerrit.sio2project.mimuw.edu.pl/#/c/3431/




[SIO-2375] Remove deprecated compiler names. Created: 2020-06-27  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: Evaluation Engine / Workers, OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Artur Pragacz Assignee: Szymon Czyżmański
Resolution: Unresolved Votes: 0
Labels: tag2


 Description   
After 01.01.2021 deprecated compiler names should be removed.

Their list can be found in the setup.py of the sioworkers.
They should be removed not only from that file, but also all throughout sioworkers, including the rst documentation.
One small problem is that sio-compile standalone script uses deprecated 'default-' compiler names (in the function sio.compilers.job:main). It therefore needs some other, preferably local, constants to select default compilers for languages.
In every other place, to the best of my knowledge, the deprecated compiler names can be removed safely.

The deprecated compiler names are also present in OIOIOI (I grepped them in two places, I may have missed some). As far as I know they exist in code paths that are never taken, so there they can also be safely removed.




[SIO-2374] Fix Polish months' names Created: 2020-06-27  Updated: 2021-06-3

Status: In Progress
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Artur Pragacz Assignee: Szymon Czyżmański
Resolution: Unresolved Votes: 0
Labels: None


 Description   
In the problems view of the contest: /c/<contest>/p/ (where <contest> is an id of the contest) the dates are written as e.g. "16 Styczeń 3017".
This is grammatically incorrect and should be "16. stycznia 3017" instead.

 Comments   
Comment by Gerrit Gerrit [ 2021-06-3 ]
Change oioioi~master~I095ff99cb943d1ecc24ac2ffe8eab98a2a342aa2, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3752

(SIO-2374) Fix Polish months' names

In the problems view of the contest: /c/<contest>/p/ (where
<contest> is an id of the contest) the dates are written as
e.g. "16 Czerwiec 3017". This is grammatically incorrect and
should be "16. czerwca 3017" instead.

Change-Id: I095ff99cb943d1ecc24ac2ffe8eab98a2a342aa2




Migrate to Python 3 (SIO-2361)

[SIO-2373] Fix django-supervisor Created: 2020-06-27  Updated: 2021-04-13  Resolved: 2021-04-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Pragacz Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Django-supervisor doesn't work with Python3.
It's also no longer maintained, so we probably need to make some custom patches, that fix the problem.

 Comments   
Comment by Jakub Moliński [ 2021-04-13 ]
On python3 we now use badochov/dj-supervisor, a python3-compatible fork of django-supervisor




[SIO-2372] User contest visibility Created: 2020-06-23  Updated: 2020-06-23

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Cezary Chodun Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PNG File Screenshot from 2020-06-16 17-57-26.png     PNG File Screenshot from 2020-06-16 18-01-33.png    

 Description   
Affected changes:
https://gerrit.sio2project.mimuw.edu.pl/#/c/3505/
https://gerrit.sio2project.mimuw.edu.pl/#/c/3515/

Problem:
The database query is too heavy.

TODO:
Optimize the database query.

Description:

As for now user contests will be visible for all registered users.
This is something we don't want. (The user contests should be visible only to people who visited them before)

The changes above aim to resolve this issue. But there is a side effect.
In the first change there is a query that is not optimized by django:
 "return Q(contestview__user=request.user)"

This results in a very heavy query that needs to be improved before it can be submitted to master.

 Comments   
Comment by Szymon Acedański [ 2020-06-23 ]
Well, this is unfotrunate that the database optimiser (Postgres on szkopul.edu.pl) is not powerful enough to efficiently run this query, which otherwise is a correct query. Probably this needs to be refactored in a semantically equivalent query, but easier to optimize. Or maybe we are missing some index, which I doubt.

That's a nice task for someone who would like to dive deeply into this query and really dig into what the database/Django did with it.




Migrate to Python 3 (SIO-2361)

[SIO-2371] Migrate to Django 1.11 Created: 2020-06-16  Updated: 2020-06-16  Resolved: 2020-06-16

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Summer Sprint 3

Type: Sub-task Priority: Major
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Artur Pragacz

 Comments   
Comment by Artur Pragacz [ 2020-06-16 ]
https://gerrit.sio2project.mimuw.edu.pl/3473/

(no-ticket) Upgrade to Django 1.11

Change-Id: I4280aebacf00f3cef01c95489bb3279b3e76f413




[SIO-2370] Integrate with DockerHub Created: 2020-06-16  Updated: 2020-06-16  Resolved: 2020-06-16

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Summer Sprint 2

Type: Improvement Priority: Major
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Artur Pragacz

 Description   
Make DockerHub automatically build images for new releases (taken from Github).

 Comments   
Comment by Artur Pragacz [ 2020-06-16 ]
https://gerrit.sio2project.mimuw.edu.pl/3492/

(no-ticket) Fix Docker Hub build hook.

Build hook needs to start with the appropriate shebang.

Change-Id: I56678c0937c7a4766ae7fbffaab4698d487880df




Migrate to Python 3 (SIO-2361)

[SIO-2369] Migrate database models Created: 2020-06-16  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Pragacz Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Python3 uses Unicode by default, which means that many models need to be migrated to the new format.




[SIO-2368] Input validation in Jenkins release jobs Created: 2020-06-16  Updated: 2020-11-18

Status: New
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Wojciech Dubiel Assignee: Alicja Kluczek
Resolution: Unresolved Votes: 0
Labels: tag1


 Description   
Release jobs on jenkins don't validate input, such as whether specified branch exists. It'd be nice if they did and had nice error messages.




[SIO-2367] Add a submit button on the problem list Created: 2020-06-10  Updated: 2021-04-13  Resolved: 2021-04-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Wojciech Dubiel Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
On the problem list, there's a number of submissions left, but the only available action is to read a problem's statement. To actually submit anything, one has to (logically) go back to the main menu and select "Submit" from there, then choose a problem again. It's counterintuitive.

 Comments   
Comment by Gerrit Gerrit [ 2021-01-7 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8
Comment by Gerrit Gerrit [ 2021-01-13 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process

When a user is in the Problems submenu and wants to upload a solution, he has to go to the Submit submenu and manually select his problem.
This commit adds the submit button to the problems list, which redirects users to the Submit submenu with the chosen problem already selected for them.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8
Comment by Gerrit Gerrit [ 2021-01-13 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process

When a user is in the Problems submenu and wants to upload a solution, he has to go to the Submit submenu and manually select his problem.
This commit adds the submit button to the problems list, which redirects users to the Submit submenu with the chosen problem already selected for them.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8
Comment by Gerrit Gerrit [ 2021-01-13 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process

When a user is in the Problems submenu and wants to upload a solution, he has to go to the Submit submenu and manually select his problem.
This commit adds the submit button to the problems list, which redirects users to the Submit submenu with the chosen problem already selected for them.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8
Comment by Gerrit Gerrit [ 2021-01-16 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process

When a user is in the Problems submenu and wants to upload a solution, he has to go to the Submit submenu and manually select his problem.
This commit adds the submit button to the problems list, which redirects users to the Submit submenu with the chosen problem already selected for them.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8
Comment by Gerrit Gerrit [ 2021-01-18 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process

When a user is in the Problems submenu and wants to upload a solution, he has to go to the Submit submenu and manually select his problem.
This commit adds the submit button to the problems list, which redirects users to the Submit submenu with the chosen problem already selected for them.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8
Comment by Gerrit Gerrit [ 2021-01-20 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process

When a user is in the Problems submenu and wants to upload a solution, he has to go to the Submit submenu and manually select his problem.
This commit adds the submit button to the problems list, which redirects users to the Submit submenu with the chosen problem already selected for them.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8
Comment by Gerrit Gerrit [ 2021-01-20 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process

When a user is in the Problems submenu and wants to upload a solution, he has to go to the Submit submenu and manually select his problem.
This commit adds the submit button to the problems list, which redirects users to the Submit submenu with the chosen problem already selected for them.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8
Comment by Gerrit Gerrit [ 2021-01-20 ]
Change oioioi~master~Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3575

SIO-2367 Add submit button in the contest's problems list to simplify the solution submit process

When a user is in the Problems submenu and wants to upload a solution, he has to go to the Submit submenu and manually select his problem.
This commit adds the submit button to the problems list, which redirects users to the Submit submenu with the chosen problem already selected for them.

Change-Id: Ia5e49731b817d707ee8f21a26d13cc6274b0d3e8




[SIO-2366] Selenium tests and releases tutorial Created: 2020-06-6  Updated: 2020-06-6

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Cezary Chodun Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment: Jenkins


 Description   
After fixing selenium tests (oioioi-selenium-tests & oioioi-release-3-selenium) go to the Github Release tab and update the release tutorial.

https://hudson.sio2project.mimuw.edu.pl/ -> Github Release -> edit description -> uncomment the selenium tests




[SIO-2365] Remove oitimetool Created: 2020-06-1  Updated: 2020-06-29  Resolved: 2020-06-29

Status: Closed
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wiktor Czyż Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Wiktor Czyż

 Comments   
Comment by Gerrit Gerrit [ 2020-06-1 ]
Change sioworkers~master~I40bcda20c92ae3dee560789cfa81ed56697a9651, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3498

(SIO-2365) Remove oitimetool

Change-Id: I40bcda20c92ae3dee560789cfa81ed56697a9651
Comment by Gerrit Gerrit [ 2020-06-1 ]
Change oioioi~master~Ia501f0b240587a5902a97131055084db156fa211, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3499

(SIO-2365) Remove oitimetool

Change-Id: Ia501f0b240587a5902a97131055084db156fa211
Comment by Gerrit Gerrit [ 2020-06-2 ]
Change oioioi~master~Ia501f0b240587a5902a97131055084db156fa211, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3499

(SIO-2365) Remove oitimetool

Change-Id: Ia501f0b240587a5902a97131055084db156fa211
Comment by Gerrit Gerrit [ 2020-06-2 ]
Change sioworkers~master~I40bcda20c92ae3dee560789cfa81ed56697a9651, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3498

(SIO-2365) Remove oitimetool

Change-Id: I40bcda20c92ae3dee560789cfa81ed56697a9651
Comment by Gerrit Gerrit [ 2020-06-3 ]
Change sioworkers~master~I40bcda20c92ae3dee560789cfa81ed56697a9651, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3498

(SIO-2365) Remove oitimetool

Change-Id: I40bcda20c92ae3dee560789cfa81ed56697a9651
Comment by Gerrit Gerrit [ 2020-06-3 ]
Change sioworkers~master~I40bcda20c92ae3dee560789cfa81ed56697a9651, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3498

(SIO-2365) Remove oitimetool

Change-Id: I40bcda20c92ae3dee560789cfa81ed56697a9651
Comment by Gerrit Gerrit [ 2020-06-3 ]
Change oioioi~master~Ia501f0b240587a5902a97131055084db156fa211, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3499

(SIO-2365) Remove oitimetool

Change-Id: Ia501f0b240587a5902a97131055084db156fa211
Comment by Gerrit Gerrit [ 2020-06-3 ]
Change oioioi~master~Ia501f0b240587a5902a97131055084db156fa211, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3499

(SIO-2365) Remove oitimetool

Change-Id: Ia501f0b240587a5902a97131055084db156fa211
Comment by Gerrit Gerrit [ 2020-06-3 ]
Change oioioi~master~Ia501f0b240587a5902a97131055084db156fa211, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3499

(SIO-2365) Remove oitimetool

Change-Id: Ia501f0b240587a5902a97131055084db156fa211
Comment by Gerrit Gerrit [ 2020-06-9 ]
Change oioioi~master~Ia501f0b240587a5902a97131055084db156fa211, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3499

(SIO-2365) Remove oitimetool

Change-Id: Ia501f0b240587a5902a97131055084db156fa211
Comment by Gerrit Gerrit [ 2020-06-9 ]
Change oioioi~master~Ia501f0b240587a5902a97131055084db156fa211, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3499

(SIO-2365) Remove oitimetool

Change-Id: Ia501f0b240587a5902a97131055084db156fa211




[SIO-2364] Create system for downloading and uploading package files Created: 2020-05-26  Updated: 2020-07-15  Resolved: 2020-07-15

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Franciszek Hnatów Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Franciszek Hnatów

 Description   
Create system that will allow admins to download files from package
and replace as long as package can be reuploaded

 Comments   
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download mechanism, still working on upload.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download mechanism, still working on upload.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download mechanism, still working on upload.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism, still working on putting the file into package.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism, still working on putting the file into package.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-9 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism, still working on putting the file into package.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-14 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism, still working on facilitating download while in tabbed view.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-14 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism, still working on facilitating download while in tabbed view.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-15 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism, still working on facilitating download while in tabbed view.

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-15 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-15 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-16 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-23 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-23 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-23 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-23 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-23 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc
Comment by Gerrit Gerrit [ 2020-06-29 ]
Change oioioi~master~Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3490

SIO-2364 Created download/upload mechanism,

Change-Id: Ie9f9fe07ae6be589ea8770ce6424bea41243f9dc




[SIO-2363] [UI] In the problem view, add button "Submit" for all the problems that are submitable Created: 2020-05-23  Updated: 2020-05-23  Resolved: 2020-05-23

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Won't Fix Votes: 0
Labels: None

Attachments: PNG File Screenshot from 2020-05-23 10-04-18.png    

 Description   
The button should redirect to the submitting view with the problem already chosen. This will be quite handy in contests with many problems.

 Comments   
Comment by Szymon Acedański [ 2020-05-23 ]
This is generally not a good UX practice to add the same button to each row of a table. It makes the UI cluttered.




Migrate to Python 3 (SIO-2361)

[SIO-2362] Fix Python 3 tests. Created: 2020-05-19  Updated: 2021-04-13  Resolved: 2021-04-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Pragacz Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~Ie8da495dd728f782426b49beed96c8d347c90d22, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3474

(SIO-2362) Fix some tests in the sinolpack package.

Change-Id: Ie8da495dd728f782426b49beed96c8d347c90d22
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~Ie8da495dd728f782426b49beed96c8d347c90d22, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3474

(SIO-2362) Fix some tests in the sinolpack package.

Change-Id: Ie8da495dd728f782426b49beed96c8d347c90d22
Comment by Gerrit Gerrit [ 2020-05-22 ]
Change oioioi~master~I77a281dbd5a944d79323b7b319957288acc76976, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3483

(SIO-2362) Fix tests in the 'base' package.

Change-Id: I77a281dbd5a944d79323b7b319957288acc76976
Comment by Gerrit Gerrit [ 2020-05-23 ]
Change oioioi~master~I0889402540833dc1de261370217040acbf1609d0, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3482

SIO-2362 Fix python3 tests.

Fix html-content encoding in testrun.
Fix NoneType comparison in problems/views.py.
Fix dict_type + operation in problems/views.py.
Fix response_body in contests/tests/tests/py.
Fix zeus module.
Fix testspackages (remove name encoding in views).
Fix filetracker storage.py encode str if python3.
Fix mailsubmit (now hashing algorithm is required).
Fix testrun (change bytes to string).
Try fixing printer (checks on hudson).

Change-Id: I0889402540833dc1de261370217040acbf1609d0
Comment by Gerrit Gerrit [ 2020-05-24 ]
Change oioioi~master~I0889402540833dc1de261370217040acbf1609d0, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3482

SIO-2362 Fix python3 tests.

Fix html-content encoding in testrun.
Fix NoneType comparison in problems/views.py.
Fix dict_type + operation in problems/views.py.
Fix response_body in contests/tests/tests/py.
Fix zeus module.
Fix testspackages (remove name encoding in views).
Fix filetracker storage.py encode str if python3.
Fix mailsubmit (now hashing algorithm is required).
Fix testrun (change bytes to string).
Try fixing printer (checks on hudson).

Change-Id: I0889402540833dc1de261370217040acbf1609d0
Comment by Gerrit Gerrit [ 2020-05-24 ]
Change oioioi~master~I0889402540833dc1de261370217040acbf1609d0, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3482

SIO-2362 Fix python3 tests.

Fix html-content encoding in testrun.
Fix NoneType comparison in problems/views.py.
Fix dict_type + operation in problems/views.py.
Fix response_body in contests/tests/tests/py.
Fix zeus module.
Fix testspackages (remove name encoding in views).
Fix filetracker storage.py encode str if python3.
Fix mailsubmit (now hashing algorithm is required).
Fix testrun (change bytes to string).
Try fixing printer (checks on hudson).

Change-Id: I0889402540833dc1de261370217040acbf1609d0
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I9329ca203ac47461101e23da62185e00fa7618f0, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3489

(SIO-2362) Fix tests in the 'problems' package.

Change-Id: I9329ca203ac47461101e23da62185e00fa7618f0
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I9329ca203ac47461101e23da62185e00fa7618f0, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3489

(SIO-2362) Fix tests in the 'problems' package.

Change-Id: I9329ca203ac47461101e23da62185e00fa7618f0
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~I9329ca203ac47461101e23da62185e00fa7618f0, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3489

(SIO-2362) Fix tests in the 'problems' package.

Change-Id: I9329ca203ac47461101e23da62185e00fa7618f0
Comment by Gerrit Gerrit [ 2020-05-31 ]
Change oioioi~master~I0ef22b9557310f766d0020f9b4f9e75498ab5349, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3497

SIO-2362 Fix python3 tests.

Fix printing test (file encoding).

Change-Id: I0ef22b9557310f766d0020f9b4f9e75498ab5349
Comment by Gerrit Gerrit [ 2020-05-31 ]
Change oioioi~master~I0ef22b9557310f766d0020f9b4f9e75498ab5349, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3497

SIO-2362 Fix utils dict_keys.

Fix one programs test by detecting dict_keys in utils.

Change-Id: I0ef22b9557310f766d0020f9b4f9e75498ab5349
Comment by Gerrit Gerrit [ 2020-05-31 ]
Change oioioi~master~I0ef22b9557310f766d0020f9b4f9e75498ab5349, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3497

SIO-2362 Fix utils dict_keys.

Fix one programs test by detecting dict_keys in utils.

Change-Id: I0ef22b9557310f766d0020f9b4f9e75498ab5349
Comment by Gerrit Gerrit [ 2020-06-9 ]
Change oioioi~master~I0ef22b9557310f766d0020f9b4f9e75498ab5349, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3497

SIO-2362 Fix printing.

Change-Id: I0ef22b9557310f766d0020f9b4f9e75498ab5349
Comment by Artur Pragacz [ 2020-06-16 ]
https://gerrit.sio2project.mimuw.edu.pl/3435

(no-ticket) Fix lambda syntax

Change-Id: I6c3424193bb0031c7b665f73a89280b5b855e42f
Comment by Artur Pragacz [ 2020-06-16 ]
https://gerrit.sio2project.mimuw.edu.pl/3436

(no-ticket) Fix lambda syntax

Change-Id: Ie00c96a274eee71a4fb9ff4f297b7390c15bd876
Comment by Artur Pragacz [ 2020-06-16 ]
https://gerrit.sio2project.mimuw.edu.pl/3469

(no-ticket) Fix python3 syntax errors

Change-Id: I05a69de42cc5ba467f97f86505c917557a9e5045




[SIO-2361] Migrate to Python 3 Created: 2020-05-19  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Task Priority: Major
Reporter: Artur Pragacz Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2362 Fix Python 3 tests. Sub-task Resolved Wojciech Dubiel  
SIO-2369 Migrate database models Sub-task Resolved Wojciech Dubiel  
SIO-2371 Migrate to Django 1.11 Sub-task Resolved Szymon Acedański  
SIO-2373 Fix django-supervisor Sub-task Resolved Wojciech Dubiel  




[SIO-2360] Question kind tags are not translated Created: 2020-05-18  Updated: 2020-06-2  Resolved: 2020-06-2

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Stanisław Strzelecki

 Description   
In the question list, the tags on the right hand side are in english, even in polish translation

 Comments   
Comment by Gerrit Gerrit [ 2020-05-18 ]
Change oioioi~master~I8f11c682d99f537b6f55a0854693604c888ee37c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3472

[SIO-2360] Question kind tags are not translated

Added translations by hand to .po files, since these are variables,
so django could not detect their possible values.

Change-Id: I8f11c682d99f537b6f55a0854693604c888ee37c
Comment by Gerrit Gerrit [ 2020-05-22 ]
Change oioioi~master~I8f11c682d99f537b6f55a0854693604c888ee37c, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3472

[SIO-2360] Question kind tags are not translated

Added translations by hand to .po files, since these are variables,
so django could not detect their possible values.

Change-Id: I8f11c682d99f537b6f55a0854693604c888ee37c
Comment by Gerrit Gerrit [ 2020-05-22 ]
Change oioioi~master~I8f11c682d99f537b6f55a0854693604c888ee37c, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3472

[SIO-2360] Question kind tags are not translated

Added translations by hand to .po files, since these are variables,
so django could not detect their possible values.

Change-Id: I8f11c682d99f537b6f55a0854693604c888ee37c
Comment by Gerrit Gerrit [ 2020-05-22 ]
Change oioioi~master~I8f11c682d99f537b6f55a0854693604c888ee37c, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3472

[SIO-2360] Question kind tags are not translated

Added a new function in model, which returns translated label.
Added an enum to get all possible values to .po translation files.

Change-Id: I8f11c682d99f537b6f55a0854693604c888ee37c
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I8f11c682d99f537b6f55a0854693604c888ee37c, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3472

[SIO-2360] Question kind tags are not translated

Added a new function in model, which returns translated label.
Added an enum to get all possible values to .po translation files.

Change-Id: I8f11c682d99f537b6f55a0854693604c888ee37c




[SIO-2359] Clicking the problem name in Submission View could lead to the problem site Created: 2020-05-12  Updated: 2020-05-26  Resolved: 2020-05-26

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Przemysław Podleśny Assignee: Szymon Acedański
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
From my personal experience, usually when you work on a problem and find out that your solution doesn't work, your first reaction is to want to revisit the problem statement.

It would be only natural to achieve so by clicking the problem name in the submission view. It is unclickable for regular users; however, admins can use it to quickly access the problem (instance?) admin view. Replacing this behaviour with a non-user-dependent problem link might be worth considering.

 Comments   
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~Ia27acc741883114ab30ae2a78be885d9283d4ad1, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3468

(SIO-2359) Problem statement link added for users in Submission View

Previously, in Submission View admins could click on the problem name
to see all solutions sent for that problem.

Now, the problem name in this view is clickable also for regular users
and allows them to conveniently jump to the problem site or see the
problem statement, depending on the origin of the problem.

Change-Id: Ia27acc741883114ab30ae2a78be885d9283d4ad1
Comment by Gerrit Gerrit [ 2020-05-23 ]
Change oioioi~master~Ia27acc741883114ab30ae2a78be885d9283d4ad1, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3468

(SIO-2359) Problem statement link added for users in Submission View

Previously, in Submission View admins could click on the problem name
to see all solutions submitted for that problem.

Now, the problem name in this view is clickable also for regular users
and allows them to conveniently jump to the problem site or see the
problem statement, depending on the origin of the problem.

Change-Id: Ia27acc741883114ab30ae2a78be885d9283d4ad1
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~Ia27acc741883114ab30ae2a78be885d9283d4ad1, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3468

(SIO-2359) Problem statement link added for users in Submission View

Previously, in Submission View admins could click on the problem name
to see all solutions submitted for that problem.

Now, the problem name in this view is clickable also for regular users
and allows them to conveniently jump to the problem site or see the
problem statement, depending on the origin of the problem.

Change-Id: Ia27acc741883114ab30ae2a78be885d9283d4ad1




[SIO-2356] Make deployment easier Created: 2020-05-5  Updated: 2020-06-23  Resolved: 2020-06-16

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Summer Sprint 2

Type: Improvement Priority: Major
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Artur Pragacz

 Description   
Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes we should also remove Vagrant support.

 Comments   
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3455

(SIO-2356) Make deployment easier

Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes we should also remove Vagrant support.

Change-Id: Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3455

(SIO-2356) Make deployment easier

Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes we should also remove Vagrant support.

Change-Id: Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3455

(SIO-2356) Make deployment easier

Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes we should also remove Vagrant support.

Change-Id: Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3455

(SIO-2356) Make deployment easier

Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes Vagrant support is also being removed.
Some improvements are also made to hopefully fix Selenium.

Change-Id: Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77
Comment by Gerrit Gerrit [ 2020-05-6 ]
Change oioioi~master~Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3455

(SIO-2356) Make deployment easier

Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes Vagrant support is also being removed.
Some improvements are also made to hopefully fix Selenium.

Change-Id: Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77
Comment by Gerrit Gerrit [ 2020-05-6 ]
Change oioioi~master~Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3455

(SIO-2356) Make deployment easier

Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes Vagrant support is also being removed.
Some improvements are also made to hopefully fix Selenium.

Change-Id: Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77
Comment by Gerrit Gerrit [ 2020-05-12 ]
Change oioioi~master~Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3455

(SIO-2356) Make deployment easier

Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes Vagrant support is also being removed.
Some improvements are also made to hopefully fix Selenium.

Change-Id: Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77
Comment by Gerrit Gerrit [ 2020-05-12 ]
Change oioioi~master~Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3455

(SIO-2356) Make deployment easier

Create an easy way to deploy OIOIOI using the Docker technology as a backend.
Only the most basic settings should be exposed to the operator, all the other ones should be standardized.
Updating should also be noob-friendly, without the need to read diffs from UPGRADING.rst, etc.

In the light of these changes Vagrant support is also being removed.
Some improvements are also made to hopefully fix Selenium.

Change-Id: Ieb0b293dab8a7d36e6c7f3a0347c2a7a33341f77
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~I55b1b3da935f4b061642d4188b289115219999cc, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3475

(SIO-2356) Fix supervisor.conf template and upgrading info. Add hooks for Docker Hub.

Change-Id: I55b1b3da935f4b061642d4188b289115219999cc
Comment by Artur Pragacz [ 2020-06-23 ]
https://gerrit.sio2project.mimuw.edu.pl/3519

(no-ticket) Added better documentation for oioioi-easy-install and docker integration.

Change-Id: Ia10c84d4aef494102b3e714c44b0df66baae6367




[SIO-2355] Settings in contest settings should be arranged in collapsable categories Created: 2020-05-4  Updated: 2020-06-29  Resolved: 2020-05-11

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wiktor Czyż Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Wiktor Czyż

 Description   
Arrange settings in contest settings into sensible categories and make them collapsable, so the site isn't clogged.


 Comments   
Comment by Gerrit Gerrit [ 2020-05-4 ]
Change oioioi~master~I00def48f07eb53e8ba42e21f28fe30f457cd911b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3452

(SIO-2355) Contest settings arranged into collapsable categories

Arrange settings in contest settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: I00def48f07eb53e8ba42e21f28fe30f457cd911b
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~I00def48f07eb53e8ba42e21f28fe30f457cd911b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3452

(SIO-2355) Contest settings arranged into collapsable categories

Arrange settings in contest settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: I00def48f07eb53e8ba42e21f28fe30f457cd911b
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~I00def48f07eb53e8ba42e21f28fe30f457cd911b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3452

(SIO-2355) Contest settings arranged into collapsable categories

Arrange settings in contest settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: I00def48f07eb53e8ba42e21f28fe30f457cd911b
Comment by Gerrit Gerrit [ 2020-05-6 ]
Change oioioi~master~I00def48f07eb53e8ba42e21f28fe30f457cd911b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3452

(SIO-2355) Contest settings arranged into collapsable categories

Arrange settings in contest settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: I00def48f07eb53e8ba42e21f28fe30f457cd911b
Comment by Gerrit Gerrit [ 2020-05-6 ]
Change oioioi~master~I00def48f07eb53e8ba42e21f28fe30f457cd911b, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3452

(SIO-2355) Contest settings arranged into collapsable categories

Arrange settings in contest settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: I00def48f07eb53e8ba42e21f28fe30f457cd911b
Comment by Gerrit Gerrit [ 2020-05-11 ]
Change oioioi~master~I00def48f07eb53e8ba42e21f28fe30f457cd911b, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3452

(SIO-2355) Contest settings arranged into collapsable categories

Arrange settings in contest settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: I00def48f07eb53e8ba42e21f28fe30f457cd911b
Comment by Gerrit Gerrit [ 2020-05-11 ]
Change oioioi~master~I00def48f07eb53e8ba42e21f28fe30f457cd911b, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3452

(SIO-2355) Contest settings arranged into collapsable categories

Arrange settings in contest settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: I00def48f07eb53e8ba42e21f28fe30f457cd911b




[SIO-2354] SWIG2.0 is not working on szkopul Created: 2020-04-30  Updated: 2020-04-30

Status: New
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Stanisław Strzelecki Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
In szkopul it is impossible to submit python solutions to interactive tasks, where SWIG was used (https://szkopul.edu.pl/s/1358659/)




[SIO-2353] Some links in teacher problems view are not allowed to use Created: 2020-04-28  Updated: 2020-06-10  Resolved: 2020-06-10

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Stanisław Strzelecki

 Description   
When a teacher adds a public problem from problemset, they can modify some task settings.
There are however two links, to which the teacher, not owning the problem, has no rights.
These are package link (to download package) and advanced problem settings link.
Error 403 occurs, when entering those links.
It would be worth removing those links from teacher view

 Comments   
Comment by Gerrit Gerrit [ 2020-06-2 ]
Change oioioi~master~I04b6aac4d7c5040e4019310bc40994763df1a048, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3501

SIO-2353 Some links in teacher problems view are not allowed to use

Added a threading local variable do ProblemInstanceAdmin
to know the request when creating admin links.
If user does not have admin rights to the problem,
package and advanced settings links to not show.

Change-Id: I04b6aac4d7c5040e4019310bc40994763df1a048




[SIO-2352] Error when adding task to contest from task archive Created: 2020-04-28  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
When being on teacher account, going into:
task archive -> task -> add to contest
No contest is shown (teacher owns one teacher contest)
When clicking "To see the list of available contests click here",
error 404 is displayed.

 Comments   
Comment by Gerrit Gerrit [ 2020-05-23 ]
Change oioioi~master~If4374123c7b529e2317b7a96cefc475782cd603f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3481

(SIO-2352) Fixed 'Add to contest' tab in contest view

Change-Id: If4374123c7b529e2317b7a96cefc475782cd603f




[SIO-2351] Cannot add to contest from "add to contest" in problem site Created: 2020-04-24  Updated: 2020-12-4  Resolved: 2020-11-18

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Bug Priority: Major
Reporter: Michalina Sidor Assignee: Wojciech Dubiel
Resolution: Cannot Reproduce Votes: 0
Labels: tag1


 Description   
Example: https://szkopul.edu.pl/problemset/problem/eqMHKut-ZAURUhO6-eIEUQS7/site/?key=add_to_contest

Received this via contact email today, a quick workaround is to use "Add to contest" from problemset search results instead of the tab in the problem site

 Comments   
Comment by Szymon Acedański [ 2020-04-24 ]
The link on that page is missing problem_name value. It's

https://szkopul.edu.pl/problemset/problem/eqMHKut-ZAURUhO6-eIEUQS7/add_to_contest/?problem_name=

but should be

https://szkopul.edu.pl/problemset/problem/eqMHKut-ZAURUhO6-eIEUQS7/add_to_contest/?problem_name=something_here
Comment by Michalina Sidor [ 2020-04-24 ]
If you go to https://szkopul.edu.pl/problemset/problem/eqMHKut-ZAURUhO6-eIEUQS7/site/?key=add_to_contest you'll find that link there
Comment by Wojciech Dubiel [ 2020-11-18 ]
Probably fixed by https://gerrit.sio2project.mimuw.edu.pl/#/c/3481/
together with SIO-2352




[SIO-2350] API: no problem_id after package_upload Created: 2020-04-23  Updated: 2020-12-16  Resolved: 2020-12-15

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version, For the OI Team
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Dominik Klemba Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2394 Improve API support for problem packa... Resolved

 Description   
Names from: https://sio2.mimuw.edu.pl/api/docs/

There is no way to check problem_id after package_upload, within API.
It makes impossible automatic reuploading package inside CI, without checking id by hand.

Because of that, API is much less useful than it could be.

Possible solution:
- package_upload returns package_id,
- package_id allows to check upload status (and problem_id if upload was successful).


Other solutions are also possible:
- Possibility to use package_id instead of problem_id.
- Reserving problem_id at the beginning. On fail, it is still reserved and waiting for package reupload.

 Comments   
Comment by Wojciech Dubiel [ 2020-12-2 ]
An alternative/additional solution would be to add an API endpoint to query problem ID based on contest_id and short_name. That'd make it much easier for the CI usecase.
Comment by Dominik Klemba [ 2020-12-2 ]
Totally agree, we should think about it earlier.

Possibility to check status by id would be also great (so, CI would be able to communicate if upload was successful).
Comment by Gerrit Gerrit [ 2020-12-15 ]
Change oioioi~master~I5257b7cd5cde1d82a3c17ce1e448722ed94405e0, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3571

SIO-2350 Ease use of package-related API functions

Change-Id: I5257b7cd5cde1d82a3c17ce1e448722ed94405e0
Comment by Gerrit Gerrit [ 2020-12-15 ]
Change oioioi~master~I5257b7cd5cde1d82a3c17ce1e448722ed94405e0, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3571

SIO-2350 Ease use of package-related API functions

Change-Id: I5257b7cd5cde1d82a3c17ce1e448722ed94405e0
Comment by Gerrit Gerrit [ 2020-12-15 ]
Change oioioi~master~I5257b7cd5cde1d82a3c17ce1e448722ed94405e0, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3571

SIO-2350 Add API endpoint to check package upload status

Change-Id: I5257b7cd5cde1d82a3c17ce1e448722ed94405e0
Comment by Jakub Wasilewski [ 2020-12-16 ]
Change is merged: https://gerrit.sio2project.mimuw.edu.pl/#/c/3571/

package upload/reupload API's return package_id that can be used to query new API endpoint for package upload status
When new API endpoint returns OK as package status (which means package got successfully uploaded) it also returns
problem_id that can later be used to reupload the package
Comment by Wojciech Dubiel [ 2020-12-16 ]
I added a meta-ticket for other API improvements that'd help with problem package CI https://jira.sio2project.mimuw.edu.pl/browse/SIO-2394




[SIO-2349] Super users cannot access user group details Created: 2020-04-22  Updated: 2022-03-18

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Michalina Sidor Assignee: Mieszko Grodzicki
Resolution: Unresolved Votes: 0
Labels: tag1


 Description   
While responding to an email from a teacher I discovered that despite my super user privileges I get a 403 error when I go to someone's contest and click "Modify group" under one of their user groups.

 Comments   
Comment by Mieszko Grodzicki [ 2022-03-18 ]
Can't reproduce. Sure, visiting e.g. /usergroups/show/1/ by superuser not owning the group results in 403, but I think it is intended - it's a view that should be visible only to the owner of the group. Superusers can edit it on /admin/usergroups/usergroup/1/change/.




[SIO-2348] Allow owners of problemset problems to decide if tests are public Created: 2020-04-18  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Winter Sprint

Type: New Feature Priority: Major
Reporter: Szymon Acedański Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag2

Sprint: TAG 2020/21 Winter Sprint

 Description   
Many of our problemset tasks have had their tests published.
So it would be convenient to have these tests available @ Szkopul as well.
And maybe we can publish tests which have not been published before, for educational purposes.

Additionally, if a task with published tests is being added by a teacher, it should be clear for her/him that the tests are publicly available.

 Comments   
Comment by Alicja Kluczek [ 2021-01-27 ]
It's already possible (first part of task) -- in one click you can publish the tests.
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ief823e09e176b96481c1debb07d2d25cce9f6074, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3592

(SIO-2348) Add a note that tests are public to Add to contest tab.

The teacher while adding the problem to their contest should
be aware of possible cheating -- and downloading tests from problemset
may be a way to do it. In add to contest tab there is a big warning
if tests package is public now. I also updated the README to make
conditions of tests publishing clearer.

Change-Id: Ief823e09e176b96481c1debb07d2d25cce9f6074
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ief823e09e176b96481c1debb07d2d25cce9f6074, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3592

(SIO-2348) Add a note that tests are public to Add to contest tab.

The teacher while adding the problem to their contest should
be aware of possible cheating -- and downloading tests from problemset
may be a way to do it. In add to contest tab there is a big warning
if tests package is public now. I also updated the README to make
conditions of tests publishing clearer.

Change-Id: Ief823e09e176b96481c1debb07d2d25cce9f6074
Comment by Wojciech Dubiel [ 2021-01-27 ]
Have you checked that a teacher can publish the tests, and a regular user can see and download the tests?
Comment by Alicja Kluczek [ 2021-01-27 ]
https://szkopul.edu.pl/problemset/problem/10wspanialych/site/?key=files Here is an example of package with tests published, I can download them without even logging in – which is a bug in my opinion, but whatever.

Regarding "teacher can publish the tests" please take a look at the README I updated and added to Gerrit. A teacher can publish the tests only if they are the owners of problem.
Comment by Wojciech Dubiel [ 2021-01-27 ]
Nice
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ief823e09e176b96481c1debb07d2d25cce9f6074, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3592

(SIO-2348) Add a note that tests are public to Add to contest tab.

The teacher while adding the problem to their contest should
be aware of possible cheating -- and downloading tests from problemset
may be a way to do it. In add to contest tab there is a big warning
if tests package is public now. I also updated the README to make
conditions of tests publishing clearer.

Change-Id: Ief823e09e176b96481c1debb07d2d25cce9f6074
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ief823e09e176b96481c1debb07d2d25cce9f6074, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3592

(SIO-2348) Add a note that tests are public to Add to contest tab.

The teacher while adding the problem to their contest should
be aware of possible cheating -- and downloading tests from problemset
may be a way to do it. In add to contest tab there is a big warning
if tests package is public now. I also updated the README to make
conditions of tests publishing clearer.

Change-Id: Ief823e09e176b96481c1debb07d2d25cce9f6074
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ief823e09e176b96481c1debb07d2d25cce9f6074, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3592

(SIO-2348) Add a note that tests are public to Add to contest tab.

The teacher while adding the problem to their contest should
be aware of possible cheating -- and downloading tests from problemset
may be a way to do it. In add to contest tab there is a big warning
if tests package is public now. I also updated the README to make
conditions of tests publishing clearer.

Change-Id: Ief823e09e176b96481c1debb07d2d25cce9f6074




[SIO-2347] Add tests packages description to config.yml Created: 2020-04-18  Updated: 2020-04-18

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag2


 Description   
We often upload packages with example tests and sometimes with all tests (added in TESTS PACKAGES on problem site).

It would be cool to be able to specify these tests packages in config.yml, like this:

tests_packages:
   mar_example_tests:
       description: Testy przykładowe do zadania Marchewka
       tests: [0*]
       publish_date: now

Wildcards and current publish_date are some additional features, not necessary.




[SIO-2346] Changing the name of a category in a forum changes the order of categories as well Created: 2020-04-18  Updated: 2021-01-8  Resolved: 2021-01-8

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1


 Description   
When you change the name of some category in a forum, the category is displayed then as the last one. For example, you might have categories: "Something 1", "Something 2", "Something 3". And then when you change "Something 2" to "Something 2 - important update", you are stuck with "Something 1", "Something 3" and "Something 2 - important update". This is of course not ideal.

Quick fix: sort by the creation time.
Better fix: allow to reorder the categories.

 Comments   
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~I2cf0b7fd049994308f233a981fde7ed8dc398d9d, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3552

SIO-2346 Allow reordering categories on a forum.

Change-Id: I2cf0b7fd049994308f233a981fde7ed8dc398d9d
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~I2cf0b7fd049994308f233a981fde7ed8dc398d9d, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3552

SIO-2346 Allow reordering categories on a forum.

Change-Id: I2cf0b7fd049994308f233a981fde7ed8dc398d9d
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~I2cf0b7fd049994308f233a981fde7ed8dc398d9d, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3552

SIO-2346 Allow reordering categories on a forum.

Change-Id: I2cf0b7fd049994308f233a981fde7ed8dc398d9d
Comment by Gerrit Gerrit [ 2020-11-30 ]
Change oioioi~master~I2cf0b7fd049994308f233a981fde7ed8dc398d9d, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3552

SIO-2346 Allow reordering categories on a forum.

Requests fail with 400 code if category can't be moved.

Change-Id: I2cf0b7fd049994308f233a981fde7ed8dc398d9d




[SIO-2345] Adding an announcement just for specific contestant (or contestants?) Created: 2020-04-9  Updated: 2021-01-15

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Alicja Kluczek
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Quite often we would like to notify some person or a group of people during the contest. Right now, in "Questions and news" we have just two options: send a public announcement to everyone, or answer someone's questions. Having something in-between, i.e. being able to send an announcement to a specific person, or a group of people would be really handy.

So far, the typical workflow was: ask an admin to su into the contestant account, ask an empty question (as a contestant), and then answer to this question, which is way too complicated and hacky.




[SIO-2344] API: package_upload does not work Created: 2020-04-5  Updated: 2020-04-10  Resolved: 2020-04-10

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Dominik Klemba Assignee: Szymon Acedański
Resolution: Fixed Votes: 1
Labels: tag1


 Description   
Uploading package with API does not work.
Steps to reproduce:
```
curl -v \
    --form contest_id=contest-id\
    --form round_name=round-name \
    --form package_file=@/path/to/file/abc.zip \
    --header 'Authorization: Token XXX-XXX-XXX-XXX' \
    https://sio2.mimuw.edu.pl/api/problems/package_upload/
```

Error code: 403
Returned JSON: `{"message":"Permission denied."}`

Tested on SIO and Szkopuł by different users with permissions.


PS (to person fixing)
It would be nice, if uploading packed would return problem_id needed by package_reupload, if that doesn't now.

 Comments   
Comment by Szymon Acedański [ 2020-04-5 ]
Looks like this check is incorrect:
https://github.com/sio2project/oioioi/blob/549df58b09d9699327bb5808e2ce3e30b0a4a616/oioioi/problems/api.py#L32
The is_contest_admin check does not use the passed contest.

If this is a good guess, then superadmins should be able to upload packages.
Comment by Wojciech Dubiel [ 2020-04-7 ]
Tried it as a superadmin, it worked.
Comment by Gerrit Gerrit [ 2020-04-8 ]
Change oioioi~master~Idb5c487fe13028e697510780f746e71fbe02c1df, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3438

(SIO-2344) Fix permission check in problem upload api

There's no implied contest in an API request,
so is_contest_admin doesn't make sense.
We need to use can_admin_contest instead.

Change-Id: Idb5c487fe13028e697510780f746e71fbe02c1df




[SIO-2343] ValueError: Single '}' encountered in format string Created: 2020-03-31  Updated: 2020-04-1  Resolved: 2020-04-1

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Bug Priority: Major
Reporter: Sentry Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
https://sentry.io/organizations/the-sio2-project/issues/1590453065/?referrer=jira_plugin

A bug while generating package_info messages. Connected to a recent change.

 Comments   
Comment by Gerrit Gerrit [ 2020-04-1 ]
Change oioioi~master~I56e1da78b551973bf6376679471e018efe6dd966, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3434

(SIO-2343) package_info message rendering fix

Messages containing braces ('{', '}') were wrongfully
treated as format strings. Now it is no longer so.

Change-Id: I56e1da78b551973bf6376679471e018efe6dd966




[SIO-2342] Create script that allows user to set settings Created: 2020-03-30  Updated: 2020-07-15  Resolved: 2020-07-15

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Franciszek Hnatów Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
1. Select which settings should be managed by user
2. Create a script which enables this

 Comments   
Comment by Gerrit Gerrit [ 2020-03-30 ]
Change oioioi~master~I559486a534c6741d9f8cc5b9f3d7472fd46a8307, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3430

SIO-2342 Created a proposition of a function that manages user settings

Change-Id: I559486a534c6741d9f8cc5b9f3d7472fd46a8307
Comment by Gerrit Gerrit [ 2020-04-7 ]
Change oioioi~master~I559486a534c6741d9f8cc5b9f3d7472fd46a8307, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3430

SIO-2342 Created a proposition of a function that manages user settings

Still needs to fill in clues

Change-Id: I559486a534c6741d9f8cc5b9f3d7472fd46a8307
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~I559486a534c6741d9f8cc5b9f3d7472fd46a8307, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3430

SIO-2342 Created a proposition of a function that manages user settings

Still needs to fill in clues

Change-Id: I559486a534c6741d9f8cc5b9f3d7472fd46a8307




[SIO-2341] Login form in upper right corner might be improved Created: 2020-03-17  Updated: 2020-05-11  Resolved: 2020-05-11

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2336 Focus login field Sub-task Resolved Szymon Acedański  
TAG Developer: Stanisław Strzelecki

 Description   
When opening the login form, cursor should focus on the login field.
Also, pressing tab from password input box, should change the focus to login button, not register button

 Comments   
Comment by Gerrit Gerrit [ 2020-03-24 ]
Change oioioi~master~I6d8e681b08544254885344f8e6fa85b325c8941e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3426

SIO-2341 Login form in upper right corner might be improved

Swaped login and register buttons, so that it's more natural,
and tab from password box jumps to login button.

Also wrote a small script, which changes focus to login field,
when the form is opened.

Change-Id: I6d8e681b08544254885344f8e6fa85b325c8941e
Comment by Gerrit Gerrit [ 2020-03-24 ]
Change oioioi~master~I6d8e681b08544254885344f8e6fa85b325c8941e, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3426

SIO-2341 Login form in upper right corner might be improved

Swaped login and register buttons, so that it's more natural,
and tab from password box jumps to login button.

Also wrote a small script, which changes focus to login field,
when the form is opened.

Change-Id: I6d8e681b08544254885344f8e6fa85b325c8941e
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~I6d8e681b08544254885344f8e6fa85b325c8941e, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3426

SIO-2341 Login form in upper right corner might be improved

Swaped login and register buttons, so that it's more natural,
and tab from password box jumps to login button.

Also wrote a small script, which changes focus to login field,
when the form is opened.

Change-Id: I6d8e681b08544254885344f8e6fa85b325c8941e
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~I6d8e681b08544254885344f8e6fa85b325c8941e, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3426

SIO-2341 Login form in upper right corner might be improved

Swaped login and register buttons, so that it's more natural,
and tab from password box jumps to login button.

Also wrote a small script, which changes focus to login field,
when the form is opened.

Change-Id: I6d8e681b08544254885344f8e6fa85b325c8941e
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~I6d8e681b08544254885344f8e6fa85b325c8941e, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3426

SIO-2341 Login form in upper right corner might be improved

Swaped login and register buttons, so that it's more natural,
and tab from password box jumps to login button.

Also wrote a small script, which changes focus to login field,
when the form is opened.

Change-Id: I6d8e681b08544254885344f8e6fa85b325c8941e




[SIO-2340] [UI] Question list and links on the question are unintuitive Created: 2020-03-17  Updated: 2020-06-2  Resolved: 2020-06-2

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Stanisław Strzelecki

 Description   
Links on questions are unintuitive in use.
User, reading from left to right, in order to view a question, clicks on the first link - author, and views his list of questions, instead of the question itself. But, pressing both of date links, opens the question.

It's worth considering opening the question by clicking on the list element (not any particular link), or at least expanding the question under the element.

 Comments   
Comment by Gerrit Gerrit [ 2020-05-18 ]
Change oioioi~master~I57d4be95f48459afb46574a69afdedb0f84493e7, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3471

[SIO-2340] [UI] Question list and links on the question are unintuitive

Removed links from dates, leaving only question title as a link to it's content.
Made questions clickable, then the content collapses under it.

Change-Id: I57d4be95f48459afb46574a69afdedb0f84493e7
Comment by Gerrit Gerrit [ 2020-05-18 ]
Change oioioi~master~I57d4be95f48459afb46574a69afdedb0f84493e7, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3471

[SIO-2340] [UI] Question list and links on the question are unintuitive

Removed links from dates, leaving only question title as a link to it's content.
Made questions clickable, then the content collapses under it.

Change-Id: I57d4be95f48459afb46574a69afdedb0f84493e7
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~I57d4be95f48459afb46574a69afdedb0f84493e7, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3471

[SIO-2340] [UI] Question list and links on the question are unintuitive

Removed links from dates, leaving only question title as a link to it's content.
Made questions clickable, then the content collapses under it.

Change-Id: I57d4be95f48459afb46574a69afdedb0f84493e7
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~I57d4be95f48459afb46574a69afdedb0f84493e7, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3471

[SIO-2340] [UI] Question list and links on the question are unintuitive

Removed links from dates, leaving only question title as a link to it's content.
Made questions clickable, then the content collapses under it.

Change-Id: I57d4be95f48459afb46574a69afdedb0f84493e7
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~I57d4be95f48459afb46574a69afdedb0f84493e7, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3471

[SIO-2340] [UI] Question list and links on the question are unintuitive

Removed links from dates, leaving only question title as a link to it's content.
Made questions clickable, then the content collapses under it.

Changed tests, so they now look only at question topics,
as replied questions' body is visible in the dropdown section.

Change-Id: I57d4be95f48459afb46574a69afdedb0f84493e7




[SIO-2339] [UI] "Add problem" in problemset looks like a tab Created: 2020-03-17  Updated: 2020-05-19  Resolved: 2020-05-19

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
relates to SIO-2337 [UI] "Add to contest" button is unnat... Resolved

 Description   
"Add problem" button looks like a tab (my problems, public problems, etc.) in problemset. It might be unclear, that it's used to create new problems. Might be worth making it look aside from other tabs (like styling it as a green button), so using it would be intuitive

 Comments   
Comment by Gerrit Gerrit [ 2020-05-10 ]
Change oioioi~master~I1c3dc680ca85f179ba7ab7023b1e33b5325dc2cb, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3457

(SIO-2339) "Add problem" tab in problemset made green

Change-Id: I1c3dc680ca85f179ba7ab7023b1e33b5325dc2cb
Comment by Gerrit Gerrit [ 2020-05-17 ]
Change oioioi~master~I1c3dc680ca85f179ba7ab7023b1e33b5325dc2cb, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3457

(SIO-2339) "Add problem" tab in problemset made green

Change-Id: I1c3dc680ca85f179ba7ab7023b1e33b5325dc2cb




[SIO-2338] Fix language field in submit view Created: 2020-03-17  Updated: 2020-03-31  Resolved: 2020-03-31

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Summer Sprint 1

Type: Bug Priority: Minor
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Selecting different problem doesn't properly update displayed languages and compilers.

 Comments   
Comment by Gerrit Gerrit [ 2020-03-17 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971
Comment by Gerrit Gerrit [ 2020-03-17 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971
Comment by Gerrit Gerrit [ 2020-03-17 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971
Comment by Gerrit Gerrit [ 2020-03-20 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971
Comment by Gerrit Gerrit [ 2020-03-20 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~Iae45349cf438441175939ddc7c2c07f6df67b971, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3417

(SIO-2338) Fix language field in submit view

Change-Id: Iae45349cf438441175939ddc7c2c07f6df67b971




[SIO-2337] [UI] "Add to contest" button is unnaturally placed in problemset Created: 2020-03-17  Updated: 2020-12-9  Resolved: 2020-12-9

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
is related to SIO-2339 [UI] "Add problem" in problemset look... Resolved

 Description   

In problemset, in problems list, there is an "add to contest" button. When we enter a specific problem, there is no such button anymore. To find it, we need to enter settings, and then, on the left side (in the opposite to other action buttons, which are places to the right), we find a subwindow with the desired action. We could make this button separate, and more reachable.

One of the ideas is in the tabs bar (settings, private key, ect.) add an additional tab-button, aligned to right and visible ad a button (just as in problem list in problemset)

 Comments   
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~If4374123c7b529e2317b7a96cefc475782cd603f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3481

(SIO-2337) Fixed 'Add to contest' tab in contest view

Change-Id: If4374123c7b529e2317b7a96cefc475782cd603f




Login form in upper right corner might be improved (SIO-2341)

[SIO-2336] Focus login field Created: 2020-03-3  Updated: 2020-06-16  Resolved: 2020-06-16

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Sub-task Priority: Trivial
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
After clicking "Log in" login name field should have focus.




[SIO-2335] Questions and News form filters look bad Created: 2020-03-3  Updated: 2022-04-6  Resolved: 2022-04-6

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Franciszek Hnatów Assignee: Tomasz Waleń
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File filters_now.png     PNG File filters_prop_1.png     PNG File filters_prop_2.png     PNG File filters_prop_3.png    
Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
Boxes are too small, and Author Username field is misaligned

[Aktualizacja 25.03.22]
Dodałem w załączniku zrzut ekranu przedstawiający filtry teraz i 3 swoje propozycje, jak można byłoby zmienić ich wygląd.

 Comments   
Comment by Tomek Waleń [ 2022-03-28 ]
I vote for prop_2
Comment by Andrzej Radzimiński [ 2022-03-28 ]
vote for 1 or 2
Comment by Kacper Lewandowski [ 2022-03-28 ]
I'm for prop_2 too.
Comment by Gerrit Gerrit [ 2022-04-5 ]
Change oioioi~master~I202a2d74ca83f6011a4fa6e1002d86e0a1f0d7b5, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3823

SIO-2335 Improved questions filters.

Removed form labels, added "Clear filters" button,
changed styling and made form errors show up
outside the filters box. Additionaly, when user
inputs some incorrect values, only invalid filters
are ignored - not all of them as it was before.

Change-Id: I202a2d74ca83f6011a4fa6e1002d86e0a1f0d7b5
Comment by Gerrit Gerrit [ 2022-04-5 ]
Change oioioi~master~I202a2d74ca83f6011a4fa6e1002d86e0a1f0d7b5, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3823

SIO-2335 Improved questions filters.

Removed form labels, added "Clear filters" button,
changed styling and made form errors show up
outside the filters box. Additionaly, when user
inputs some incorrect values, only invalid filters
are ignored - not all of them as it was before.

Change-Id: I202a2d74ca83f6011a4fa6e1002d86e0a1f0d7b5
Comment by Gerrit Gerrit [ 2022-04-5 ]
Change oioioi~master~I202a2d74ca83f6011a4fa6e1002d86e0a1f0d7b5, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3823

SIO-2335 Improved questions filters.

Removed form labels, added "Clear filters" button,
changed styling and made form errors show up
outside the filters box. Additionaly, when user
inputs some incorrect values, only invalid filters
are ignored - not all of them as it was before.

Change-Id: I202a2d74ca83f6011a4fa6e1002d86e0a1f0d7b5




[SIO-2334] [UI] Change labels in contest administration view Created: 2020-03-3  Updated: 2020-07-15  Resolved: 2020-07-15

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Franciszek Hnatów Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
It should be more transparent, which (problem instance or problem) settings are accessed from actions menu

1. Problem settings should be accessible from actions menu, as well as problem instance settings (they should be name appropriately)
2. For the sake of consistency, clicking on problem name should open task statement.

 Comments   
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3429

SIO-2334 [UI] Change labels in contest administration view A proposition of how the solution might look like.

Change-Id: Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3429

SIO-2334 [UI] Change labels in contest administration view A proposition of how the solution might look like.

Change-Id: Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3429

SIO-2334 [UI] Change labels in contest administration view A proposition of how the solution might look like.

Change-Id: Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3429

SIO-2334 [UI] Change labels in contest administration view A proposition of how the solution might look like.

Change-Id: Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33
Comment by Gerrit Gerrit [ 2020-03-28 ]
Change oioioi~master~Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3429

SIO-2334 [UI] Change labels in contest administration view A proposition of how the solution might look like.

Change-Id: Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3429

SIO-2334 [UI] Change labels in contest administration view A proposition of how the solution might look like.

Change-Id: Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3429

SIO-2334 [UI] Change labels in contest administration view A proposition of how the solution might look like.

Change-Id: Ib8fd163bf8a6686ba7062e86ecf5d7970e18ff33




[SIO-2333] Settings in problem settings should be arranged in collapsable categories Created: 2020-03-3  Updated: 2020-06-29  Resolved: 2020-05-11

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Franciszek Hnatów Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Wiktor Czyż

 Description   
Arrange settings in problem settings into sensible categories and make them collapsable, so the site isn't clogged.

 Comments   
Comment by Franciszek Hnatów [ 2020-03-3 ]
Requires creating a new template or adjusting django template accordingly
Comment by Gerrit Gerrit [ 2020-05-2 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Settings in problem settings should be arranged in collapsable categories

Arrange settings in problem settings into sensible categories and make them
collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-2 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Settings in problem settings arranged in collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-2 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Problem settings arranged into collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-4 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Problem settings arranged into collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-4 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Problem settings arranged into collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Problem settings arranged into collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Problem settings arranged into collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-5 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Problem settings arranged into collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-6 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Problem settings arranged into collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee
Comment by Gerrit Gerrit [ 2020-05-6 ]
Change oioioi~master~Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3450

(SIO-2333) Problem settings arranged into collapsable categories

Arrange settings in problem settings into sensible categories
and make them collapsable, so the site isn't clogged.

Change-Id: Ied53d4001194a6eaf81ce8b3aee0e4e0203eecee




[SIO-2332] Move Test run and Score reveal configs from problem settings to problem instance settings Created: 2020-03-3  Updated: 2020-06-23  Resolved: 2020-06-23

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Franciszek Hnatów Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Stanisław Strzelecki

 Description   
Test Run and Score reveal configs should be a part of problem instance - not global problem.

 Comments   
Comment by Gerrit Gerrit [ 2020-05-23 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-05-23 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-05-25 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-05-26 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-06-2 ]
Change oioioi~master~I8c612f41c87bcca395b2902db6447ae62ff940df, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3485

(SIO-2332) Moved score reveal settings from problem to problem instance

Change-Id: I8c612f41c87bcca395b2902db6447ae62ff940df
Comment by Gerrit Gerrit [ 2020-06-7 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.
Comment by Gerrit Gerrit [ 2020-06-11 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.
Comment by Gerrit Gerrit [ 2020-06-11 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.
Comment by Gerrit Gerrit [ 2020-06-16 ]
Change oioioi~master~I80861dbc58f87ec16158096bfb3840258b48d91b, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3487

(SIO-2332) Merge TestRunConfig and TestRunConfigForInstance

Now time and memory limit for test runs can be set for each problem
independently (unlike previously, where every instance inherited
the settings from its main 'problem' node).

Change-Id: I80861dbc58f87ec16158096bfb3840258b48d91b
Note: Django 1.11 or higher is required to run the migrations.




[SIO-2331] Improve all submissions view Created: 2020-03-3  Updated: 2020-03-23  Resolved: 2020-03-23

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Franciszek Hnatów Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Franciszek Hnatów
TAG Reviewer: Stanisław Strzelecki

 Description   
Filters:
Make categories in filter list collapsable + make them collapsed by default
Sort entries in "by problem" list alphabetically

Search:
Add problem name to searched values.

 Comments   
Comment by Gerrit Gerrit [ 2020-03-16 ]
Change oioioi~master~If17643597ff5251497309714589729b172fc1398, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3415

SIO-2331 Improve all submissions view

Change-Id: If17643597ff5251497309714589729b172fc1398
Comment by Gerrit Gerrit [ 2020-03-16 ]
Change oioioi~master~If17643597ff5251497309714589729b172fc1398, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3415

SIO-2331 Improve all submissions view

Change-Id: If17643597ff5251497309714589729b172fc1398
Comment by Gerrit Gerrit [ 2020-03-17 ]
Change oioioi~master~If17643597ff5251497309714589729b172fc1398, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3415

SIO-2331 Improve all submissions view

Change-Id: If17643597ff5251497309714589729b172fc1398
Comment by Gerrit Gerrit [ 2020-03-17 ]
Change oioioi~master~If17643597ff5251497309714589729b172fc1398, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3415

SIO-2331 Improve all submissions view

Change-Id: If17643597ff5251497309714589729b172fc1398
Comment by Gerrit Gerrit [ 2020-03-17 ]
Change oioioi~master~If17643597ff5251497309714589729b172fc1398, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3415

SIO-2331 Improve all submissions view

Change-Id: If17643597ff5251497309714589729b172fc1398
Comment by Gerrit Gerrit [ 2020-03-17 ]
Change oioioi~master~If17643597ff5251497309714589729b172fc1398, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3415

SIO-2331 Improve all submissions view

Change-Id: If17643597ff5251497309714589729b172fc1398
Comment by Gerrit Gerrit [ 2020-03-17 ]
Change oioioi~master~If17643597ff5251497309714589729b172fc1398, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3415

SIO-2331 Improve all submissions view

Change-Id: If17643597ff5251497309714589729b172fc1398




[SIO-2330] Teachers cannot delete their problems Created: 2020-02-15  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Sentry Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag2

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
https://sentry.io/organizations/the-sio2-project/issues/1512998050/?referrer=jira_plugin

{code}
NoReverseMatch: Reverse for 'contests_probleminstance_changelist' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
(11 additional frame(s) were not displayed)
...
  File "oioioi/base/admin.py", line 373, in delete_view
    return model_admin.delete_view(request, object_id, extra_context)
  File "oioioi/problems/admin.py", line 376, in delete_view
    return self.redirect_to_list(request, obj)
  File "oioioi/problems/admin.py", line 332, in redirect_to_list
    return redirect('oioioiadmin:contests_probleminstance_changelist')
  File "oioioi/contests/current_contest.py", line 105, in reverse
    return django_reverse(target, *args, **kwargs)

NoReverseMatch: Reverse for 'contests_probleminstance_changelist' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
{code}

 Comments   
Comment by Michalina Sidor [ 2020-02-15 ]
Moreover deleting by Problem.objects.filter(...).delete() raises IntegrityError: insert or update on table "problems_problemstatistics" violates foreign key constraint "problems_problemstat_problem_id_9570522e_fk_problems_problem_id"
Comment by Franciszek Hnatów [ 2020-03-9 ]
I cannot reproduce this bug, is there any chance it is already solved somehow?




[SIO-2329] Task archive is broken, when someone has some submission in it Created: 2020-02-14  Updated: 2020-04-9  Resolved: 2020-04-9

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
After accessing https://szkopul.edu.pl/task_archive/oi/, I got an internal server error with the following traceback:

Traceback (most recent call last):
  File "/var/lib/sio2/szkopul-20200212-192123-b47c2c-bad3fb/venv/local/lib/ python2.7/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = get_response(request)
  File "/var/lib/sio2/szkopul-20200212-192123-b47c2c-bad3fb/venv/local/lib/ python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/var/lib/sio2/szkopul-20200212-192123-b47c2c-bad3fb/venv/local/lib/ python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/var/lib/sio2/szkopul-20200212-192123-b47c2c-bad3fb/venv/local/lib/ python2.7/site-packages/django/utils/decorators.py", line 185, in inner
    return func(*args, **kwargs)
  File "/var/lib/sio2/szkopul-20200212-192123-b47c2c-bad3fb/code/oioioi/ problems/views.py", line 657, in task_archive_tag_view
    user_results = _get_results_info(request, problems)
  File "/var/lib/sio2/szkopul-20200212-192123-b47c2c-bad3fb/code/oioioi/ problems/views.py", line 611, in _get_results_info
    'max_score': result.submission_report.score_report.max_score.to_int(),
AttributeError: 'NoneType' object has no attribute 'to_int'

 Comments   
Comment by Bartosz Kostka [ 2020-02-14 ]
This was probably broken by SIO-2289.
Comment by Gerrit Gerrit [ 2020-02-21 ]
Change oioioi~master~I837368cba7ffeb3e42a70b0a603367ccbb50b5e3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3407

(SIO-2329) Fixed task archive server error for some users

Submissions with non-integer results are now treated separately.
Having only one of the pair (score, max_score) be an integer contradicts
the internal logic and such results will be ignored by the task archive.
Additionally, problem names and labels are now organised in two columns
for better clarity.

Change-Id: I837368cba7ffeb3e42a70b0a603367ccbb50b5e3
Comment by Gerrit Gerrit [ 2020-02-21 ]
Change oioioi~master~I837368cba7ffeb3e42a70b0a603367ccbb50b5e3, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3407

(SIO-2329) Fixed task archive server error for some users

Submissions with non-integer results are now treated separately.
Having only one of the pair (score, max_score) be an integer contradicts
the internal logic and such results will be ignored by the task archive.
Additionally, problem names and labels are now organised in two columns
for better clarity.

Change-Id: I837368cba7ffeb3e42a70b0a603367ccbb50b5e3
Comment by Bartosz Kostka [ 2020-04-9 ]
I think this was resolved, at least it works now for me.




[SIO-2328] _FileLikeFromResponse has no 'close' method Created: 2020-02-12  Updated: 2020-02-12

Status: New
Project: The SIO2 project
Component/s: Filetracker
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Sentry Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
_FileLikeFromResponse defined here:
https://github.com/sio2project/filetracker/blob/master/filetracker/client/remote_data_store.py#L270

should have a close method.
The close method is called eg. here:

https://github.com/sio2project/oioioi/blob/master/oioioi/oireports/views.py#L157

Stacktrace on sentry:

https://sentry.io/organizations/the-sio2-project/issues/1510360122/?referrer=jira_plugin





[SIO-2327] Navbar in szkopul/submissions is not loaded Created: 2020-02-4  Updated: 2020-03-3  Resolved: 2020-03-3

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

TAG Developer: Stanisław Strzelecki

 Description   
When opening szkopul/submissions, navbar is not loaded.
On official site it just doesn't appear, while on localhost an error is thrown, saying about nonexisting template

 Comments   
Comment by Gerrit Gerrit [ 2020-02-18 ]
Change oioioi~master~I85411654c47c0a280581cfe3303a18a290d06167, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3406

SIO-2327 Navbar in szkopul/submissions is not loaded Changed loaded navbar template to an existing one.

Change-Id: I85411654c47c0a280581cfe3303a18a290d06167




[SIO-2326] On szkopul main page, hidden submissions are visible Created: 2020-02-4  Updated: 2020-05-11  Resolved: 2020-05-11

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Stanisław Strzelecki

 Description   
When a nonadmin user opens szkopul main page, he sees all his recent submissions, including the ones that shouldn't be visible for him.
Same happens when you click "more" under the submission list.

 Comments   
Comment by Gerrit Gerrit [ 2020-03-14 ]
Change oioioi~master~I29757caa3bf266d2d3ceab5cab468dfe305e83de, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3414

SIO-2326 On szkopul main page, hidden submissions are visible

Added a filter excluding hidden submissions from queryset

Change-Id: I29757caa3bf266d2d3ceab5cab468dfe305e83de
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~I29757caa3bf266d2d3ceab5cab468dfe305e83de, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3414

SIO-2326 On szkopul main page, hidden submissions are visible

Added a filter excluding hidden submissions from queryset

Change-Id: I29757caa3bf266d2d3ceab5cab468dfe305e83de
Comment by Gerrit Gerrit [ 2020-03-29 ]
Change oioioi~master~I29757caa3bf266d2d3ceab5cab468dfe305e83de, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3414

SIO-2326 On szkopul main page, hidden submissions are visible

Added a filter excluding hidden submissions from queryset

Change-Id: I29757caa3bf266d2d3ceab5cab468dfe305e83de
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~I29757caa3bf266d2d3ceab5cab468dfe305e83de, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3414

SIO-2326 On szkopul main page, hidden submissions are visible

Added a filter excluding hidden submissions from queryset

Change-Id: I29757caa3bf266d2d3ceab5cab468dfe305e83de
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~I29757caa3bf266d2d3ceab5cab468dfe305e83de, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3414

SIO-2326 On szkopul main page, hidden submissions are visible

Added a filter excluding hidden submissions from queryset

Change-Id: I29757caa3bf266d2d3ceab5cab468dfe305e83de
Comment by Gerrit Gerrit [ 2020-03-31 ]
Change oioioi~master~I29757caa3bf266d2d3ceab5cab468dfe305e83de, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3414

SIO-2326 On szkopul main page, hidden submissions are visible

Added a filter excluding hidden submissions from queryset

Change-Id: I29757caa3bf266d2d3ceab5cab468dfe305e83de
Comment by Gerrit Gerrit [ 2020-04-1 ]
Change oioioi~master~I29757caa3bf266d2d3ceab5cab468dfe305e83de, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3414

SIO-2326 On szkopul main page, hidden submissions are visible

Added a filter excluding hidden submissions from queryset

Change-Id: I29757caa3bf266d2d3ceab5cab468dfe305e83de




[SIO-2325] Exportszu crashes on non-ascii characters Created: 2020-02-3  Updated: 2020-02-3

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Stacktrace on sentry: https://sentry.io/share/issue/d836818ab3714a5e837b54fff58a01f9/

Replacing force_text with force_bytes seems to fix it, but I have no idea whether that's the correct solution




[SIO-2324] Filetracker cache cleaner doesn't delete locks Created: 2020-01-29  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: Filetracker
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Today, szkopuł ran out of inodes, because there were too many files in deployment/cache/locks:

(venv) sio2@snag ~/deployment$ du -d 1 --inodes cache/
1690536 cache/locks
9649 cache/files
1700186 cache/

Filetracker cache cleaner periodically deletes files from cache/files, but doesn't delete corresponding locks from cache/locks, which makes them accumulate forever. This should be fixed.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
https://github.com/sio2project/filetracker/pull/72




[SIO-2323] Announcement editing and deletion for teachers Created: 2020-01-22  Updated: 2020-03-14  Resolved: 2020-03-14

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Critical
Reporter: Michalina Sidor Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Stanisław Strzelecki

 Description   
> Dzień dobry!
> Jestem nauczycielką w [REDACTED]. Pracuję z uczniami na Szkopule i przekazuję im wiadomości przez Pytania i ogłoszenia.
> Bardzo potrzebuję możliwości edycji i usuwania dodanych przeze mnie wpisów (obecnie takiej możliwości nie mam).

 Comments   
Comment by Gerrit Gerrit [ 2020-03-9 ]
Change oioioi~master~Iedef5d6225fd0d19b884007fb40b1dc6ff14da3a, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3411

SIO-2323 Announcement editing and deletion for teachers

Gave teacher possibility to edit and remove questions, just as admins can.
Fixed check_perm class:
basicadmin is a weaker permission than admin, thus admins also have
basicadmin's privilages.
Made an if statement, that in case of asking for basicadmin,
also checks admin's privilages.

Change-Id: Iedef5d6225fd0d19b884007fb40b1dc6ff14da3a




[SIO-2322] Disqualified people should still see their reports Created: 2020-01-20  Updated: 2021-01-8  Resolved: 2021-01-8

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: For the OI Team
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag2


 Description   
Right now, if we propose a disqualification of someone, they cannot see their results, they just see the reason of the potential disqualification. Because of that, they cannot file any complaints about their results (as the disqualifications are resolved after the deadline for complaints).

 Comments   
Comment by Gerrit Gerrit [ 2021-01-8 ]
Change oioioi~master~Ib21530f59f87fa82b643c90170bb302889e39840, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3576

(SIO-2322) Make reports visible for disqualified contestants.

After disqualification, contestant had no access to their reports,
so it was harder to file a complaint. Now it's visible alonside with score.
It doesn't affect the ranking, from which contestant is removed until
the disqualification is resolved.

Change-Id: Ib21530f59f87fa82b643c90170bb302889e39840
Comment by Gerrit Gerrit [ 2021-01-8 ]
Change oioioi~master~Ib21530f59f87fa82b643c90170bb302889e39840, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3576

(SIO-2322) Make reports visible for disqualified contestants.

After disqualification, contestant had no access to their reports,
so it was harder to file a complaint. Now it's visible alongside with the score.
It doesn't affect the ranking, from which contestant is removed until
the disqualification is resolved.

Change-Id: Ib21530f59f87fa82b643c90170bb302889e39840
Comment by Gerrit Gerrit [ 2021-01-8 ]
Change oioioi~master~Ib21530f59f87fa82b643c90170bb302889e39840, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3576

(SIO-2322) Make reports visible for disqualified contestants.

After disqualification, contestant had no access to their reports,
so it was harder to file a complaint. Now it's visible alongside with the score.
It doesn't affect the ranking, from which contestant is removed until
the disqualification is resolved.

Change-Id: Ib21530f59f87fa82b643c90170bb302889e39840




[SIO-2321] Limited time for user contests Created: 2020-01-14  Updated: 2020-03-3  Resolved: 2020-01-29

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2019/20 Sprint 1
Fix Version/s: TAG 2019/20 Sprint 1

Type: New Feature Priority: Minor
Reporter: Cezary Chodun Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Modify the user contests module so that the user contests could be enabled for limited amount of time.
In practice limit user rounds to a predefined date from settings.

 Comments   
Comment by Gerrit Gerrit [ 2020-01-14 ]
Change oioioi~master~I4d78ac3a39e0605009e6604cf2638754585ebe14, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3384

SIO-2321 Limited time for user contests

Modified forms to reject rounds that end after the USER_CONTEST_TIMEOUT(from settings).

Change-Id: I4d78ac3a39e0605009e6604cf2638754585ebe14
Comment by Gerrit Gerrit [ 2020-01-15 ]
Change oioioi~master~I4d78ac3a39e0605009e6604cf2638754585ebe14, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3384

SIO-2321 Limited time for user contests

Modified forms to reject rounds that end after the USER_CONTEST_TIMEOUT(from settings).

Change-Id: I4d78ac3a39e0605009e6604cf2638754585ebe14
Comment by Gerrit Gerrit [ 2020-01-15 ]
Change oioioi~master~I4d78ac3a39e0605009e6604cf2638754585ebe14, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3384

SIO-2321 Limited time for user contests

Modified forms to reject rounds that end after the USER_CONTEST_TIMEOUT(from settings).

Change-Id: I4d78ac3a39e0605009e6604cf2638754585ebe14
Comment by Cezary Chodun [ 2020-01-29 ]
Time limiting can be enabled by a special setting.




[SIO-2320] [UI] Provide an option to deselect a file in submit view Created: 2020-01-8  Updated: 2020-06-16  Resolved: 2020-06-16

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Summer Sprint 4

Type: Improvement Priority: Minor
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Artur Pragacz

 Description   
Right now users need to completely refresh the page to clear their selected file, which is highly inconvenient.

 Comments   
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~Ia182e260836b5cf073d6da72ab1436db9d84ac6b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3395

(SIO-2320) Provide an option to deselect a file in submit view

Change-Id: Ia182e260836b5cf073d6da72ab1436db9d84ac6b
Comment by Gerrit Gerrit [ 2020-06-3 ]
Change oioioi~master~Ia182e260836b5cf073d6da72ab1436db9d84ac6b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3395

(SIO-2320) Provide an option to deselect a file in submit view

Change-Id: Ia182e260836b5cf073d6da72ab1436db9d84ac6b
Comment by Gerrit Gerrit [ 2020-06-3 ]
Change oioioi~master~Ia182e260836b5cf073d6da72ab1436db9d84ac6b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3395

(SIO-2320) Provide an option to deselect a file in submit view

Change-Id: Ia182e260836b5cf073d6da72ab1436db9d84ac6b
Comment by Gerrit Gerrit [ 2020-06-3 ]
Change oioioi~master~Ia182e260836b5cf073d6da72ab1436db9d84ac6b, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3395

(SIO-2320) Provide an option to deselect a file in submit view

Change-Id: Ia182e260836b5cf073d6da72ab1436db9d84ac6b
Comment by Gerrit Gerrit [ 2020-06-16 ]
Change oioioi~master~Ia182e260836b5cf073d6da72ab1436db9d84ac6b, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3395

(SIO-2320) Provide an option to deselect a file in submit view

Change-Id: Ia182e260836b5cf073d6da72ab1436db9d84ac6b
Comment by Gerrit Gerrit [ 2020-06-16 ]
Change oioioi~master~Ia182e260836b5cf073d6da72ab1436db9d84ac6b, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3395

(SIO-2320) Provide an option to deselect a file in submit view

Change-Id: Ia182e260836b5cf073d6da72ab1436db9d84ac6b
Comment by Gerrit Gerrit [ 2020-06-16 ]
Change oioioi~master~Ia182e260836b5cf073d6da72ab1436db9d84ac6b, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3395

(SIO-2320) Provide an option to deselect a file in submit view

Change-Id: Ia182e260836b5cf073d6da72ab1436db9d84ac6b




[SIO-2319] [UI] Disable code input after selecting a file in submit view Created: 2020-01-8  Updated: 2020-03-3  Resolved: 2020-01-22

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Artur Pragacz

 Description   
In submit view after selecting a file the manual code input (and the programming language selector) should be disabled to not confuse users.

 Comments   
Comment by Gerrit Gerrit [ 2020-01-15 ]
Change oioioi~master~I73b0a808d4243edcde2990fdb2ac5334eaa84c64, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3385

(SIO-2319) Disable code input after selecting a file in submit view

Change-Id: I73b0a808d4243edcde2990fdb2ac5334eaa84c64
Comment by Gerrit Gerrit [ 2020-01-22 ]
Ignore this comment.




[SIO-2318] Add more detailed URLs in the new task archive (pointing to the particular olympiad, round, day, etc.) Created: 2019-12-28  Updated: 2021-01-26  Resolved: 2021-01-26

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: TAG 2020/21 Winter Sprint

Type: New Feature Priority: Trivial
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag2

Sprint: TAG 2020/21 Winter Sprint

 Description   
Right now, you only have links to the contests, like:
https://szkopul.edu.pl/task_archive/pa/

You cannot send someone a link to the particular year, like
https://szkopul.edu.pl/task_archive/pa/#problems-problemgroups-2019-trial
forwards us to the archive with all PA problems.

Some shorter links (like https://szkopul.edu.pl/task_archive/pa/2019/ or https://szkopul.edu.pl/task_archive/pa/2019/trial) would be even better.

 Comments   
Comment by Gerrit Gerrit [ 2021-01-20 ]
Change oioioi~master~If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3589

SIO-2318 Add more detailed URLs and enable easy copying of them

Added functionality to uncollapse selected in link category(# syntax).
Added functionality to easily copy link to selected category..

Change-Id: If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34
Comment by Gerrit Gerrit [ 2021-01-20 ]
Change oioioi~master~If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3589

SIO-2318 Add more detailed URLs and enable easy copying of them

Added functionality to uncollapse selected in link category(# syntax).
Added functionality to easily copy link to selected category..

Change-Id: If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34
Comment by Gerrit Gerrit [ 2021-01-20 ]
Change oioioi~master~If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3589

SIO-2318 Add more detailed URLs and enable easy copying of them

Added functionality to uncollapse selected in link category(# syntax).
Added functionality to easily copy link to selected category..

Change-Id: If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34
Comment by Gerrit Gerrit [ 2021-01-24 ]
Change oioioi~master~If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3589

SIO-2318 Add more detailed URLs and enable easy copying of them

Added functionality to uncollapse selected in link category(# syntax).
Added functionality to easily copy link to selected category.

Change-Id: If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34
Comment by Gerrit Gerrit [ 2021-01-24 ]
Change oioioi~master~If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3589

SIO-2318 Add more detailed URLs and enable easy copying of them

Added functionality to uncollapse selected in link category(# syntax).
Added functionality to easily copy link to selected category.

Change-Id: If6fe1ef0f8f8403357bdcae3520abb9c9e0b5e34




[SIO-2317] Fix urls in problemset with custom GET parameters in URLs Created: 2019-12-28  Updated: 2021-01-8  Resolved: 2021-01-8

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
Facebook adds custom GET parameter to the URL:
https://szkopul.edu.pl/task_archive/pa/?fbclid=IwAR3Oq6H3Ia_WImIISb0HpnumhEQS0iD6ej1xzCQsChZ4IxhtllYowNrWweQ

These links don't work then in the task_archive (but https://szkopul.edu.pl/task_archive/?fbclid=IwAR3Oq6H3Ia_WImIISb0HpnumhEQS0iD6ej1xzCQsChZ4IxhtllYowNrWweQ works for some reason)

 Comments   
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3551

SIO-2317 Fix urls in problemset with custom GET parameters in URLs

As this pages checks GET parameters for validation of request I removed fbclid id from parameters if it is there.

Change-Id: Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3551

SIO-2317 Fix urls in problemset with custom GET parameters in URLs

As this pages checks GET parameters for validation of request I removed fbclid id from parameters if it is there.

Change-Id: Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~I591da4c74a7d87f49f8c22a682796e81ae0e09e4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3553

SIO-2317 Fix urls in problemset with custom GET parameters in URLs

As this pages checks GET parameters for validation of request I removed fbclid id from parameters if it is there.

Change-Id: I591da4c74a7d87f49f8c22a682796e81ae0e09e4
Comment by Gerrit Gerrit [ 2020-11-25 ]
Change oioioi~master~Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3551

SIO-2317 Fix urls in problemset with custom GET parameters in URLs

As this pages checks GET parameters for validation of request I removed fbclid id from parameters if it is there.

Change-Id: Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556
Comment by Gerrit Gerrit [ 2020-12-2 ]
Change oioioi~master~Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3551

SIO-2317 Fix urls in problemset with custom GET parameters in URLs

As this pages checks GET parameters for validation of request I added filter method that doesn't pass fbclid from parameters if it is there.
I added twi test cases and formated views.py to follow pep8 using pycharm default formatter.

Change-Id: Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556
Comment by Gerrit Gerrit [ 2020-12-7 ]
Change oioioi~master~Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3551

SIO-2317 Fix urls in problemset with custom GET parameters in URLs

As this pages checks GET parameters for validation of request I added filter method that doesn't pass fbclid from parameters if it is there.
I added two test cases.

Change-Id: Icc7dbf6b60ad44cb5455fe76bdd250f2a46ee556




[SIO-2316] In new problemset, sort tasks inside one round by their short name (alphabetically) Created: 2019-12-28  Updated: 2020-05-23  Resolved: 2020-05-23

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Trivial
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
For example, in PA 2019, the problems are in random order:
https://szkopul.edu.pl/task_archive/pa/

 Comments   
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~Iccc67ae6761d327c4cc49db041a886f394e9c187, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3477

(SIO-2316) Sort problems by short name in Task Archive

Change-Id: Iccc67ae6761d327c4cc49db041a886f394e9c187
Comment by Gerrit Gerrit [ 2020-05-19 ]
Change oioioi~master~Iccc67ae6761d327c4cc49db041a886f394e9c187, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3477

(SIO-2316) Sort problems by short name in Task Archive

Change-Id: Iccc67ae6761d327c4cc49db041a886f394e9c187




[SIO-2315] In statistics module, in submissions histogram, sort problems by the round and then alphabetically by the short name Created: 2019-12-24  Updated: 2021-01-8  Resolved: 2021-01-8

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
Right now it is just a mess: https://sio2.mimuw.edu.pl/c/oij14-1/stat/

 Comments   
Comment by Gerrit Gerrit [ 2020-12-7 ]
Change oioioi~master~Ie3b08dd3ee9eb800bd9549b875f1344647ef3ac2, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3558

(SIO-2315) Sort problems in contest histogram by round data and short name

Change-Id: Ie3b08dd3ee9eb800bd9549b875f1344647ef3ac2
Comment by Gerrit Gerrit [ 2020-12-7 ]
Change oioioi~master~Ie3b08dd3ee9eb800bd9549b875f1344647ef3ac2, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3558

(SIO-2315) Sort problems in contest histogram by round data and short name

Change-Id: Ie3b08dd3ee9eb800bd9549b875f1344647ef3ac2
Comment by Gerrit Gerrit [ 2020-12-7 ]
Change oioioi~master~Ie3b08dd3ee9eb800bd9549b875f1344647ef3ac2, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3558

(SIO-2315) Sort problems in contest histogram.

Problems are sorted by round start date, round id and
problem instance short name respectively.

Change-Id: Ie3b08dd3ee9eb800bd9549b875f1344647ef3ac2




[SIO-2314] Algorithm tags are not translatable Created: 2019-12-23  Updated: 2021-01-27  Resolved: 2021-01-26

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Winter Sprint

Type: Improvement Priority: Major
Reporter: Michalina Sidor Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag2

Issue Links:
Blocks
blocks SIO-2244 Migrate old tags on Szkopuł to new al... Resolved
Sprint: TAG 2020/21 Winter Sprint

 Comments   
Comment by Gerrit Gerrit [ 2021-01-25 ]
Change oioioi~master~I3a0e734ef955cecd1580a139780a995c6e565ef6, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3591

(SIO-2314) Make algorithm tags translatable

Algorithm tags can be translated into multiple languages.
Algorithm tag hints mechanism searches for all names containing
given string in all languages.
Refactors some of the methods returning tag hints (DRY).

Change-Id: I3a0e734ef955cecd1580a139780a995c6e565ef6
Comment by Gerrit Gerrit [ 2021-01-25 ]
Change oioioi~master~I3a0e734ef955cecd1580a139780a995c6e565ef6, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3591

(SIO-2314) Make algorithm tags translatable

Algorithm tags can be translated into multiple languages.

Algorithm tag hints mechanism searches for all names containing
given string in all languages.

Refactors some of the methods returning tag hints (DRY).

Changed single quotes to double quotes in strings displayed
to the user.

Make searching for existing tags containing typed string case
insensitive (JavaScript).

Change-Id: I3a0e734ef955cecd1580a139780a995c6e565ef6
Comment by Gerrit Gerrit [ 2021-01-25 ]
Change oioioi~master~I3a0e734ef955cecd1580a139780a995c6e565ef6, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3591

(SIO-2314) Make algorithm tags translatable

Algorithm tags can be translated into multiple languages.

Algorithm tag hints mechanism searches for all names containing
given string in all languages.

Refactors some of the methods returning tag hints (DRY).

Changed single quotes to double quotes in strings displayed
to the user.

Make searching for existing tags containing typed string case
insensitive (JavaScript).

Change-Id: I3a0e734ef955cecd1580a139780a995c6e565ef6
Comment by Szymon Czyżmański [ 2021-01-26 ]
Merged to master.
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ie92419e067d8dc7d5613f8833ec6e9f182a02b1b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3595

(SIO-2314) Fix TypeError

Fix bug with TypeError occurring when trying to concatenate two QuerySets together
using '+' operator in get_tag_proposal_hints_view function.

Change-Id: Ie92419e067d8dc7d5613f8833ec6e9f182a02b1b
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ie92419e067d8dc7d5613f8833ec6e9f182a02b1b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3595

(SIO-2314) Fix TypeError in the change "Make algorithm tags translatable"

Fix bug with TypeError occurring when trying to concatenate two QuerySets together
using '+' operator in get_tag_proposal_hints_view function.

Added a few regression tests for this function.

Change-Id: Ie92419e067d8dc7d5613f8833ec6e9f182a02b1b
Comment by Gerrit Gerrit [ 2021-01-27 ]
Change oioioi~master~Ie92419e067d8dc7d5613f8833ec6e9f182a02b1b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3595

(SIO-2314) Fix TypeError in the change "Make algorithm tags translatable"

Fix bug with TypeError occurring when trying to concatenate two QuerySets together
using '+' operator in get_tag_proposal_hints_view function.

Added a few regression tests for this function.

Change-Id: Ie92419e067d8dc7d5613f8833ec6e9f182a02b1b




[SIO-2312] When uploading package to problemset, Public is missing, only Private and Friends is shown Created: 2019-12-18  Updated: 2020-03-3  Resolved: 2020-03-3

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Szymon Acedański Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

TAG Developer: Przemysław Podleśny

 Comments   
Comment by Gerrit Gerrit [ 2020-01-6 ]
Change oioioi~master~Iab9d7d9350a5d6b6634b5f30e9b83ea291460187, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3382

(SIO-2312) Added Public visibility option to the problem upload view.

Change-Id: Iab9d7d9350a5d6b6634b5f30e9b83ea291460187
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Iab9d7d9350a5d6b6634b5f30e9b83ea291460187, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3382

(SIO-2312) Added Public visibility option to the problem upload view.

Change-Id: Iab9d7d9350a5d6b6634b5f30e9b83ea291460187




[SIO-2311] In PARegistration add the following field: "I am eligible and willing to participate in the finals". Created: 2019-12-16  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag1





[SIO-2310] Forum posts: "Last edit: [nothing is displayed here]" Created: 2019-12-16  Updated: 2020-03-3  Resolved: 2020-02-4

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Attachments: PNG File Screenshot 2019-12-17 at 07.04.13.png    
Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Stanisław Strzelecki

 Description   
https://sio2.mimuw.edu.pl/c/pa-2019-1/forum/104/1021/

The time of the edit is not shown.

 Comments   
Comment by Szymon Acedański [ 2019-12-17 ]
In what way?
I don't see anything obvious.
Please add a description with screenshot.




[SIO-2309] [UI] Dismiss reports on forum without approving Created: 2019-12-16  Updated: 2020-03-3  Resolved: 2020-02-4

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

TAG Developer: Stanisław Strzelecki

 Description   
Sometimes posts are reported, but they are not illegal, but just plain stupid. We don't want to "approve" such posts, but we don't want to keep them as reported.

An easy solution is to not show which posts are approved, or change the description.

 Comments   
Comment by Gerrit Gerrit [ 2020-01-21 ]
Change oioioi~master~I58e874006f0f67855940388bab2598c071d1960d, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3394

SIO-2309 [UI] Dismiss reports on forum without approving

Change text after approval from approved to reviewed (zatwierdzony -> sprawdzony)
This way it doesn't suggest that admins approve this post,
but rather reviewed it and didn't find reasons to ban it.

Change-Id: I58e874006f0f67855940388bab2598c071d1960d
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~I58e874006f0f67855940388bab2598c071d1960d, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3394

SIO-2309 [UI] Dismiss reports on forum without approving

Change text after approval from approved to reviewed (zatwierdzony -> sprawdzony)
This way it doesn't suggest that admins approve this post,
but rather reviewed it and didn't find reasons to ban it.
Changed tests to check that change.

Change-Id: I58e874006f0f67855940388bab2598c071d1960d
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~I58e874006f0f67855940388bab2598c071d1960d, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3394

SIO-2309 [UI] Dismiss reports on forum without approving

Removed approval text from users view, making only report button disappear after approving.
This way it doesn't suggest that admins approve this post,
but disables the possibility to report it further.
Changed tests to check that change.

Change-Id: I58e874006f0f67855940388bab2598c071d1960d
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~I58e874006f0f67855940388bab2598c071d1960d, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3394

SIO-2309 [UI] Dismiss reports on forum without approving

Removed approval text from users view, making only report button disappear after approving.
This way it doesn't suggest that admins approve this post,
but disables the possibility to report it further.
Changed tests to check that change.

Change-Id: I58e874006f0f67855940388bab2598c071d1960d
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~I58e874006f0f67855940388bab2598c071d1960d, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3394

SIO-2309 [UI] Dismiss reports on forum without approving

Removed approval text from users view, making only report button disappear after approving.
This way it doesn't suggest that admins approve this post,
but disables the possibility to report it further.
Changed tests to check that change.

Change-Id: I58e874006f0f67855940388bab2598c071d1960d




[SIO-2308] [UI] For questions show rounds related to these questions Created: 2019-12-16  Updated: 2020-06-2  Resolved: 2020-06-2

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Stanisław Strzelecki

 Description   
Right now it shows "General" or a problem name. It should be "General, round 1" or a problem name + round name. It can be a different column in this table.

 Comments   
Comment by Gerrit Gerrit [ 2020-05-16 ]
Change oioioi~master~I6258daab260e7f127a551377f5b143b10ec3e620, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3467

SIO-2308 [UI] For questions show rounds related to these questions

Added a round column in questions list,
displayed to the left of question related task.

Change-Id: I6258daab260e7f127a551377f5b143b10ec3e620




[SIO-2307] [UI] Show limits in the test run view Created: 2019-12-16  Updated: 2020-03-3  Resolved: 2020-01-28

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Michał Niedziółka

 Description   
We have time / memory limits specified for a test run and they should be visible before submitting the run.

 Comments   
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~I0c86e9b16f44d9e96191badc64f00764ce247aca, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3396

SIO-2307 Add time and memory limits to test run submit

Change-Id: I0c86e9b16f44d9e96191badc64f00764ce247aca
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~I0c86e9b16f44d9e96191badc64f00764ce247aca, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3396

SIO-2307 Add time and memory limits to test run submit

Change-Id: I0c86e9b16f44d9e96191badc64f00764ce247aca
Comment by Gerrit Gerrit [ 2020-01-27 ]
Change oioioi~master~I0c86e9b16f44d9e96191badc64f00764ce247aca, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3396

SIO-2307 Add time and memory limits to test run submit

Change-Id: I0c86e9b16f44d9e96191badc64f00764ce247aca




[SIO-2306] [UI] Submission table: clicking the time of the submission to see details/report is not intuitive Created: 2019-12-16  Updated: 2021-01-26  Resolved: 2021-01-26

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
Right now it is not really intuitive for most users that they can click the submission time to see the detailed report.

A better mechanism would be nice, e.g. a "Details" button.

 Comments   
Comment by Gerrit Gerrit [ 2020-12-7 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button.

Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-9 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button. Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-9 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button. Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Changelog:
Removed whitespace changes.
Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-9 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button. Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Changelog:
Removed whitespace changes.
Removed 100 placeholder in score.
Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-9 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button. Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Changelog:
Removed whitespace changes.
Removed 100 placeholder in score.
Changed tests to account for new main dashboard.
Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-16 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button. Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Changelog:
Removed whitespace changes.
Removed 100 placeholder in score.
Changed tests to account for new main dashboard.
Change structure of row as blocks don't propagate in django.
Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-16 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button. Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Changelog:
Removed whitespace changes.
Removed 100 placeholder in score.
Changed tests to account for new main dashboard.
Change structure of row as blocks don't propagate in django.
Post review changes.

Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-16 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button. Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Changelog:
Removed whitespace changes.
Removed 100 placeholder in score.
Changed tests to account for new main dashboard.
Change structure of row as blocks don't propagate in django.
Post review changes.
Removed whitespace changes.

Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-16 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 [UI] Submission table: clicking the time of the submission to see details/report is not intuitive

Added details button. Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Changelog:
Removed whitespace changes.
Removed 100 placeholder in score.
Changed tests to account for new main dashboard.
Change structure of row as blocks don't propagate in django.
Post review changes.
Removed whitespace changes.

Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4
Comment by Gerrit Gerrit [ 2020-12-16 ]
Change oioioi~master~I4fea4dd55e025d1a5f72264d12a61b91189a3af4, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3557

SIO-2306 Added details button

[UI] Submission table: clicking the time of the submission to see details/report is not intuitive.
Screenshots can be found here https://imgur.com/a/Q6k0fLG.

Changelog:
Removed whitespace changes.
Removed 100 placeholder in score.
Changed tests to account for new main dashboard.
Change structure of row as blocks don't propagate in django.
Post review changes.
Removed whitespace changes.

Change-Id: I4fea4dd55e025d1a5f72264d12a61b91189a3af4




[SIO-2305] Result of the export submission action is a html page Created: 2019-12-16  Updated: 2020-12-2  Resolved: 2020-12-2

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
You have to manually change the extension to tgz.

 Comments   
Comment by Wojciech Dubiel [ 2019-12-16 ]
To be precise, the result's mimetype is wrong. The content is a tar.gz, but the mimetype says it's HTML
Comment by Stanisław Strzelecki [ 2020-03-14 ]
Is this still an issue? And if so, how can I get the error?
By using export submissions from contest administration tab, I get a .tgz file, which seems fine
Comment by Bartosz Kostka [ 2020-03-14 ]
I believe it depends on browser and system. I've just checked and for me, it's still downloading as an HTML file.
Comment by Gerrit Gerrit [ 2020-11-18 ]
Change oioioi~master~Ibb23f8d4ce5601c8e66fcaf926e917330cd30654, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3549

(SIO-2305) Change 'Content-Type' header of a tgz response

Change-Id: Ibb23f8d4ce5601c8e66fcaf926e917330cd30654




[SIO-2304] UnicodeEncodeError in problemset search autocompletion Created: 2019-12-11  Updated: 2020-05-28  Resolved: 2020-02-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Near Future

Type: Bug Priority: Minor
Reporter: Sentry Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

TAG Developer: Franciszek Hnatów

 Description   
To reproduce:

Open this link: https://szkopul.edu.pl/get_search_hints/public/?q=kr
Switch to Polish language.

https://sentry.io/organizations/the-sio2-project/issues/1105451667/?referrer=jira_plugin

{code}
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 28: ordinal not in range(128)
(3 additional frame(s) were not displayed)
...
  File "oioioi/base/utils/__init__.py", line 549, in inner
    data = view(*args, **kwargs)
  File "oioioi/problems/views.py", line 787, in get_search_hints_view
    + get_origininfovalue_hints(query)
  File "oioioi/problems/views.py", line 722, in get_origintag_hints
    res += get_origintag_category_hints(res[0]['value'])
  File "oioioi/problems/views.py", line 673, in get_origintag_category_hints
    } for category in origintag.info_categories.all()

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 28: ordinal not in range(128)
{code}

 Comments   
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~Ic1748a8b6de9264e92870c0ec2c8ff1ae9275761, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3381

(SIO-2304) UnicodeEncodeError in problemset search autocompletion

Change-Id: Ic1748a8b6de9264e92870c0ec2c8ff1ae9275761
Comment by Gerrit Gerrit [ 2020-05-28 ]
Change oioioi~master~I8bd43dd1e43c5e62f0fc1399239b26165d4c179f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3493

(SIO-2304) UnicodeEncodeError fixed once again

Change 3381 containing this fix was accidentally reverted by change 3361.

Now the fix has been restored.

Change-Id: I8bd43dd1e43c5e62f0fc1399239b26165d4c179f
Comment by Gerrit Gerrit [ 2020-05-28 ]
Change oioioi~master~I8bd43dd1e43c5e62f0fc1399239b26165d4c179f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3493

(SIO-2304) UnicodeEncodeError fixed once again

Change 3381 containing this fix was accidentally reverted by change 3361.

Now the fix has been restored.

Change-Id: I8bd43dd1e43c5e62f0fc1399239b26165d4c179f




[SIO-2303] New django-formtools is incompatible with Django 1.10 Created: 2019-12-10  Updated: 2020-03-3  Resolved: 2019-12-11

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Michalina Sidor Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1


 Description   
as reported here: https://github.com/sio2project/oioioi/issues/41

investigation shows django-formtools is a dependency of django-two-factor-auth and it is not pinned in django-two-factor-auth

might be a good idea to pin it in our setup.py with a # comment to remove it

 Comments   
Comment by Gerrit Gerrit [ 2019-12-10 ]
Change oioioi~master~Iabc6383a1903416d81f60960b24a5b797cb65c45, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3368

(SIO-2303) New django-formtools is incompatible with Django 1.10

Change-Id: Iabc6383a1903416d81f60960b24a5b797cb65c45
Also: Github issue #41
Also: https://hudson.sio2project.mimuw.edu.pl/job/oioioi-nightly-unittests/1852/console
Comment by Gerrit Gerrit [ 2019-12-10 ]
Change oioioi~master~Iabc6383a1903416d81f60960b24a5b797cb65c45, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3368

(SIO-2303) New django-formtools is incompatible with Django 1.10

Change-Id: Iabc6383a1903416d81f60960b24a5b797cb65c45
Also: Github issue #41
Also: https://hudson.sio2project.mimuw.edu.pl/job/oioioi-nightly-unittests/1852/console
Comment by Gerrit Gerrit [ 2019-12-10 ]
Change oioioi~master~Iabc6383a1903416d81f60960b24a5b797cb65c45, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3368

(SIO-2303) New django-formtools is incompatible with Django 1.10

Also: Github issue #41
Also: https://hudson.sio2project.mimuw.edu.pl/job/oioioi-nightly-unittests/1852/console

Change-Id: Iabc6383a1903416d81f60960b24a5b797cb65c45




[SIO-2302] Generate user out for users Created: 2019-12-5  Updated: 2019-12-5

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2019/20 Sprint 1
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Jakub Radoszewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   
The "generate user out" option is very useful when handling appeals. It will be even more useful if it is available for contestants (when the results are published), so that they can check the output that was generated at our servers.

A limit (configurable or not) can be put on how many "generate user out" calls can there be per contestant and task. It is not totally compulsory (because the number of such calls does not exceed the number of submissions x tests), but still it could prevent abuse of this function.




[SIO-2301] Cannot view submited code in a user contest Created: 2019-12-4  Updated: 2020-03-3  Resolved: 2020-01-29

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2019/20 Sprint 1
Fix Version/s: TAG 2019/20 Sprint 1

Type: Bug Priority: Minor
Reporter: Cezary Chodun Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None
Environment: Linux 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


 Description   
When submitting a program to a user contest and then showing it's code an error is thrown.

 Comments   
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~Ic8adff3d936dca66bd300f128cb2c45e317b7a5a, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3365

SIO-2301 Cannot view submited code in a user contest

Change-Id: Ic8adff3d936dca66bd300f128cb2c45e317b7a5a




[SIO-2300] AttributeError in test run submissions Created: 2019-12-3  Updated: 2019-12-3

Status: New
Project: The SIO2 project
Component/s: Evaluation Engine / Workers, OIOIOI
Affects Version/s: TAG 2019/20 Sprint 1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Cezary Chodun Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment: Linux 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Web browser: FireFox, Chrome

Attachments: Text File runserver_output.txt     PNG File screen.png     Text File supervisor_output.txt    

 Description   
Cannot check a test run submission details due to an "AttributeError".

Steps to reproduce:
- submit test run(as admin)
- go to My submissions
- click the submission date(to show details of the submission)
- Error: "AttributeError"

Other details:
* Manual installation(https://github.com/sio2project/oioioi/blob/master/INSTALL.rst)
* Supervisor is running and is reporting a few errors(see supervisor output)
* I haven't tested this issue as a user

 Comments   
Comment by Szymon Acedański [ 2019-12-3 ]
Adding here what I remember from when we debugged it for a moment:

sbm_testrun.input_file is an object which comes from filetracker (of type _FileLikeFromResponse).
is_zipfile requires seek, which is not provided (and looks like it should not be relied upon).
Probably it's better to just check the extension (sbm_testrun.input_file is an instance of Django FieldFile, therefore it has name and hopefully it has the original extension).




[SIO-2299] Test run notification says "Your score is None" Created: 2019-11-27  Updated: 2020-03-3  Resolved: 2020-03-3

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Szymon Acedański Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Wiktor Czyż

 Comments   
Comment by Gerrit Gerrit [ 2020-01-20 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If test run is successful, then the score is 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971
Comment by Gerrit Gerrit [ 2020-01-20 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If testrun is successful, then the score is set to 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If testrun is successful, then the score is set to 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If testrun is successful, then the score is set to 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If testrun is successful, then the score is set to 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971
Comment by Gerrit Gerrit [ 2020-01-27 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If testrun is successful, then the score is set to 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971
Comment by Gerrit Gerrit [ 2020-01-27 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If testrun is successful, then the score is set to 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971
Comment by Gerrit Gerrit [ 2020-01-27 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If testrun is successful, then the score is set to 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971
Comment by Gerrit Gerrit [ 2020-01-28 ]
Change oioioi~master~I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3392

SIO-2299 Test run notification says "Your score is None"

If testrun is successful, then the score is set to 100, else 0.
I've also changed field __test__ in TestTestRunsLimit
to true, because it was previously set to false due to
inheritance from TestRunTestCase.

Change-Id: I9f5e85a8ce048e4b6b2a8d9791c489bbc7076971




[SIO-2298] Diffing quiz submittions throws an exception Created: 2019-11-20  Updated: 2020-03-3  Resolved: 2020-02-4

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2295 Multiple minor bugs in quizzes (meta-... Resolved
TAG Developer: Stanisław Strzelecki

 Description   
When entering a quiz submittion, there is an option to diff it with previous solutions. However using this options throws an exception.

 Comments   
Comment by Gerrit Gerrit [ 2020-01-27 ]
Change oioioi~master~Ibcf55d1f42616586bc1f2704d591f8f45aee7563, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3400

SIO-2298 Diffing quiz submittions throws an exception

Removed diff submissions button for quiz problems.
Added regression test.

Change-Id: Ibcf55d1f42616586bc1f2704d591f8f45aee7563
Comment by Gerrit Gerrit [ 2020-01-27 ]
Change oioioi~master~Ibcf55d1f42616586bc1f2704d591f8f45aee7563, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3400

SIO-2298 Diffing quiz submittions throws an exception

Removed diff submissions button for quiz problems.
Added regression test.

Change-Id: Ibcf55d1f42616586bc1f2704d591f8f45aee7563
Comment by Gerrit Gerrit [ 2020-01-28 ]
Change oioioi~master~Ibcf55d1f42616586bc1f2704d591f8f45aee7563, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3400

SIO-2298 Diffing quiz submittions throws an exception

Removed diff submissions button for quiz problems.
Changed controller, so render_submission_footer
is in programmingProblemController, so a different function
can be implemented in QuizProblemController.
Moved this function from ProgrammingContestController (since there may be quizzes in
programmingContest).
Added regression test.

Change-Id: Ibcf55d1f42616586bc1f2704d591f8f45aee7563
Comment by Gerrit Gerrit [ 2020-01-29 ]
Change oioioi~master~Ibcf55d1f42616586bc1f2704d591f8f45aee7563, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3400

SIO-2298 Diffing quiz submittions throws an exception

Removed diff submissions button for quiz problems.
Changed controller, so render_submission_footer
is in programmingProblemController, so a different function
can be implemented in QuizProblemController.
Moved this function from ProgrammingContestController (since there may be quizzes in
programmingContest).
Added regression test.

Change-Id: Ibcf55d1f42616586bc1f2704d591f8f45aee7563
Comment by Gerrit Gerrit [ 2020-01-29 ]
Change oioioi~master~Ibcf55d1f42616586bc1f2704d591f8f45aee7563, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3400

SIO-2298 Diffing quiz submittions throws an exception

Removed diff submissions button for quiz problems.
Changed controller, so render_submission_footer
is in programmingProblemController, so a different function
can be implemented in QuizProblemController.
Moved this function from ProgrammingContestController (since there may be quizzes in
programmingContest).
Added regression test.

Change-Id: Ibcf55d1f42616586bc1f2704d591f8f45aee7563
Comment by Gerrit Gerrit [ 2020-01-29 ]
Change oioioi~master~Ibcf55d1f42616586bc1f2704d591f8f45aee7563, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3400

SIO-2298 Diffing quiz submittions throws an exception

Removed diff submissions button for quiz problems.
Changed controller, so render_submission_footer
is in programmingProblemController, so a different function
can be implemented in QuizProblemController.
Moved this function from ProgrammingContestController (since there may be quizzes in
programmingContest).
Added regression test.

Change-Id: Ibcf55d1f42616586bc1f2704d591f8f45aee7563
Comment by Gerrit Gerrit [ 2020-02-1 ]
Change oioioi~master~Ibcf55d1f42616586bc1f2704d591f8f45aee7563, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3400

SIO-2298 Diffing quiz submittions throws an exception

Removed diff submissions button for quiz problems.
Changed controller, so render_submission_footer
is in programmingProblemController, so a different function
can be implemented in QuizProblemController.
Moved this function from ProgrammingContestController (since there may be quizzes in
programmingContest).
Added regression test.

Change-Id: Ibcf55d1f42616586bc1f2704d591f8f45aee7563
Comment by Gerrit Gerrit [ 2020-02-1 ]
Change oioioi~master~Ibcf55d1f42616586bc1f2704d591f8f45aee7563, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3400

SIO-2298 Diffing quiz submittions throws an exception

Removed diff submissions button for quiz problems.
Changed controller, so render_submission_footer
is in programmingProblemController, so a different function
can be implemented in QuizProblemController.
Moved this function from ProgrammingContestController (since there may be quizzes in
programmingContest).
Added regression test.

Change-Id: Ibcf55d1f42616586bc1f2704d591f8f45aee7563
Comment by Gerrit Gerrit [ 2020-02-3 ]
Change oioioi~master~I996a427bde7c4e55bcddc2a739db0aa029d267d2, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3404

SIO-2298 Diffing quiz submittions throws an exception

Fixed normal users getting errors on submissions without contest.
Added hidding hidden submissions from nonadmin users.

Change-Id: I996a427bde7c4e55bcddc2a739db0aa029d267d2




[SIO-2297] When adding new question to a quiz, rejudging old submissions breaks them Created: 2019-11-20  Updated: 2020-12-15  Resolved: 2020-12-15

Status: Resolved
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2295 Multiple minor bugs in quizzes (meta-... Resolved

 Description   
When a new question is added to a quiz, and then rejudging old submittions to the same quiz, a crash will occur and these submissions will corrupt (making them impossible to view without a crash).
Probably the same will happen, if we remove or significantly change a question (though I didn't test that)

 Comments   
Comment by Gerrit Gerrit [ 2020-12-14 ]
Change oioioi~master~I981005ca9601833e24490ea88190feaa92e8a44b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3568

SIO-2297 When adding new question to a quiz, rejudging old submissions breaks them

I modified method responsible for scoring quiz, as well as method for scoring
question so that it is checked if any answer was submitted for a particular question.
If there is no submitted answer, then such question is ignored and not counted to
the overall quiz score.
I added two test cases for rejudging quiz after adding new questions.

Change-Id: I981005ca9601833e24490ea88190feaa92e8a44b
Comment by Gerrit Gerrit [ 2020-12-14 ]
Change oioioi~master~I46e1b0df201654ea9ea5197ea5d519bed34b32b1, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3566

SIO-2297 When adding new question to a quiz, rejudging old submissions breaks them

I modified method responsible for scoring quiz, as well as method for scoring
question so that it is checked if any answer was submitted for a particular question.
If there is no submitted answer, then such question is ignored and not counted to
the overall quiz score.
I added two test cases for rejudging quiz after adding new questions.

Change-Id: I46e1b0df201654ea9ea5197ea5d519bed34b32b1
Comment by Gerrit Gerrit [ 2020-12-14 ]
Change oioioi~master~I2aaab25adb2182b98ce1333b2a0d86d9b84aa987, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3569

SIO-2297 When adding new question to a quiz, rejudging old submissions breaks them

I modified method responsible for scoring quiz, as well as method for scoring
question so that it is checked if any answer was submitted for a particular question.
If there is no submitted answer, then such question is ignored and not counted to
the overall quiz score.
I added two test cases for rejudging quiz after adding new questions.

Change-Id: I2aaab25adb2182b98ce1333b2a0d86d9b84aa987
Comment by Gerrit Gerrit [ 2020-12-14 ]
Change oioioi~master~Idc4c0452b6bce4494b050dcdb22fa37a261d7820, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3570

SIO-2297 Fixed bug with rejudging old submissions after adding new questions to a quiz

I modified method responsible for scoring quiz, as well as method for scoring
question so that it is checked if any answer was submitted for a particular question.
If there is no submitted answer, then such question is ignored and not counted to
the overall quiz score.
I added two test cases for rejudging quiz after adding new questions to it.

Change-Id: Idc4c0452b6bce4494b050dcdb22fa37a261d7820
Comment by Gerrit Gerrit [ 2020-12-14 ]
Change oioioi~master~Idc4c0452b6bce4494b050dcdb22fa37a261d7820, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3570

SIO-2297 Fixed bug with rejudging old submissions after adding new questions to a quiz

I modified method responsible for scoring quiz, as well as method for scoring
question so that it is checked if any answer was submitted for a particular question.
If there is no submitted answer, then such question is ignored and not counted to
the overall quiz score.
I added two test cases for rejudging quiz after adding new questions to it.

Change-Id: Idc4c0452b6bce4494b050dcdb22fa37a261d7820
Comment by Szymon Czyżmański [ 2020-12-15 ]
Fixed and merged to master




[SIO-2296] System error in quiz not working Created: 2019-11-20  Updated: 2020-03-3  Resolved: 2020-01-28

Status: Closed
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2295 Multiple minor bugs in quizzes (meta-... Resolved
TAG Developer: Michał Niedziółka

 Description   
When system error occurs in quiz judging, a crash occurs when trying to open the broken submission.
Instead, a graceful blue "System error" status should appear, with traceback (as it happens, when normal submittion to a problem gets a system error).

Ways to reproduce:
1) break handlers.py for quizes. For example, in function "_match_text_input" delete in if "question", so that unexisting object "quiz" is used. ("if quiz.controller.is_case_ignored():").
After saving the file and relaunching sioworkers, submit a quiz solution and try to view submission.
2) submit a solution to quiz. Then, add a new question to the quiz. Then, rejudge the solution. An error will appear, when trying to view it

 Comments   
Comment by Gerrit Gerrit [ 2020-01-23 ]
Change oioioi~master~I1cddcc51299b41b9fef0594cf482200792032980, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3397

SIO-2296 fix SE and traceback in quizzes

Add transaction.atomic to score_quiz
Add catch an exception in reports.

Change-Id: I1cddcc51299b41b9fef0594cf482200792032980




[SIO-2295] Multiple minor bugs in quizzes (meta-ticket) Created: 2019-11-20  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: Evaluation Engine / Workers, SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: easy, tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
is related to SIO-2297 When adding new question to a quiz, r... Resolved
is related to SIO-2388 [UI] Misaligned quiz questions Resolved
is related to SIO-2296 System error in quiz not working Closed
is related to SIO-2298 Diffing quiz submittions throws an ex... Closed
is related to SIO-2292 Problem actions in admin's problems t... Resolved

 Description   
A ticket to track bugs in quizes




[SIO-2294] Reupload package has three possibilities of package selection, while only one is allowed Created: 2019-11-13  Updated: 2020-03-31  Resolved: 2020-03-31

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: Near Future

Type: Improvement Priority: Trivial
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open

 Description   
When reuploading package, the same UI shows, as when creating a new problem. The UI allows to select an existing problem from problemset, or to create a quiz. When reuploading, both these options are disallowed. Therefor, the tabs should be hidden, showing only one possible option

 Comments   
Comment by Gerrit Gerrit [ 2020-03-27 ]
Change oioioi~master~I7cf460a48d89688ae7a9307daa375986ab48f787, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3428

SIO-2294 Reupload package has three possibilities of package selection, while only one is allowed

Change-Id: I7cf460a48d89688ae7a9307daa375986ab48f787
Comment by Gerrit Gerrit [ 2020-03-28 ]
Change oioioi~master~I7cf460a48d89688ae7a9307daa375986ab48f787, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3428

SIO-2294 Reupload package has three possibilities of package selection, while only one is allowed

Change-Id: I7cf460a48d89688ae7a9307daa375986ab48f787
Comment by Gerrit Gerrit [ 2020-03-28 ]
Change oioioi~master~I7cf460a48d89688ae7a9307daa375986ab48f787, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3428

SIO-2294 Reupload package has three possibilities of package selection, while only one is allowed

Change-Id: I7cf460a48d89688ae7a9307daa375986ab48f787
Comment by Gerrit Gerrit [ 2020-03-30 ]
Change oioioi~master~I7cf460a48d89688ae7a9307daa375986ab48f787, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3428

SIO-2294 Reupload package has three possibilities of package selection, while only one is allowed

Change-Id: I7cf460a48d89688ae7a9307daa375986ab48f787
Comment by Gerrit Gerrit [ 2020-03-30 ]
Change oioioi~master~I7cf460a48d89688ae7a9307daa375986ab48f787, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3428

SIO-2294 Reupload package has three possibilities of package selection, while only one is allowed

Change-Id: I7cf460a48d89688ae7a9307daa375986ab48f787
Comment by Gerrit Gerrit [ 2020-03-30 ]
Change oioioi~master~I7cf460a48d89688ae7a9307daa375986ab48f787, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3428

SIO-2294 Reupload package has three possibilities of package selection, while only one is allowed

Change-Id: I7cf460a48d89688ae7a9307daa375986ab48f787




[SIO-2293] Quiz problem site has unused tabs Created: 2019-11-13  Updated: 2020-03-3  Resolved: 2020-03-3

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: Near Future

Type: Improvement Priority: Trivial
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2291 Misc. UX improvements (meta-ticket) Open
TAG Developer: Wiktor Czyż

 Description   
When entering quiz's problem site, there are four tabs, but two of them (files and problem statement) are empty, displaying info that nothing's there. They should be removed

 Comments   
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-18 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 19
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-26 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 20
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-28 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 21
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-28 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 22
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-28 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 23
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-28 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 24
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686
Comment by Gerrit Gerrit [ 2020-01-28 ]
Change oioioi~master~Icfb5d5072a9ac098aa594111cb8e3371c7587686, patchset 25
https://gerrit.sio2project.mimuw.edu.pl/3388

SIO-2293 Quiz problem site has unused tabs

Removed unused tabs 'statement' and 'files'
in quiz problem site. Created function that checks
if opened problem is a quiz. It's passed as a
condition argument to filter displayed tabs.
Also cleaned unnecessary else in problem-site template.

Change-Id: Icfb5d5072a9ac098aa594111cb8e3371c7587686




[SIO-2292] Problem actions in admin's problems tab has actions unrelated to quizes Created: 2019-11-13  Updated: 2020-12-2  Resolved: 2020-12-2

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: Near Future

Type: Improvement Priority: Minor
Reporter: Stanisław Strzelecki Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Relates
relates to SIO-2295 Multiple minor bugs in quizzes (meta-... Resolved

 Description   
In admin view, in the problems tab, each problem has some actions.
If a problem is a quiz, it has almost the same set of actions, though half of them is not working.
The actions that should be removed (as they simply do not work) are:
- Model solutions
- Reset tests limits
- Reupload package (does not show always, but can be seen eg. a moment after creation)

Also preferably "Edit problem" should be changed to "Edit quiz", to not misslead the admins about the actions made by that button

 Comments   
Comment by Gerrit Gerrit [ 2020-12-1 ]
Change oioioi~master~I569601e0d9130bb86beb562dde80554d152416ae, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3555

SIO-2292 Problem actions in admin's problems tab has actions unrelated to quizzes.

Change-Id: I569601e0d9130bb86beb562dde80554d152416ae
Comment by Gerrit Gerrit [ 2020-12-2 ]
Change oioioi~master~I569601e0d9130bb86beb562dde80554d152416ae, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3555

SIO-2292 Don't show irrelevant admin actions on quiz problems

Change-Id: I569601e0d9130bb86beb562dde80554d152416ae




[SIO-2291] Misc. UX improvements (meta-ticket) Created: 2019-11-13  Updated: 2020-05-18

Status: Open
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Szymon Acedański Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag1

Issue Links:
Relates
is related to SIO-2326 On szkopul main page, hidden submissi... Resolved
is related to SIO-2353 Some links in teacher problems view a... Resolved
is related to SIO-2295 Multiple minor bugs in quizzes (meta-... Resolved
is related to SIO-2305 Result of the export submission actio... Resolved
is related to SIO-2317 Fix urls in problemset with custom GE... Resolved
is related to SIO-2360 Question kind tags are not translated Resolved
is related to SIO-2310 Forum posts: "Last edit: [nothing is ... Closed
is related to SIO-2299 Test run notification says "Your scor... Closed
is related to SIO-2330 Teachers cannot delete their problems New
is related to SIO-2306 [UI] Submission table: clicking the t... Resolved
is related to SIO-2308 [UI] For questions show rounds relate... Resolved
is related to SIO-2315 In statistics module, in submissions ... Resolved
is related to SIO-2316 In new problemset, sort tasks inside ... Resolved
is related to SIO-2307 [UI] Show limits in the test run view Closed
is related to SIO-2323 Announcement editing and deletion for... Resolved
is related to SIO-2331 Improve all submissions view Resolved
is related to SIO-2332 Move Test run and Score reveal config... Resolved
is related to SIO-2334 [UI] Change labels in contest adminis... Resolved
is related to SIO-2337 [UI] "Add to contest" button is unnat... Resolved
is related to SIO-2339 [UI] "Add problem" in problemset look... Resolved
is related to SIO-2340 [UI] Question list and links on the q... Resolved
is related to SIO-2341 Login form in upper right corner migh... Resolved
is related to SIO-2359 Clicking the problem name in Submissi... Resolved
is related to SIO-2294 Reupload package has three possibilit... Resolved
is related to SIO-2335 Questions and News form filters look bad Resolved
is related to SIO-2049 Differentiate colours between "OK" an... Closed
is related to SIO-2333 Settings in problem settings should b... Closed
is related to SIO-2355 Settings in contest settings should b... Closed
is related to SIO-2293 Quiz problem site has unused tabs Closed




[SIO-2290] Set a default file for the 'test run' module Created: 2019-11-13  Updated: 2019-11-13

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2019/20 Sprint 1
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Cezary Chodun Assignee: Cezary Chodun
Resolution: Unresolved Votes: 0
Labels: None


 Description   
In contests like Polish Olimpiad in Informatics, there is a module for test submission of a problem('test run').
In that module a user is supposed to provide source code of a program and a file with test data. By default no file is selected so to test his/her program the user has to create a file on their local machine and copy to it a default test data from the task description.

Modify the module so that when no file with test data is selected the program will be run on the first initial* test. It shouldn't check the output of the program but rather display it normally as if the initial test was supplied from the user's computer.

* More formally ABC0.in, or ABC0a.in(if multiple initial tests are present). Where 'ABC' is the task's ID.




[SIO-2289] Add easily accessible problem score information in Task Archive Created: 2019-11-13  Updated: 2020-05-26  Resolved: 2020-05-26

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2019/20 Sprint 1
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Przemysław Podleśny Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1


 Description   
The old Problemset displayed current scores for all the problems that the browsing user had attempted to solve, in the problem selection view.

This feature is missing in the current Task Archive, which is inconvenient for users wishing both to recognise the problems they've already solved or attempted solving, and the problems they haven't seen before.

 Comments   
Comment by Gerrit Gerrit [ 2019-11-23 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
The entire functionality is virtually the same as in the old problemset.

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2019-12-10 ]
Change oioioi~master~Iac9942f8246dd6a9584466bafb56687154496c6d, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3370

(SIO-2289) Added last submission info in Task Archive

Change-Id: Iac9942f8246dd6a9584466bafb56687154496c6d
Comment by Gerrit Gerrit [ 2019-12-10 ]
Change oioioi~master~Iac9942f8246dd6a9584466bafb56687154496c6d, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3370

(SIO-2289) Added last submission info in Task Archive

Change-Id: Iac9942f8246dd6a9584466bafb56687154496c6d
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
The entire functionality is virtually the same as in the old problemset.

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~Iac9942f8246dd6a9584466bafb56687154496c6d, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3370

(SIO-2289) Added last submission info in Task Archive

Change-Id: Iac9942f8246dd6a9584466bafb56687154496c6d
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
The entire functionality is virtually the same as in the old problemset.

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~Iac9942f8246dd6a9584466bafb56687154496c6d, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3370

(SIO-2289) Added last submission info in Task Archive

Change-Id: Iac9942f8246dd6a9584466bafb56687154496c6d
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
The entire functionality is virtually the same as in the old problemset.

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
The entire functionality is virtually the same as in the old problemset.

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2019-12-15 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their total score to the round's
maximum possible score for every round they have sent at least one submission for
(the submission needs to be successful, though the result doesn't have to be positive;
submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their completion status
(as a percentage) for every round they have sent at least one submission for.
(The submission needs to be successful, though the result doesn't have
to be positive; submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their completion status
(as a percentage) for every round they have sent at least one submission for.
(The submission needs to be successful, though the result doesn't have
to be positive; submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2020-01-10 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their completion status
(as a percentage) for every contest they have sent at least one submission for.
(The submission needs to be successful, though the result doesn't have
to be positive; submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2020-01-10 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their completion status
(as a percentage) for every contest they have sent at least one submission for.
(The submission needs to be successful, though the result doesn't have
to be positive; submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2020-01-10 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their completion status
(as a percentage) for every contest they have sent at least one submission for.
(The submission needs to be successful, though the result doesn't have
to be positive; submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2020-01-10 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their completion status
(as a percentage) for every contest they have sent at least one submission for.
(The submission needs to be successful, though the result doesn't have
to be positive; submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2020-01-10 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their completion status
(as a percentage) for every contest they have sent at least one submission for.
(The submission needs to be successful, though the result doesn't have
to be positive; submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Iad59b5dd172ce149271d412a66926b589c75d03b, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3361

(SIO-2289) Added last submission info in Task Archive

If a user is logged in, for each problem they have attempted solving they will
see the score of their latest submission. The score is clickable and leads
to the last submission's page with full summary.
This functionality is virtually the same as in the old problemset, except now
the scores are highlighted with color.

Additionally, a user will see the proportion of their completion status
(as a percentage) for every contest they have sent at least one submission for.
(The submission needs to be successful, though the result doesn't have
to be positive; submissions that won't compile are not considered).

Change-Id: Iad59b5dd172ce149271d412a66926b589c75d03b
Comment by Bartosz Kostka [ 2020-02-14 ]
This change probably broke Task archive for some users, please compare with SIO-2329.




[SIO-2287] Allow teachers to select compilers Created: 2019-11-13  Updated: 2020-03-3  Resolved: 2020-01-15

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Sprint 1

Type: Improvement Priority: Minor
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Artur Pragacz

 Description   
Only admins can override compilers now.

 Comments   
Comment by Gerrit Gerrit [ 2019-12-9 ]
Change oioioi~master~I6deb1db4159aec06db4990e9ff0d1ef01c477f84, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3367

SIO-2287 Allow contest_admins to override compilers

Prior to the change only superusers could override compilers.

Change-Id: I6deb1db4159aec06db4990e9ff0d1ef01c477f84
Comment by Gerrit Gerrit [ 2020-01-13 ]
Change oioioi~master~I6deb1db4159aec06db4990e9ff0d1ef01c477f84, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3367

SIO-2287 Allow contest_admins to override compilers

Prior to the change only superusers could override compilers.

Change-Id: I6deb1db4159aec06db4990e9ff0d1ef01c477f84




[SIO-2286] Quiz settings have few unnessesary, but complicated options Created: 2019-11-13  Updated: 2020-03-3  Due: 2019-12-11  Resolved: 2019-12-18

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Sprint 1

Type: Improvement Priority: Major
Reporter: Stanisław Strzelecki Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

TAG Developer: Stanisław Strzelecki

 Description   
Quiz setting have some settings difficult to understand for casual users.
These setting should be removed from teachers view, as they may not understand what they are about, and left for admins, but with defaults set to the reasonable ones.

 Comments   
Comment by Stanisław Strzelecki [ 2019-11-13 ]
On the other side in the settings, picking the round might be added
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~I68abd5f1c336e8d2bb59a0992756b92c64ff3a34, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3359

SIO-2286 Quiz settings have few unnessesary, but complicated options

Removed 'trim-whitespaces' variable from quiz model.
Fixed all the places where it was used, hard setting variables to True.

Changed default of 'ignore_case' to True in admin model,
cause it's an option that should default to True.

Change-Id: I68abd5f1c336e8d2bb59a0992756b92c64ff3a34
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3360

SIO-2286 Quiz settings have few unnessesary, but complicated options

Removed 'ignore_case' field in question model.
Made case insensitivity always set to True.
On the other hand, added it to contest controller,
so it can be overwritten for certain contests.

Also swapped points field with "is multiple choice" checkbox,
so that both checkboxes are next to each other,
and both of them are below point field.
It looks more estetic to me after made changes.

Change-Id: I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3360

SIO-2286 Quiz settings have few unnessesary, but complicated options

Removed 'ignore_case' field in question model.
Made case insensitivity always set to True.
On the other hand, added it to contest controller,
so it can be overwritten for certain contests.

Also swapped points field with "is multiple choice" checkbox,
so that both checkboxes are next to each other,
and both of them are below point field.
It looks more estetic to me after made changes.

Change-Id: I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3360

SIO-2286 Quiz settings have few unnessesary, but complicated options

Removed 'ignore_case' field in question model.
Made case insensitivity always set to True.
On the other hand, added it to contest controller,
so it can be overwritten for certain contests.

Also swapped points field with "is multiple choice" checkbox,
so that both checkboxes are next to each other,
and both of them are below point field.
It looks more estetic to me after made changes.

Change-Id: I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3360

SIO-2286 Quiz settings have few unnessesary, but complicated options

Removed 'ignore_case' field in question model.
Made case insensitivity always set to True.
On the other hand, added it to contest controller,
so it can be overwritten for certain contests.

Also swapped points field with "is multiple choice" checkbox,
so that both checkboxes are next to each other,
and both of them are below point field.
It looks more estetic to me after made changes.

Change-Id: I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3360

SIO-2286 Quiz settings have few unnessesary, but complicated options

Removed 'ignore_case' field in question model.
Made case insensitivity always set to True.
On the other hand, added it to contest controller,
so it can be overwritten for certain contests.

Also swapped points field with "is multiple choice" checkbox,
so that both checkboxes are next to each other,
and both of them are below point field.
It looks more estetic to me after made changes.

Change-Id: I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3360

SIO-2286 Quiz settings have few unnessesary, but complicated options

Removed 'ignore_case' field in question model.
Made case insensitivity always set to True.
On the other hand, added it to contest controller,
so it can be overwritten for certain contests.

Also swapped points field with "is multiple choice" checkbox,
so that both checkboxes are next to each other,
and both of them are below point field.
It looks more estetic to me after made changes.

Change-Id: I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3360

SIO-2286 Quiz settings have few unnessesary, but complicated options

Removed 'ignore_case' field in question model.
Made case insensitivity always set to True.
On the other hand, added it to contest controller,
so it can be overwritten for certain contests.

Also swapped points field with "is multiple choice" checkbox,
so that both checkboxes are next to each other,
and both of them are below point field.
It looks more estetic to me after made changes.

Change-Id: I47d0f1f1e663cb66efbd46e52ddf0a5ef4f56c5f




[SIO-2288] Setting for the teacher to disable ranking in the contest Created: 2019-11-13  Updated: 2020-03-3  Resolved: 2020-03-3

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Sprint 1

Type: Improvement Priority: Major
Reporter: Wiktor Czyż Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1


 Comments   
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69
Comment by Gerrit Gerrit [ 2019-12-5 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Added new configuration named RankingVisibilityConfig
in contest's settings panel. It allows the teacher
or administrator to hide ranking for regular users.
When the configuration is not present or it is set
to 'AUTO' it uses method default_can_see_ranking,
which can be overwritten in special contests.
Changes in migrations are required for previous
tests to pass, because I've added a new model.

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Added new configuration named RankingVisibilityConfig
in contest's settings panel. It allows the teacher
or administrator to hide ranking for regular users.
When the configuration is not present or it is set
to 'AUTO' it uses method default_can_see_ranking,
which can be overwritten in special contests.
Changes in migrations are required for previous
tests to pass, because I've added a new model.

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Added new configuration named RankingVisibilityConfig
in contest's settings panel. It allows the teacher
or administrator to hide ranking for regular users.
When the configuration is not present or it is set
to 'AUTO' it uses method default_can_see_ranking,
which can be overwritten in special contests.
Changes in migrations are required for previous
tests to pass, because I've added a new model.

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Added new configuration named RankingVisibilityConfig
in contest's settings panel. It allows the teacher
or administrator to hide ranking for regular users.
When the configuration is not present or it is set
to 'AUTO' it uses method default_can_see_ranking,
which can be overwritten in special contests.
Changes in migrations are required for previous
tests to pass, because I've added a new model.

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Added new configuration named RankingVisibilityConfig
in contest's settings panel. It allows the teacher
or administrator to hide ranking for regular users.
When the configuration is not present or it is set
to 'AUTO' it uses method default_can_see_ranking,
which can be overwritten in special contests.
Changes in migrations are required for previous
tests to pass, because I've added a new model.

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I2b75b1a4ff04ca9f156be29e4bba5962d658ae69, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3364

SIO-2288 Setting for the teacher to disable ranking in the contest

Added new configuration named RankingVisibilityConfig
in contest's settings panel. It allows the teacher
or administrator to hide ranking for regular users.
When the configuration is not present or it is set
to 'AUTO' it uses method default_can_see_ranking,
which can be overwritten in special contests.
Changes in migrations are required for previous
tests to pass, because I've added a new model.

Change-Id: I2b75b1a4ff04ca9f156be29e4bba5962d658ae69




[SIO-2285] Show compiler versions in submit view Created: 2019-11-13  Updated: 2020-03-3  Resolved: 2020-01-15

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Sprint 1

Type: Improvement Priority: Minor
Reporter: Artur Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Artur Pragacz

 Description   
Right now only languages are shown

 Comments   
Comment by Gerrit Gerrit [ 2019-12-10 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change sioworkers~master~Ia20765528c4771a98cbb92429208e7974108156a, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3372

(SIO-2285) Change default compiler names

Change-Id: Ia20765528c4771a98cbb92429208e7974108156a
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change sioworkers~master~Ia20765528c4771a98cbb92429208e7974108156a, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3372

(SIO-2285) Change default compiler names

Change-Id: Ia20765528c4771a98cbb92429208e7974108156a
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change sioworkers~master~Ia20765528c4771a98cbb92429208e7974108156a, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3372

(SIO-2285) Change default compiler names

Change-Id: Ia20765528c4771a98cbb92429208e7974108156a
Comment by Gerrit Gerrit [ 2019-12-12 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-12 ]
Change sioworkers~master~Ia20765528c4771a98cbb92429208e7974108156a, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3372

(SIO-2285) Change compilers

Change-Id: Ia20765528c4771a98cbb92429208e7974108156a
Comment by Gerrit Gerrit [ 2019-12-12 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-12 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change sioworkers~master~Ia20765528c4771a98cbb92429208e7974108156a, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3372

(SIO-2285) Change compilers

Change-Id: Ia20765528c4771a98cbb92429208e7974108156a
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change sioworkers~master~Ia20765528c4771a98cbb92429208e7974108156a, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3372

(SIO-2285) Change compilers

Change-Id: Ia20765528c4771a98cbb92429208e7974108156a
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2019-12-18 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2020-01-14 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2020-01-14 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2020-01-15 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2020-01-15 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45
Comment by Gerrit Gerrit [ 2020-01-15 ]
Change oioioi~master~I6e43ef2f0ca71f688a389eee2b97cef378c7cf45, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3369

(SIO-2285) Show compiler information in submit view

Change-Id: I6e43ef2f0ca71f688a389eee2b97cef378c7cf45




[SIO-2284] Move certain settings from problem to probleminstance Created: 2019-11-10  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wojciech Dubiel Assignee: Szymon Czyżmański
Resolution: Unresolved Votes: 0
Labels: None


 Description   
Certain settings - eg. testrun configurations or score reveal configurations - depend not just on the problem, but also contest rules, and should be able to differ between contests. Therefore, they should be in probleminstance settings, and not in problem settings.




[SIO-2283] Merge files and tests tabs in the contest view Created: 2019-11-3  Updated: 2020-03-3  Resolved: 2019-12-18

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

TAG Developer: Franciszek Hnatów

 Description   
These two tabs serve the same purpose. Moreover, sometimes we publish some extra files (such as libraries, headers, etc.), which should be in the same place as tests.

 Comments   
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b
Comment by Gerrit Gerrit [ 2019-12-11 ]
Change oioioi~master~If5e831f8b56caca444a591602a96c54a3d71913b, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3371

SIO-2283 Merge files and tests tabs in the contest view

Change-Id: If5e831f8b56caca444a591602a96c54a3d71913b




[SIO-2282] Show test packages in the problemset Created: 2019-11-3  Updated: 2020-12-10

Status: Reopened
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Bartosz Kostka Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag1

TAG Developer: Franciszek Hnatów

 Description   
Right now, you cannot download public test packages (from oioioi.testspackages) in the problems in the problemset.

 Comments   
Comment by Gerrit Gerrit [ 2020-01-20 ]
Change oioioi~master~I5bbeed2f1ccdd18f023cfb28521bd13c3c78af00, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3393

(SIO-2282) Show test packages in the problemset

Added the ability for contest admins to download test packages right from the problemset

Change-Id: I5bbeed2f1ccdd18f023cfb28521bd13c3c78af00
Comment by Gerrit Gerrit [ 2020-01-20 ]
Change oioioi~master~I5bbeed2f1ccdd18f023cfb28521bd13c3c78af00, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3393

(SIO-2282) Show test packages in the problemset

Added the ability for contest admins to download test packages right from the problemset

Change-Id: I5bbeed2f1ccdd18f023cfb28521bd13c3c78af00
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~I5bbeed2f1ccdd18f023cfb28521bd13c3c78af00, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3393

(SIO-2282) Show test packages in the problemset

Added the ability for contest admins to download test packages right from the problemset

Change-Id: I5bbeed2f1ccdd18f023cfb28521bd13c3c78af00
Comment by Gerrit Gerrit [ 2020-01-28 ]
Change oioioi~master~I5bbeed2f1ccdd18f023cfb28521bd13c3c78af00, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3393

(SIO-2282) Show test packages in the problemset

Added the ability for contest admins to download test packages right from the problemset

Change-Id: I5bbeed2f1ccdd18f023cfb28521bd13c3c78af00
Comment by Wojciech Dubiel [ 2020-12-7 ]
Doesn't work without a contest in the url.
Comment by Gerrit Gerrit [ 2020-12-7 ]
Change oioioi~master~Iaf49828d4fcac90b1ea162fa8595b5d73792a560, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3559

SIO-2282 Fix problem site testpackages not working on problem site

The original implementation didn't work outside of contests
for some weird reason.

Change-Id: Iaf49828d4fcac90b1ea162fa8595b5d73792a560
Comment by Wojciech Dubiel [ 2020-12-7 ]
Also, even with the above fix, this is visible only to admins.
Showing test packages to regular users will require more work.
Comment by Gerrit Gerrit [ 2020-12-10 ]
Change oioioi~master~Iaf49828d4fcac90b1ea162fa8595b5d73792a560, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3559

SIO-2282 Fix problem site testpackages not working on problem site

The original implementation checked permissions in a way
which couldn't possibly work outside of a contest,
even though it was intended specifically for outside-of-contest
operation.

Change-Id: Iaf49828d4fcac90b1ea162fa8595b5d73792a560
Comment by Gerrit Gerrit [ 2020-12-10 ]
Change oioioi~master~Iaf49828d4fcac90b1ea162fa8595b5d73792a560, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3559

SIO-2282 Fix problem site testpackages not working on problem site

The original implementation was checking permissions in a way
which couldn't possibly work outside of a contest,
even though it was intended specifically for outside-of-contest
operation.

Change-Id: Iaf49828d4fcac90b1ea162fa8595b5d73792a560




[SIO-2281] Remove unused module prizes Created: 2019-10-16  Updated: 2020-03-3  Resolved: 2019-12-15

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Sprint 1

Type: Improvement Priority: Minor
Reporter: Szymon Acedański Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

TAG Developer: Michał Niedziółka

 Comments   
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~I339ad6b81e5afaa350efed2fb88826fa70f61189, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3357

SIO-2281 Remove module prizes

Change-Id: I339ad6b81e5afaa350efed2fb88826fa70f61189
Comment by Gerrit Gerrit [ 2019-11-27 ]
Change oioioi~master~I339ad6b81e5afaa350efed2fb88826fa70f61189, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3357

SIO-2281 Remove module prizes

Change Version to 40.
Add info to UPGRADING.rst.

Change-Id: I339ad6b81e5afaa350efed2fb88826fa70f61189
Comment by Gerrit Gerrit [ 2019-11-27 ]
Change oioioi~master~I339ad6b81e5afaa350efed2fb88826fa70f61189, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3357

SIO-2281 Remove module prizes

Change Version to 40.
Add info to UPGRADING.rst.

Change-Id: I339ad6b81e5afaa350efed2fb88826fa70f61189
Comment by Gerrit Gerrit [ 2019-11-27 ]
Change oioioi~master~I339ad6b81e5afaa350efed2fb88826fa70f61189, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3357

SIO-2281 Remove module prizes

Change Version to 40.
Add info to UPGRADING.rst.

Change-Id: I339ad6b81e5afaa350efed2fb88826fa70f61189
Comment by Gerrit Gerrit [ 2019-11-27 ]
Change oioioi~master~I339ad6b81e5afaa350efed2fb88826fa70f61189, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3357

SIO-2281 Remove module prizes

Change Version to 40.
Add info to UPGRADING.rst.

Change-Id: I339ad6b81e5afaa350efed2fb88826fa70f61189




[SIO-2280] Add helper in submit view to api command Created: 2019-10-10  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Zuzanna Opała Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: easy, tag1

Issue Links:
Relates
relates to SIO-2160 Enable submitservice module on Szkopul Closed
is related to SIO-2160 Enable submitservice module on Szkopul Closed

 Description   
There is endpoint which allow to submit solution via newly added API. There should be message in the submit view (or problem view) which prompts the command to show users this option.




[SIO-2279] Use same table in task archive as in problem set Created: 2019-10-10  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Zuzanna Opała Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: easy, tag1


 Description   
In problem set there are useful statistics (number of submissions and success rate) and option to add to the contest. They could also be present in the task archive view




[SIO-2278] Navbar translations doesn't work in problemset Created: 2019-10-10  Updated: 2020-03-3  Due: 2019-12-11  Resolved: 2019-12-18

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI, Translations
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Sprint 1

Type: Bug Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy, tag1

TAG Developer: Stanisław Strzelecki

 Description   
It is in Polish even when the selected language is English.

 Comments   
Comment by Gerrit Gerrit [ 2019-10-23 ]
Change oioioi~master~I0661b460c2cdf8fd48c8932dc25e0010e78a1e64, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3346

SIO-2278 Navbar translations doesn't work in problemset

In my local sio copy it appeared English even if language was set to Polish.
Hopefully my change fixes both problems.
Modifying navbar registry happens once during the initialization,
so these texts are saved once in the init, therefor only one translation happens.
When changing the language, no modification is possible to these strings.
Added translation in reading these texts from registry,
making sure they get translated every time they are loaded.
TODO: remove translation from initializing registry!

Change-Id: I0661b460c2cdf8fd48c8932dc25e0010e78a1e64
Comment by Gerrit Gerrit [ 2019-10-23 ]
Change oioioi~master~I0661b460c2cdf8fd48c8932dc25e0010e78a1e64, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3346

SIO-2278 Navbar translations doesn't work in problemset

In my local sio copy it appeared English even if language was set to Polish.
Hopefully my change fixes both problems.

Modifying navbar registry happens once during the initialization,
so these texts are saved once in the init, therefor only one translation happens.
When changing the language, no modification is possible to these strings.

Added translation in reading these texts from registry,
making sure they get translated every time they are loaded.

Removed translation from regiter functions,
so that registered textx is the text to be translated.
By doing so, I am sure that the text won't get translated before adding,
because the it would not be ever translated back.

Change-Id: I0661b460c2cdf8fd48c8932dc25e0010e78a1e64
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~I0661b460c2cdf8fd48c8932dc25e0010e78a1e64, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3346

SIO-2278 Navbar translations doesn't work in problemset

Translation was imported as ugettext, which was a not lazy version of translation.
Therefor, the translation was made on init, so the text once translated never changed.
Edited import to ugettext_lazy, so that the translation is lazy.

Change-Id: I0661b460c2cdf8fd48c8932dc25e0010e78a1e64
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~I0661b460c2cdf8fd48c8932dc25e0010e78a1e64, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3346

SIO-2278 Navbar translations doesn't work in problemset

Translation was imported as ugettext, which was a not lazy version of translation.
Therefor, the translation was made on init, so the text once translated never changed.
Edited import to ugettext_lazy, so that the translation is lazy.

Change-Id: I0661b460c2cdf8fd48c8932dc25e0010e78a1e64
Comment by Gerrit Gerrit [ 2019-12-3 ]
Change oioioi~master~I0661b460c2cdf8fd48c8932dc25e0010e78a1e64, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3346

SIO-2278 Navbar translations doesn't work in problemset

Translation was imported as ugettext, which was a not lazy version of translation.
Therefor, the translation was made on init, so the text once translated never changed.
Edited import to ugettext_lazy, so that the translation is lazy.

Changed jsonify functions, because they don't accept lazy translation objects.
Before jsonifying results, translated texts to current language.

Added a regression test.

What's interesting, that a bug in problems' view caused an error in szkopul view...
Not sure why that happened, but it's fixed now.

Change-Id: I0661b460c2cdf8fd48c8932dc25e0010e78a1e64
Comment by Gerrit Gerrit [ 2019-12-3 ]
Change oioioi~master~I0661b460c2cdf8fd48c8932dc25e0010e78a1e64, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3346

SIO-2278 Navbar translations doesn't work in problemset

Translation was imported as ugettext, which was a not lazy version of translation.
Therefor, the translation was made on init, so the text once translated never changed.
Edited import to ugettext_lazy, so that the translation is lazy.

Changed jsonify functions, because they don't accept lazy translation objects.
Before jsonifying results, translated texts to current language.

Added a regression test.

What's interesting, that a bug in problems' view caused an error in szkopul view...
Not sure why that happened, but it's fixed now.

Change-Id: I0661b460c2cdf8fd48c8932dc25e0010e78a1e64
Comment by Gerrit Gerrit [ 2019-12-3 ]
Change oioioi~master~I0661b460c2cdf8fd48c8932dc25e0010e78a1e64, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3346

SIO-2278 Navbar translations doesn't work in problemset

Translation was imported as ugettext, which was a not lazy version of translation.
Therefor, the translation was made on init, so the text once translated never changed.
Edited import to ugettext_lazy, so that the translation is lazy.

Changed jsonify functions, because they don't accept lazy translation objects.
Before jsonifying results, translated texts to current language.

Added a regression test.

What's interesting, that a bug in problems' view caused an error in szkopul view...
Probably szkopul loaded navbar view in problemset from normal sio2 view.

Change-Id: I0661b460c2cdf8fd48c8932dc25e0010e78a1e64




[SIO-2277] Ranking ingores custom update_user_result_for_{round,contest} Created: 2019-09-11  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag1


 Description   
It's possible to override the update_user_result_for_{round,contest} methods in a contest controller, and change the way results for round and contest are computed form a simple sum to something more elaborate. (For example, on OIJ, we need to have max of two different quizzes.)
Those results will be saved in UserResultForRound and UserResultForContest models.

However, the ranking doesn't care. It just takes per-problem scores from UserResultForProblem objects and sums them.




[SIO-2276] Viewing problem list fails with HTTP 500 when round end time is None Created: 2019-09-6  Updated: 2020-03-3  Resolved: 2019-12-18

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Sentry Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: tag1

TAG Developer: Franciszek Hnatów

 Description   
https://sentry.io/organizations/the-sio2-project/issues/1210384154/?referrer=jira_plugin

{code}
TypeError: can't compare datetime.datetime to NoneType
  File "oioioi/contests/views.py", line 106, in problems_list_view
    ], key=lambda p: (p[2].get_start(), p[2].get_end(), p[0].round.name,
  File "oioioi/base/permissions.py", line 126, in _wrapped_view
    return view_func(request, *args, **kwargs)
...
(1 additional frame(s) were not displayed)

TypeError: can't compare datetime.datetime to NoneType
{code}

 Comments   
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3356

SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None

Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~Ib468adfeb0fa127e96b75746f831d7f962f769d2, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3358

SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None

Change-Id: Ib468adfeb0fa127e96b75746f831d7f962f769d2
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3356

SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None

Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
Comment by Gerrit Gerrit [ 2019-11-20 ]
Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3356

SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None

Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
Comment by Gerrit Gerrit [ 2019-12-9 ]
Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3356

SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None

Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
Comment by Gerrit Gerrit [ 2019-12-9 ]
Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3356

SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None

Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133




[SIO-2275] Make models' names compatible with python2 and python3 Created: 2019-08-5  Updated: 2021-03-22  Resolved: 2021-03-22

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Marek Żochowski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: py3


 Description   
Django models uses internal function of python classes __unicode__ and __str__ to extract 'name' of the given object, e.g. on admin pages.
Because of changes in string representations in Python3 this behavior has to be change (python3 -> unicode, python2 -> str). Fortunatelly django provides very helpful decorator to ensure compatibility with both versions of python.

 Comments   
Comment by Gerrit Gerrit [ 2019-08-5 ]
Change oioioi~master~I067586a65acf1d27a446a238431fff9eca9f078e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3304

(SIO-2275) Make models' names compatible with python2 and python3

This change mostly decorates classes with python_2_unicode_compatible
decorator. For details check JIRA entry.

Change-Id: I067586a65acf1d27a446a238431fff9eca9f078e




[SIO-2274] Quizzes improvements for the Junior Olympiad in Informatics Created: 2019-06-29  Updated: 2021-10-31  Resolved: 2021-10-31

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: For the OI Team

Type: Improvement Priority: Major
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
For the Junior Olympiad in Informatics, we would like to use the quizzes module, but we need some more features:
- ability to add pictures and math equations in questions and answers,
- contestants should be able to type their own answer (a single integer or a word)
- add the possibility to differ scoring within one question (for example, there might be an answer worth 1 point, and another answer worth two points)
- we would like to have the following workflow:
-- teacher add a set of questions categorized into several categories
-- contestant can prepare for a quiz, they can generate practice quizzes, the quiz should contain random questions from different categories (for example 10 algorithmic questions and 10 programming questions)
-- finally, they should be able to take a rated quiz, which should be scored.

 Comments   
Comment by Szymon Acedański [ 2019-06-29 ]
Artur, it looks like this issue is to be managed inside the OI Admins team. I assigned it to you so it's not lost.

If this is what you want, you probably have the option to move it to the OIADMINS project.
Comment by Paweł Dietrich [ 2021-10-31 ]
Currently we deal with quizzes as they are. In the future we want quizzes to be outside sio2 to help with scaling for A LOT of participants concurrently. Thus this issue can be closed.




[SIO-2273] Change sioworkers to accept specific compilers Created: 2019-06-26  Updated: 2020-03-3  Resolved: 2019-06-30

Status: Closed
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Piotr Wojtczak Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change sioworkers~master~I41633ae9b3ffe23cfa1a9c97397676361c0e669c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3282

(SIO-2273) - Change sioworkers to accept specific compilers

Comment by Gerrit Gerrit [ 2019-06-26 ]
Change sioworkers~master~Id266cded8f2ce8c42a6e4c8e80e8ba69b76d1124, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3283

(SIO-2273) - Change sioworkers to accept specific compilers

Comment by Gerrit Gerrit [ 2019-06-26 ]
Change sioworkers~master~Id312581bc097d28120c0502c2b86431ab55f3902, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3284

(SIO-2273) - Change sioworkers to accept specific compilers

Change-Id: Id312581bc097d28120c0502c2b86431ab55f3902
Comment by Gerrit Gerrit [ 2019-06-29 ]
Change sioworkers~master~Id312581bc097d28120c0502c2b86431ab55f3902, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3284

(SIO-2273) - Change sioworkers to accept specific compilers

Change-Id: Id312581bc097d28120c0502c2b86431ab55f3902
Comment by Gerrit Gerrit [ 2019-06-29 ]
Change sioworkers~master~Id312581bc097d28120c0502c2b86431ab55f3902, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3284

(SIO-2273) - Change sioworkers to accept specific compilers

Change-Id: Id312581bc097d28120c0502c2b86431ab55f3902
Comment by Piotr Wojtczak [ 2019-06-30 ]
Fix missing comma https://gerrit.sio2project.mimuw.edu.pl/#/c/3292/




[SIO-2272] Handle new compiler logic Created: 2019-06-26  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I77a1b57f500b8ddc12a7cd23e4a8830f1e95e8a6, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3279

(SIO-2272) Handle user-set compilers

Use ContestCompiler and ProblemCompiler to determine what to use to
compile a particular submission. ContestCompiler overrides
ProblemCompiler if both are set. We assume ProblemCompiler is set for
every language.

If USE_LOCAL_COMPILERS is set to True, this logic is not applied,
because system-[lang] is used as a compiler anyway.

Change-Id: I77a1b57f500b8ddc12a7cd23e4a8830f1e95e8a6
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I77a1b57f500b8ddc12a7cd23e4a8830f1e95e8a6, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3279

(SIO-2272) Handle user-set compilers

Use ContestCompiler and ProblemCompiler to determine what to use to
compile a particular submission. ContestCompiler overrides
ProblemCompiler if both are set. We assume ProblemCompiler is set for
every language.

If USE_LOCAL_COMPILERS is set to True, this logic is not applied,
because system-[lang] is used as a compiler anyway.

Change-Id: I77a1b57f500b8ddc12a7cd23e4a8830f1e95e8a6
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I77a1b57f500b8ddc12a7cd23e4a8830f1e95e8a6, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3279

(SIO-2272) Handle user-set compilers

Use ContestCompiler and ProblemCompiler to determine what to use to
compile a particular submission. ContestCompiler overrides
ProblemCompiler if both are set. We assume ProblemCompiler is set for
every language.

If USE_LOCAL_COMPILERS is set to True, this logic is not applied,
because system-[lang] is used as a compiler anyway.

Change-Id: I77a1b57f500b8ddc12a7cd23e4a8830f1e95e8a6




[SIO-2271] Allow problem admin to choose compiler Created: 2019-06-26  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I31c446ff2ca14307bc15646e00b95780abe44842, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3275

(SIO-2271) Add inline for problem compiler

We want to allow to choose compiler per problem, rather than using one
version for all problems on that particular instance of oioioi.

This change adds necessary inline to django admin for problem

Change-Id: I31c446ff2ca14307bc15646e00b95780abe44842
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I31c446ff2ca14307bc15646e00b95780abe44842, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3275

(SIO-2271) Add inline for problem compiler

We want to allow to choose compiler per problem, rather than using one
version for all problems on that particular instance of oioioi.

This change adds necessary inline to django admin for problem

Change-Id: I31c446ff2ca14307bc15646e00b95780abe44842
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I31c446ff2ca14307bc15646e00b95780abe44842, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3275

(SIO-2271) Add inline for problem compiler

We want to allow to choose compiler per problem, rather than using one
version for all problems on that particular instance of oioioi.

This change adds necessary inline to django admin for problem

Change-Id: I31c446ff2ca14307bc15646e00b95780abe44842




Add groups (SIO-2213)

[SIO-2270] Adjust teachers' pupils site to use usergroups Created: 2019-06-25  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups


 Comments   
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3271

(SIO-2270) Adjust teachers' pupils site to use usergroups

Change-Id: Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3271

(SIO-2270) Adjust teachers' pupils site to use usergroups

Change-Id: Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3271

(SIO-2270) Adjust teachers' pupils site to use usergroups

Change-Id: Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3271

(SIO-2270) Adjust teachers' pupils site to use usergroups

Change-Id: Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3271

(SIO-2270) Adjust teachers' pupils site to use usergroups

Change-Id: Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3271

(SIO-2270) Adjust teachers' pupils site to use usergroups

Change-Id: Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3271

(SIO-2270) Adjust teachers' pupils site to use usergroups

Change-Id: Ia63c39f4ebe3096f34e2f53d722fe580e18b0a5f




[SIO-2269] Create form for proposing tags for a problem in problemset Created: 2019-06-24  Updated: 2019-06-26  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Piotr Wojtczak Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Create a form that allows users who solved a given problem propose tags based on their solutions

 Comments   
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I6e363a716200dfee7d95af3c8248c7ba7b928b00, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3264

(SIO-2269) Create form for proposing tags for a problem in problemset

This change introduces an interactive form in problem's site. Users who solved this problem can now
propose tags via said form (both algorith and difficulty tags). Users can only send their proposals once.
After submitting, it dissapears forever from the page.

This commit includes two new models - AlgorithmTagProposal and DifficultyProposal

Change-Id: I6e363a716200dfee7d95af3c8248c7ba7b928b00
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I6e363a716200dfee7d95af3c8248c7ba7b928b00, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3264

(SIO-2269) Create form for proposing tags for a problem in problemset

This change introduces an interactive form in problem's site. Users who solved this problem can now
propose tags via said form (both algorith and difficulty tags). Users can only send their proposals once.
After submitting, it dissapears forever from the page.

This commit includes two new models - AlgorithmTagProposal and DifficultyProposal

Change-Id: I6e363a716200dfee7d95af3c8248c7ba7b928b00
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I6e363a716200dfee7d95af3c8248c7ba7b928b00, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3264

(SIO-2269) Create form for proposing tags for a problem in problemset

This change introduces an interactive form in problem's site. Users who solved this problem can now
propose tags via said form (both algorith and difficulty tags). Users can only send their proposals once.
After submitting, it dissapears forever from the page.

This commit includes two new models - AlgorithmTagProposal and DifficultyProposal

Change-Id: I6e363a716200dfee7d95af3c8248c7ba7b928b00
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I6e363a716200dfee7d95af3c8248c7ba7b928b00, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3264

(SIO-2269) Create form for proposing tags for a problem in problemset

This change introduces an interactive form in problem's site. Users who solved this problem can now
propose tags via said form (both algorith and difficulty tags). Users can only send their proposals once.
After submitting, it dissapears forever from the page.

This commit includes two new models - AlgorithmTagProposal and DifficultyProposal

Change-Id: I6e363a716200dfee7d95af3c8248c7ba7b928b00
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I6e363a716200dfee7d95af3c8248c7ba7b928b00, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3264

(SIO-2269) Create form for proposing tags for a problem in problemset

This change introduces an interactive form in problem's site. Users who solved this problem can now
propose tags via said form (both algorith and difficulty tags). Users can only send their proposals once.
After submitting, it dissapears forever from the page.

This commit includes two new models - AlgorithmTagProposal and DifficultyProposal

Change-Id: I6e363a716200dfee7d95af3c8248c7ba7b928b00




[SIO-2268] Add new option to block HTML statements in sinolpacks Created: 2019-06-24  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
This change will introduce new setting in settings.py which will block uploading sinolpack with problem statement in HTML by certain group of users (not superadmins nor teachers).

 Comments   
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~Iee186489407c5f9630cba8a8a40e32efe7cbcc43, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3266

(SIO-2268) Add new option to block HTML statements in sinolpacks

Change-Id: Iee186489407c5f9630cba8a8a40e32efe7cbcc43
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~Iee186489407c5f9630cba8a8a40e32efe7cbcc43, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3266

(SIO-2268) Add new option to block HTML statements in sinolpacks

Change-Id: Iee186489407c5f9630cba8a8a40e32efe7cbcc43
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~Iee186489407c5f9630cba8a8a40e32efe7cbcc43, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3266

(SIO-2268) Add new option to block HTML statements in sinolpacks

WIP lack of tests.

Change-Id: Iee186489407c5f9630cba8a8a40e32efe7cbcc43
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~Iee186489407c5f9630cba8a8a40e32efe7cbcc43, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3266

(SIO-2268) Add new option to block HTML statements in sinolpacks

Change-Id: Iee186489407c5f9630cba8a8a40e32efe7cbcc43
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~Iee186489407c5f9630cba8a8a40e32efe7cbcc43, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3266

(SIO-2268) Add new option to block HTML statements in sinolpacks

Change-Id: Iee186489407c5f9630cba8a8a40e32efe7cbcc43
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~Iee186489407c5f9630cba8a8a40e32efe7cbcc43, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3266

(SIO-2268) Add new option to block HTML statements in sinolpacks

Change-Id: Iee186489407c5f9630cba8a8a40e32efe7cbcc43
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~Iee186489407c5f9630cba8a8a40e32efe7cbcc43, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3266

(SIO-2268) Add new option to block HTML statements in sinolpacks

Change-Id: Iee186489407c5f9630cba8a8a40e32efe7cbcc43




Create some useful API endpoints (SIO-2219)

[SIO-2267] API endpoint for uploading and reuploading packages Created: 2019-06-24  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I44e94def6be84af3d893d2e7dacf0278d05eff63, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3263

(SIO-2267) API endpoints for package upload and reupload.

Change-Id: I44e94def6be84af3d893d2e7dacf0278d05eff63
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I44e94def6be84af3d893d2e7dacf0278d05eff63, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3263

(SIO-2267) API endpoints for package upload and reupload.

Change-Id: I44e94def6be84af3d893d2e7dacf0278d05eff63
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I44e94def6be84af3d893d2e7dacf0278d05eff63, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3263

(SIO-2267) API endpoints for package upload and reupload.

Change-Id: I44e94def6be84af3d893d2e7dacf0278d05eff63
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I44e94def6be84af3d893d2e7dacf0278d05eff63, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3263

(SIO-2267) API endpoints for package upload and reupload.

Change-Id: I44e94def6be84af3d893d2e7dacf0278d05eff63




[SIO-2266] Forum improvements Created: 2019-06-23  Updated: 2021-04-20

Status: Open
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2020/21 Winter Sprint

Type: Improvement Priority: Major
Reporter: Bartosz Kostka Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: None

Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2402 Add latest posts view on forum Sub-task Resolved Jakub Moliński  
SIO-2403 Allow giving +1 and -1 reactions to p... Sub-task Resolved Wojciech Dubiel  
SIO-2404 Allow markdown in posts Sub-task New  
Sprint: TAG 2020/21 Winter Sprint

 Description   
1. Add the latest posts view for users (it is really problematic to check various categories and topics to be up to date).

2. Allow markdown in posts (maybe even syntax highlighting for codes?).

3. Most of the posts is just confirming some tests. Can we add +1 button, so users can confirm tests in this way?

 Comments   
Comment by Michalina Sidor [ 2019-06-24 ]
emoji reactions! :blobcatpat:
Comment by Gerrit Gerrit [ 2020-12-16 ]
Change oioioi~master~Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3574

(SIO-2266) Add a latest posts tab to the main forum page.

The post creation date periods that the user can choose are 24h, 48h and 7d.
Mostly reuses the thread/post templates.
Latestposts/post footer differs from thread/post footer in that it
contains also the thread name.

Change-Id: Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a
Comment by Gerrit Gerrit [ 2020-12-16 ]
Change oioioi~master~Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3574

(SIO-2266) Add a latest posts tab to the main forum page.

The post creation date periods that the user can choose are 24h, 48h and 7d.
Mostly reuses the thread/post templates.
Latestposts/post footer differs from thread/post footer in that it
contains also the thread name.

Change-Id: Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a
Comment by Gerrit Gerrit [ 2021-01-9 ]
Change oioioi~master~Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3574

(SIO-2266) Add a latest posts tab to the main forum page.

Adds a paginated latest posts tab to forum.
The number of posts shown per page can be configured in the settings
file.
Mostly reuses the thread/post templates.
Latestposts/post footer differs from thread/post footer in that it
contains also the thread name.

Change-Id: Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a
Comment by Gerrit Gerrit [ 2021-01-9 ]
Change oioioi~master~Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3574

(SIO-2266) Add a latest posts tab to the main forum page.

Adds a paginated latest posts tab to forum.
The number of posts shown per page can be configured in the settings
file.
Mostly reuses the thread/post templates.
Latestposts/post footer differs from thread/post footer in that it
contains also the thread name.

Change-Id: Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a
Comment by Gerrit Gerrit [ 2021-01-9 ]
Change oioioi~master~Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3574

(SIO-2266) Add a latest posts tab to the main forum page.

Adds a paginated latest posts tab to forum.
The number of posts shown per page can be configured in the settings
file.
Mostly reuses the thread/post templates.
Latestposts/post footer differs from thread/post footer in that it
contains also the thread name.

Change-Id: Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a
Comment by Gerrit Gerrit [ 2021-01-10 ]
Change oioioi~master~Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3574

(SIO-2266) Add a latest posts tab to the main forum page.

Adds a paginated latest posts tab to forum.
The number of posts shown per page can be configured in the settings
file.
Mostly reuses the thread/post templates.
Latestposts/post footer differs from thread/post footer in that it
contains also the thread name.

Change-Id: Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a
Comment by Gerrit Gerrit [ 2021-01-10 ]
Change oioioi~master~Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3574

(SIO-2266) Add a latest posts tab to the main forum page.

Adds a paginated latest posts tab to forum.
The number of posts shown per page can be configured in the settings
file.
Mostly reuses the thread/post templates.
Latestposts/post footer differs from thread/post footer in that it
contains also the thread name.

Change-Id: Ib02aad0e43be13b0700396a1edcd5bc5e865ce7a




[SIO-2265] Improve rules concerning showing contest's icons in menu Created: 2019-06-22  Updated: 2020-03-3  Resolved: 2019-06-25

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Currently contest icons are displayed if there is only one menu on the left side.
This ticket will change this rule to omit not visible menus.

 Comments   
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I3b6af7d607b0bb2910b786cc6c652ca8f25e7ea8, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3260

(SIO-2265) Improve rules concerning showing contest's icons in menu

Change-Id: I3b6af7d607b0bb2910b786cc6c652ca8f25e7ea8
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I3b6af7d607b0bb2910b786cc6c652ca8f25e7ea8, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3260

(SIO-2265) Improve rules concerning showing contest's icons in menu

Change-Id: I3b6af7d607b0bb2910b786cc6c652ca8f25e7ea8
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I3b6af7d607b0bb2910b786cc6c652ca8f25e7ea8, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3260

(SIO-2265) Improve rules concerning showing contest's icons in menu

Change-Id: I3b6af7d607b0bb2910b786cc6c652ca8f25e7ea8
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I3b6af7d607b0bb2910b786cc6c652ca8f25e7ea8, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3260

(SIO-2265) Improve rules concerning showing contest's icons in menu

Change-Id: I3b6af7d607b0bb2910b786cc6c652ca8f25e7ea8




[SIO-2264] Allow contest admin to choose compiler Created: 2019-06-17  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-17 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-17 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-17 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-17 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-17 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

We want to allow to choose compiler per contest, rather than using
one version for all contests on that particular instance of oioioi.

This change adds necessary inline to django admin for contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

We want to allow to choose compiler per contest, rather than using
one version for all contests on that particular instance of oioioi.

This change adds necessary inline to django admin for contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

We want to allow to choose compiler per contest, rather than using
one version for all contests on that particular instance of oioioi.

This change adds necessary inline to django admin for contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

We want to allow to choose compiler per contest, rather than using
one version for all contests on that particular instance of oioioi.

This change adds necessary inline to django admin for contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I23f78e52a6810b7639a6c4eba650be3c3d603071, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3250

(SIO-2264) Add inlines for setting compiler in contest

We want to allow to choose compiler per contest, rather than using
one version for all contests on that particular instance of oioioi.

This change adds necessary inline to django admin for contest

Change-Id: I23f78e52a6810b7639a6c4eba650be3c3d603071




Enable everyone to create personal contests (SIO-2260)

[SIO-2263] Create UI for regular user concerning creating/managing contests Created: 2019-06-15  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: contests_for_everyone


 Description   
We will use new simpleui design for this.

 Comments   
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I322079cfa2e117aeeaea424096db1425e3b95c1f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3247

(SIO-2263) Create UI for regular user concerning creating/managing contests

WIP lack of tests

Change-Id: I322079cfa2e117aeeaea424096db1425e3b95c1f
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I322079cfa2e117aeeaea424096db1425e3b95c1f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3247

(SIO-2263) Create UI for regular user concerning creating/managing contests

WIP lack of tests

Change-Id: I322079cfa2e117aeeaea424096db1425e3b95c1f
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I322079cfa2e117aeeaea424096db1425e3b95c1f, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3247

(SIO-2263) Create UI for regular user concerning creating/managing contests

This commit will be merged with the one introducing new contest
controller hence lack of tests.

Change-Id: I322079cfa2e117aeeaea424096db1425e3b95c1f
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I322079cfa2e117aeeaea424096db1425e3b95c1f, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3247

(SIO-2263) Create UI for regular user concerning creating/managing contests

This commit will be merged with the one introducing new contest
controller hence lack of tests.

Change-Id: I322079cfa2e117aeeaea424096db1425e3b95c1f
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I322079cfa2e117aeeaea424096db1425e3b95c1f, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3247

(SIO-2263) Create UI for regular user concerning creating/managing contests

This commit will be merged with the one introducing new contest
controller hence lack of tests.

Change-Id: I322079cfa2e117aeeaea424096db1425e3b95c1f
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I322079cfa2e117aeeaea424096db1425e3b95c1f, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3247

(SIO-2263) Create UI for regular user concerning creating/managing contests

This commit will be merged with the one introducing new contest
controller hence lack of tests.

Change-Id: I322079cfa2e117aeeaea424096db1425e3b95c1f
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I322079cfa2e117aeeaea424096db1425e3b95c1f, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3247

(SIO-2263) Create UI for regular user concerning creating/managing contests

This commit will be merged with the one introducing new contest
controller hence lack of tests.

Change-Id: I322079cfa2e117aeeaea424096db1425e3b95c1f
Comment by Marek Żochowski [ 2019-06-26 ]
Moved to https://jira.sio2project.mimuw.edu.pl/browse/SIO-2259




[SIO-2262] Remove simpleui dependency on teachers Created: 2019-06-15  Updated: 2020-03-3  Resolved: 2019-06-25

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
From now on simpleui will no longer be a set of "simple" views for teachers app. Now it will provide more generalized views (still "simple") for potentially more apps than just teachers. Additionally it will add user dashboard for every active user in the system (it will be similar to the existing teacher dashboard). It will be accessible only by a direct link, but future tickets will change this.

 Comments   
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

WIP lack of tests

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

WIP lack of tests

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

WIP lack of tests

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

WIP lack of tests

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I3cfb5737599dc8c80c6ad644d85c640d58d35897, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3246

(SIO-2262) Remove simpleui dependency on teachers

This commit changes purpose of simpleui.
For details check corresponding JIRA ticket.

Change-Id: I3cfb5737599dc8c80c6ad644d85c640d58d35897




[SIO-2261] Change Teacher Menu to Personal Menu Created: 2019-06-15  Updated: 2020-03-3  Resolved: 2019-06-25

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
This change will rename one of the left menus and make it accessible/visible for everyone.

 Comments   
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~If0386ccbcab61ccd2525a19965e70161e63ca4f1, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3245

(SIO-2261) Change Teacher Menu to Personal Menu

Change-Id: If0386ccbcab61ccd2525a19965e70161e63ca4f1




[SIO-2260] Enable everyone to create personal contests Created: 2019-06-13  Updated: 2019-06-13

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Marek Żochowski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: contests_for_everyone

Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2259 Create new type of contest for everyone Sub-task Closed Szymon Acedański  
SIO-2263 Create UI for regular user concerning... Sub-task Closed Szymon Acedański  

 Description   
This type of contest has limited options and should support only programming problems (no quizzes).
Detailed list of limitations can be found in the subtasks.




Enable everyone to create personal contests (SIO-2260)

[SIO-2259] Create new type of contest for everyone Created: 2019-06-13  Updated: 2020-03-3  Resolved: 2019-07-7

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: contests_for_everyone


 Description   
In this task one should create new contest type that has limited options, but can be created and admined by any user.

List of limitations:

- Contest should be open (no limited participants)
- There should be an option (preferably in settings) to disable this feature (created contests should remain in an archive-like state)
- There should be no option to share contests among users accessible by regular users.
- etc. (will be added in another ticket)

 Comments   
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I12275df20c47e300b90515858ee6a29d094aeeb7, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3269

(SIO-2259) [WIP] Introduce User Contests

Change-Id: I12275df20c47e300b90515858ee6a29d094aeeb7
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'privileged' contest permission

This change adds a new permission 'contests.contest_privileged', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'privileged' users should not have access, whereas others were changed
accordingly to 'is_contest_privileged' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'privileged' users from seeing links to 403 pages.

TODO:
1. finish blocking stuff to block
2. tests
3. comments

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

TODO:
1. double check everything works,
2. tests,
3. commit msg and code comments

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~Iea2b65038c3dd1e829d8f333c827a3f69bb6ec26, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3278

(SIO-2259) Allow User Contest archiving

TODO:
1. Finish blocking all the options
2. tests
3. commit msg and comments

Change-Id: Iea2b65038c3dd1e829d8f333c827a3f69bb6ec26
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to 403 pages.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to 403 pages.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which disallows
changing settings as well as submitting to User Contests, while leaving
their contents intact.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which disallows
changing settings as well as submitting to User Contests, while leaving
their contents intact.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which disallows
changing settings as well as submitting to User Contests, while leaving
their contents intact.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which disallows
changing settings as well as submitting to User Contests, while leaving
their contents intact.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-2 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-3 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-3 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-3 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-3 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-3 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-3 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-4 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-4 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'.

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-5 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-5 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-5 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89
Comment by Gerrit Gerrit [ 2019-07-6 ]
Change oioioi~master~I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3276

(SIO-2259) Create 'basicadmin' contest permission

This change adds a new permission 'contests.contest_basicadmin', which
is meant to be a "softer" version of the 'contests.contest_admin' -
with access to only parts of contest configuration. This is to prepare
the groundwork for limiting access in the User Contests.

Some checks for 'is_contest_admin' were left unchanged wherever the
'basicadmin' users should not have access, whereas others were changed
accordingly to 'is_contest_basicadmin' to allow these users in.

Also added the 'is_contest_admin" check on some sidebar menus, to
prevent 'basicadmin' users from seeing links to pages they don't have
access to.

Change-Id: I1a2d40a6d4e350f31b3ee3601a86f8182a05fd1d
Comment by Gerrit Gerrit [ 2019-07-6 ]
Change oioioi~master~I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3277

(SIO-2259) Introduce User Contests

This change introduces User Contests, which are contests available for
any user.

An option to disable the user contests will be added by the next change.

Also fixed a bug that resulted in not displaying icons when user had
more than one menu available, as well as a weird behaviour in the
ContestAdminMixin in teachers, which was "capturing" the execution paths
belonging to other ContestAdmin mixins.

Change-Id: I9bdceea9d2d0265ef4bd0675f1c8b50e1ed4aae4
Comment by Gerrit Gerrit [ 2019-07-6 ]
Change oioioi~master~Icb7d341a71964a19892e16898dee4ab4d2b97c89, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3290

(SIO-2259) Allow User Contest archiving

This change introduces an ARCHIVE_USERCONTESTS setting, which
disallows changing settings as well as submitting to User Contests,
while leaving their contents intact. This is done by changing
the 'regular' users' permissions from 'basicadmin' to 'observer'

Change-Id: Icb7d341a71964a19892e16898dee4ab4d2b97c89




[SIO-2258] "Shared with me" tab in the problemset Created: 2019-06-11  Updated: 2019-09-19  Resolved: 2019-09-19

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: friendship


 Description   
The new tab should contain information about task author.

 Comments   
Comment by Gerrit Gerrit [ 2019-06-29 ]
Change oioioi~master~I573709130ff390a360a213eda3fba943b092f769, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3288

(SIO-2258) "Shared with me" tab in the problemset

Change-Id: I573709130ff390a360a213eda3fba943b092f769
Comment by Gerrit Gerrit [ 2019-06-29 ]
Change oioioi~master~I573709130ff390a360a213eda3fba943b092f769, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3288

(SIO-2258) "Shared with me" tab in the problemset

Change-Id: I573709130ff390a360a213eda3fba943b092f769
Comment by Gerrit Gerrit [ 2019-06-29 ]
Change oioioi~master~I573709130ff390a360a213eda3fba943b092f769, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3288

(SIO-2258) "Shared with me" tab in the problemset

Change-Id: I573709130ff390a360a213eda3fba943b092f769
Comment by Gerrit Gerrit [ 2019-07-1 ]
Change oioioi~master~I573709130ff390a360a213eda3fba943b092f769, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3288

(SIO-2258) "Shared with me" tab in the problemset

Change-Id: I573709130ff390a360a213eda3fba943b092f769
Comment by Gerrit Gerrit [ 2019-07-1 ]
Change oioioi~master~I573709130ff390a360a213eda3fba943b092f769, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3288

(SIO-2258) "Shared with me" tab in the problemset

Change-Id: I573709130ff390a360a213eda3fba943b092f769
Comment by Gerrit Gerrit [ 2019-07-1 ]
Change oioioi~master~I573709130ff390a360a213eda3fba943b092f769, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3288

(SIO-2258) "Shared with me" tab in the problemset

Change-Id: I573709130ff390a360a213eda3fba943b092f769




[SIO-2257] Choose task privacy on upload Created: 2019-06-11  Updated: 2019-09-19  Resolved: 2019-09-19

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: friendship


 Description   
Options we want:
- Only me
- Me and my friends

We don't want to add option to make a task public at this time.

The default should be "Me and my friends" unless last task uploaded to the contest was with permission "Only me"

 Comments   
Comment by Gerrit Gerrit [ 2019-07-4 ]
Change oioioi~master~Ie9f9107c95ae99a58cac0a082f4580a6a4547239, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3295

(SIO-2257) Choose task privacy on upload.

Modifies existing form to allow for specifying problem visibility.
If no additional data is provided, the visibility defaults to specified value.

Change-Id: Ie9f9107c95ae99a58cac0a082f4580a6a4547239
Comment by Gerrit Gerrit [ 2019-07-4 ]
Change oioioi~master~Ie9f9107c95ae99a58cac0a082f4580a6a4547239, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3295

(SIO-2257) Choose task privacy on upload.

Modifies existing form to allow for specifying problem visibility.
If no additional data is provided, the visibility defaults to specified value.

Change-Id: Ie9f9107c95ae99a58cac0a082f4580a6a4547239
Comment by Gerrit Gerrit [ 2019-07-7 ]
Change oioioi~master~Ie9f9107c95ae99a58cac0a082f4580a6a4547239, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3295

(SIO-2257) Choose task privacy on upload.

Modifies existing form to allow for specifying problem visibility.
If no additional data is provided, the visibility defaults to specified value.

Change-Id: Ie9f9107c95ae99a58cac0a082f4580a6a4547239
Comment by Gerrit Gerrit [ 2019-07-13 ]
Change oioioi~master~Ie9f9107c95ae99a58cac0a082f4580a6a4547239, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3295

(SIO-2257) Choose task privacy on upload.

Modifies existing form to allow for specifying problem visibility.
If no additional data is provided, the visibility defaults to specified value.

Change-Id: Ie9f9107c95ae99a58cac0a082f4580a6a4547239
Comment by Gerrit Gerrit [ 2019-07-14 ]
Change oioioi~master~Ie9f9107c95ae99a58cac0a082f4580a6a4547239, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3295

(SIO-2257) Choose task privacy on upload.

Modifies existing form to allow for specifying problem visibility.
If no additional data is provided, the visibility defaults to specified value.

Change-Id: Ie9f9107c95ae99a58cac0a082f4580a6a4547239
Comment by Gerrit Gerrit [ 2019-08-17 ]
Change oioioi~master~Ie9f9107c95ae99a58cac0a082f4580a6a4547239, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3295

(SIO-2257) Choose task privacy on upload.

Modifies existing form to allow for specifying problem visibility.
If no additional data is provided, the visibility defaults to specified value.

Change-Id: Ie9f9107c95ae99a58cac0a082f4580a6a4547239




[SIO-2256] Friend management (list, add, remove) Created: 2019-06-11  Updated: 2020-03-3  Resolved: 2019-06-30

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: friendship


 Comments   
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I985b1c3375ba833ffbcebf207ef76f51f1170f32, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3287

(SIO-2256) Add Friendship managment view

Friendship managment view allows to add, list and remove friends. This
view is available only for teachers. Validation is performed so
non-teacher users can't be added to friends.

Change-Id: I985b1c3375ba833ffbcebf207ef76f51f1170f32
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I985b1c3375ba833ffbcebf207ef76f51f1170f32, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3287

(SIO-2256) Add Friendship managment view

Friendship managment view allows to add, list and remove friends. This
view is available only for teachers. Validation is performed so
non-teacher users can't be added to friends.

Change-Id: I985b1c3375ba833ffbcebf207ef76f51f1170f32
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I985b1c3375ba833ffbcebf207ef76f51f1170f32, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3287

(SIO-2256) Add Friendship managment view

Friendship managment view allows to add, list and remove friends. This
view is available only for teachers. Validation is performed so
non-teacher users can't be added to friends.

Change-Id: I985b1c3375ba833ffbcebf207ef76f51f1170f32
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I985b1c3375ba833ffbcebf207ef76f51f1170f32, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3287

(SIO-2256) Add Friendship managment view

Friendship managment view allows to add, list and remove friends. This
view is available only for teachers. Validation is performed so
non-teacher users can't be added to friends.

Change-Id: I985b1c3375ba833ffbcebf207ef76f51f1170f32
Comment by Gerrit Gerrit [ 2019-06-29 ]
Change oioioi~master~I985b1c3375ba833ffbcebf207ef76f51f1170f32, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3287

(SIO-2256) Add Friendship managment view

Friendship managment view allows to add, list and remove friends. This
view is available only for teachers. Validation is performed so
non-teacher users can't be added to friends.

Change-Id: I985b1c3375ba833ffbcebf207ef76f51f1170f32
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I985b1c3375ba833ffbcebf207ef76f51f1170f32, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3287

(SIO-2256) Add Friendship managment view

Friendship managment view allows to add, list and remove friends. This
view is available only for teachers. Validation is performed so
non-teacher users can't be added to friends.

Change-Id: I985b1c3375ba833ffbcebf207ef76f51f1170f32
Comment by Gerrit Gerrit [ 2019-06-30 ]
Change oioioi~master~I985b1c3375ba833ffbcebf207ef76f51f1170f32, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3287

(SIO-2256) Add Friendship managment view

Friendship managment view allows to add, list and remove friends. This
view is available only for teachers. Validation is performed so
non-teacher users can't be added to friends.

Change-Id: I985b1c3375ba833ffbcebf207ef76f51f1170f32




[SIO-2255] Friendship model Created: 2019-06-11  Updated: 2020-03-3  Resolved: 2019-06-19

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: friendship


 Comments   
Comment by Gerrit Gerrit [ 2019-06-16 ]
Change oioioi~master~I32f9428be6fea0d5ea4b9f02e8637e220293baf5, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3248

(SIO-2255) Friendship model

Creates Problemsharing app, Friendship model, modifies problem
visibility storage (is_public -> visibility).

Change-Id: I32f9428be6fea0d5ea4b9f02e8637e220293baf5
Comment by Gerrit Gerrit [ 2019-06-16 ]
Change oioioi~master~I32f9428be6fea0d5ea4b9f02e8637e220293baf5, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3248

(SIO-2255) Friendship model

- Creates Problemsharing app
- Adds Friendship model
- Modifies problem visibility storage (is_public -> visibility)
- Creates TestCaseMigrations utility class

Change-Id: I32f9428be6fea0d5ea4b9f02e8637e220293baf5
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I32f9428be6fea0d5ea4b9f02e8637e220293baf5, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3248

(SIO-2255) Friendship model

- Creates Problemsharing app
- Adds Friendship model
- Modifies problem visibility storage (is_public -> visibility)
- Creates TestCaseMigrations utility class

Change-Id: I32f9428be6fea0d5ea4b9f02e8637e220293baf5




Add groups (SIO-2213)

[SIO-2254] Add link to usergroups list in simpleui teachers dashboard Created: 2019-06-5  Updated: 2020-03-3  Resolved: 2019-06-13

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups


 Comments   
Comment by Gerrit Gerrit [ 2019-06-12 ]
Change oioioi~master~I076b45052dd735c7ae309eb2a08501109f8a6bf5, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3241

(SIO-2254) Add link to usergroups list in simpleui teachers dashboard

Change-Id: I076b45052dd735c7ae309eb2a08501109f8a6bf5




[SIO-2253] Create need models for storing compiler info Created: 2019-06-5  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Piotr Wojtczak Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
Add models to allow storing used compilers in specific problem instances and contests

 Comments   
Comment by Gerrit Gerrit [ 2019-06-5 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create need models for storing compiler info

Added two new many to one relations:

a) ProblemCompiler, which represents the compiler set for a particular problem instance and language

b) ContestCompiler, which represents contest-wide compiler settings for a language

Migration included in this commit also performs populating the ProblemCompiler table
with default compilers for every lanugage specified in settings

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-5 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations:

a) ProblemCompiler, which represents the compiler set for a particular problem instance and language

b) ContestCompiler, which represents contest-wide compiler settings for a language

Migration included in this commit also performs populating the ProblemCompiler table
with default compilers for every lanugage specified in settings

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-7 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added a new many to one relation, ContestCompiler, which represents contest-wide
compiler settings for a language.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-11 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added a new many to one relation, ContestCompiler, which represents contest-wide
compiler settings for a language.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-11 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations representing compilers associated
with different models:

a) ContestCompiler, which represents contest-wide compiler settings. This will allow
contests to locally override compilers set for problems.

b) ProblemCompiler, which represents compilers used for this problem when no others
are specified. Instances of this are created when a new problem is uploaded
and set to values taken from DEFAULT_COMPILERS setting.

This change also increments the config version in settings to 32.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-11 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations representing compilers associated
with different models:

a) ContestCompiler, which represents contest-wide compiler settings. This will allow
contests to locally override compilers set for problems.

b) ProblemCompiler, which represents compilers used for this problem when no others
are specified. Instances of this are created when a new problem is uploaded
and set to values taken from DEFAULT_COMPILERS setting.

This change also increments the config version in settings to 32.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations representing compilers associated
with different models:

a) ContestCompiler, which represents contest-wide compiler settings. This will allow
contests to locally override compilers set for problems.

b) ProblemCompiler, which represents compilers used for this problem when no others
are specified. Instances of this are created when a new problem is uploaded
and set to values taken from DEFAULT_COMPILERS setting.

This change also increments the config version in settings to 32.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations representing compilers associated
with different models:

a) ContestCompiler, which represents contest-wide compiler settings. This will allow
contests to locally override compilers set for problems.

b) ProblemCompiler, which represents compilers used for this problem when no others
are specified. Instances of this are created when a new problem is uploaded
and set to values taken from DEFAULT_COMPILERS setting.

This change also increments the config version in settings to 32.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations representing compilers associated
with different models:

a) ContestCompiler, which represents contest-wide compiler settings. This will allow
contests to locally override compilers set for problems.

b) ProblemCompiler, which represents compilers used for this problem when no others
are specified. Instances of this are created when a new problem is uploaded
and set to values taken from DEFAULT_COMPILERS setting.

This change also increments the config version in settings to 34.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations representing compilers associated
with different models:

a) ContestCompiler, which represents contest-wide compiler settings. This will allow
contests to locally override compilers set for problems.

b) ProblemCompiler, which represents compilers used for this problem when no others
are specified. Instances of this are created when a new problem is uploaded
and set to values taken from DEFAULT_COMPILERS setting.

This change also increments the config version in settings to 34.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations representing compilers associated
with different models:

a) ContestCompiler, which represents contest-wide compiler settings. This will allow
contests to locally override compilers set for problems.

b) ProblemCompiler, which represents compilers used for this problem when no others
are specified. Instances of this are created when a new problem is uploaded
and set to values taken from DEFAULT_COMPILERS setting.

This change also increments the config version in settings to 34.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I7a3e0e6444211344fb08883169d1d509405e596b, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3239

(SIO-2253) Create new models for storing compiler info

Added two new many to one relations representing compilers associated
with different models:

a) ContestCompiler, which represents contest-wide compiler settings. This will allow
contests to locally override compilers set for problems.

b) ProblemCompiler, which represents compilers used for this problem when no others
are specified. Instances of this are created when a new problem is uploaded
and set to values taken from DEFAULT_COMPILERS setting.

This change also increments the config version in settings to 34.

Change-Id: I7a3e0e6444211344fb08883169d1d509405e596b




[SIO-2252] Add showing django messages in simpleui pages Created: 2019-05-25  Updated: 2020-03-3  Resolved: 2019-06-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-13 ]
Change oioioi~master~Id889698c24ad64b599fc686e4c9f58da690dc788, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3244

(SIO-2252) Add showing django messages in simpleui pages

Change-Id: Id889698c24ad64b599fc686e4c9f58da690dc788
Comment by Gerrit Gerrit [ 2019-06-13 ]
Change oioioi~master~Id889698c24ad64b599fc686e4c9f58da690dc788, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3244

(SIO-2252) Add showing django messages in simpleui pages

Change-Id: Id889698c24ad64b599fc686e4c9f58da690dc788
Comment by Gerrit Gerrit [ 2019-06-16 ]
Change oioioi~master~Id889698c24ad64b599fc686e4c9f58da690dc788, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3244

(SIO-2252) Add showing django messages in simpleui pages

Change-Id: Id889698c24ad64b599fc686e4c9f58da690dc788
Comment by Gerrit Gerrit [ 2019-06-16 ]
Change oioioi~master~Id889698c24ad64b599fc686e4c9f58da690dc788, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3244

(SIO-2252) Add showing django messages in simpleui pages

Change-Id: Id889698c24ad64b599fc686e4c9f58da690dc788




Improve notifications (SIO-2247)

[SIO-2251] Rework notifications menu into recent submissions menu Created: 2019-05-21  Updated: 2020-03-3  Resolved: 2019-06-24

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-10 ]
Change oioioi~master~I2789bb60d2c7fb50f1a79f94fb9a912936b3989e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3240

SIO-2251 Implement latest submissions endpoint

Note this version isn't probably safe and shows all submissions

Change-Id: I2789bb60d2c7fb50f1a79f94fb9a912936b3989e
Comment by Gerrit Gerrit [ 2019-06-10 ]
Change oioioi~master~I2789bb60d2c7fb50f1a79f94fb9a912936b3989e, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3240

SIO-2251 Implement latest submissions endpoint

Note this version isn't probably safe and shows all submissions

Change-Id: I2789bb60d2c7fb50f1a79f94fb9a912936b3989e
Comment by Gerrit Gerrit [ 2019-06-11 ]
Change oioioi~master~I2789bb60d2c7fb50f1a79f94fb9a912936b3989e, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3240

SIO-2251 Implement latest submissions endpoint

Returns html table of last 5 submissions.

Change-Id: I2789bb60d2c7fb50f1a79f94fb9a912936b3989e
Comment by Gerrit Gerrit [ 2019-06-11 ]
Change oioioi~master~I2789bb60d2c7fb50f1a79f94fb9a912936b3989e, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3240

(SIO-2251) Implement latest submissions endpoint

Returns html table of last 5 submissions.

Change-Id: I2789bb60d2c7fb50f1a79f94fb9a912936b3989e
Comment by Gerrit Gerrit [ 2019-06-13 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-13 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2251) Add system notifications

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-18 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 19
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 20
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 21
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 22
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 23
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I4ca2e4921ab87bab00df87397ff8021d48cad8ac, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3261

(SIO-2247) Acknowledge notifications immediately

This change removes buffering of notifications on the notifications
server. The effect is that notifications will be silently dropped if
user is not connected at the time the notification is sent.

That will be fine once SIO-2251 is merged.

Change-Id: I4ca2e4921ab87bab00df87397ff8021d48cad8ac
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I4ca2e4921ab87bab00df87397ff8021d48cad8ac, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3261

(SIO-2247) Remove notifications buffering and acknowledgement

This change removes buffering of notifications on the notifications
server. The effect is that notifications will be silently dropped if
user is not connected at the time the notification is sent.

It makes all notifications volatile.

That will be fine once SIO-2251 is merged.

Change-Id: I4ca2e4921ab87bab00df87397ff8021d48cad8ac
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 24
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I612250262fc7e57ba4948f1c19775bae8ade7f1d, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3262

(SIO-2251) Add notification kind field

It will allow to change elements of the interface according
to the notification kind.

Change-Id: I612250262fc7e57ba4948f1c19775bae8ade7f1d
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I612250262fc7e57ba4948f1c19775bae8ade7f1d, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3262

(SIO-2251) Include type in notification

It will allow to change elements of the interface according
to this field.

Also improves documentation of send_notification function.

Change-Id: I612250262fc7e57ba4948f1c19775bae8ade7f1d
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 25
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 26
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I4ca2e4921ab87bab00df87397ff8021d48cad8ac, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3261

(SIO-2247) Remove notifications buffering and acknowledgement

This change removes buffering of notifications on the notifications
server. The effect is that notifications will be silently dropped if
user is not connected at the time the notification is sent.

It makes all notifications volatile.

That will be fine once SIO-2251 is merged.

Change-Id: I4ca2e4921ab87bab00df87397ff8021d48cad8ac
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ie115a4cf63b9ea4032aebafbaf91e8a067484171, patchset 27
https://gerrit.sio2project.mimuw.edu.pl/3242

(SIO-2251) Replace notifications list with recent submissions list

Change-Id: Ie115a4cf63b9ea4032aebafbaf91e8a067484171




Improve notifications (SIO-2247)

[SIO-2250] Fix new public question notifications Created: 2019-05-21  Updated: 2019-05-21

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Zuzanna Opała Assignee: Zuzanna Opała
Resolution: Unresolved Votes: 0
Labels: None





Improve notifications (SIO-2247)

[SIO-2249] Add scores to notifications Created: 2019-05-21  Updated: 2019-06-25

Status: Open
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Zuzanna Opała Assignee: Zuzanna Opała
Resolution: Unresolved Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I1ee983744f9ddd54776b231260c07cc87fbf76c8, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3252

(SIO-2249) Add score to notifications

Change-Id: I1ee983744f9ddd54776b231260c07cc87fbf76c8
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I1ee983744f9ddd54776b231260c07cc87fbf76c8, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3252

(SIO-2249) Add score to notifications

Change-Id: I1ee983744f9ddd54776b231260c07cc87fbf76c8
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I1ee983744f9ddd54776b231260c07cc87fbf76c8, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3252

(SIO-2249) Add score to notifications

Change-Id: I1ee983744f9ddd54776b231260c07cc87fbf76c8
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I1ee983744f9ddd54776b231260c07cc87fbf76c8, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3252

(SIO-2249) Add score to notifications

Change-Id: I1ee983744f9ddd54776b231260c07cc87fbf76c8
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I1ee983744f9ddd54776b231260c07cc87fbf76c8, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3252

(SIO-2249) Add score to notifications

Change-Id: I1ee983744f9ddd54776b231260c07cc87fbf76c8
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I1ee983744f9ddd54776b231260c07cc87fbf76c8, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3252

(SIO-2249) Add score to notifications

Change-Id: I1ee983744f9ddd54776b231260c07cc87fbf76c8
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I1ee983744f9ddd54776b231260c07cc87fbf76c8, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3252

(SIO-2249) Add score to notifications

Change-Id: I1ee983744f9ddd54776b231260c07cc87fbf76c8




Improve notifications (SIO-2247)

[SIO-2248] Use system notifications Created: 2019-05-21  Updated: 2020-03-3  Resolved: 2019-06-24

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-06-13 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-15 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 19
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a subtle refactor of the clientside translation system
to make use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 20
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a refactor of the clientside translation system to make
use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 21
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a refactor of the clientside translation system to make
use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 22
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a refactor of the clientside translation system to make
use of promises.

Notification actions are considered out of scope here, because they
require a service worker to be introduced.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 23
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a refactor of the clientside translation system to make
use of promises.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 24
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a refactor of the clientside translation system to make
use of promises.

Change-Id: I7b69714036f87aa614206618282d06608b884e09
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I7b69714036f87aa614206618282d06608b884e09, patchset 25
https://gerrit.sio2project.mimuw.edu.pl/3243

(SIO-2248) Add system notifications

Included is also a refactor of the clientside translation system to make
use of promises.

Change-Id: I7b69714036f87aa614206618282d06608b884e09




[SIO-2247] Improve notifications Created: 2019-05-21  Updated: 2019-06-23

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 3
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Zuzanna Opała Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2248 Use system notifications Sub-task Closed Szymon Acedański  
SIO-2249 Add scores to notifications Sub-task Open Zuzanna Opała  
SIO-2250 Fix new public question notifications Sub-task New Zuzanna Opała  
SIO-2251 Rework notifications menu into recent... Sub-task Closed Szymon Acedański  

 Comments   
Comment by Zuzanna Opała [ 2019-05-21 ]
Some additional features which could be:
- notifications on new questions
- fixing errors caused by management command
Comment by Gerrit Gerrit [ 2019-06-19 ]
Change oioioi~master~Iae0f1de69e60f798a16e04471bfd74f6fecb71d8, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3251

(SIO-2247) Fix red minus sign randomly appearing on navbar

Actually it was the new messages badge, because the generic code for
creating navbar badges always created a badge, even if it was completely
empty.

Change-Id: Iae0f1de69e60f798a16e04471bfd74f6fecb71d8
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Iae0f1de69e60f798a16e04471bfd74f6fecb71d8, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3251

(SIO-2247) Fix red minus sign randomly appearing on navbar

Actually it was the new messages badge, because the generic code for
creating navbar badges always created a badge, even if it was completely
empty.

Change-Id: Iae0f1de69e60f798a16e04471bfd74f6fecb71d8
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I4ca2e4921ab87bab00df87397ff8021d48cad8ac, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3261

(SIO-2247) Acknowledge notifications immediately

This change removes buffering of notifications on the notifications
server. The effect is that notifications will be silently dropped if
user is not connected at the time the notification is sent.

That will be fine once SIO-2251 is merged.

Change-Id: I4ca2e4921ab87bab00df87397ff8021d48cad8ac
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~I4ca2e4921ab87bab00df87397ff8021d48cad8ac, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3261

(SIO-2247) Remove notifications buffering and acknowledgement

This change removes buffering of notifications on the notifications
server. The effect is that notifications will be silently dropped if
user is not connected at the time the notification is sent.

It makes all notifications volatile.

That will be fine once SIO-2251 is merged.

Change-Id: I4ca2e4921ab87bab00df87397ff8021d48cad8ac
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I4ca2e4921ab87bab00df87397ff8021d48cad8ac, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3261

(SIO-2247) Remove notifications buffering and acknowledgement

This change removes buffering of notifications on the notifications
server. The effect is that notifications will be silently dropped if
user is not connected at the time the notification is sent.

It makes all notifications volatile.

That will be fine once SIO-2251 is merged.

Change-Id: I4ca2e4921ab87bab00df87397ff8021d48cad8ac




Create some useful API endpoints (SIO-2219)

[SIO-2246] API endpoint for solution submission Created: 2019-05-20  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Zuzanna Opała Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-05-20 ]
Change oioioi~master~Id2ce36d7a2fdca5b7598f4734b348e1fb2c36527, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3237

SIO-2246 Add API endpoints for submiting solutions

This commit adds API endpoints for submitting solution of problems
for both contest and problemset.

It is also first example of integration of existing SIO 2 functions
with the Django Rest Framework interface. It has proper autamaticly
generated documentation and can be used as reference for adding
descriptions to path parameters or optional post fields.

I am not sure if contest app is the best choice for those endpoints.

Change-Id: Id2ce36d7a2fdca5b7598f4734b348e1fb2c36527
Comment by Gerrit Gerrit [ 2019-05-20 ]
Change oioioi~master~Id2ce36d7a2fdca5b7598f4734b348e1fb2c36527, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3237

SIO-2246 Add API endpoints for submiting solutions

This commit adds API endpoints for submitting solution of problems
for both contest and problemset.

It is also first example of integration of existing SIO 2 functions
with the Django Rest Framework interface. It has proper autamaticly
generated documentation and can be used as reference for adding
descriptions to path parameters or optional post fields.

I am not sure if contest app is the best choice for those endpoints.

Change-Id: Id2ce36d7a2fdca5b7598f4734b348e1fb2c36527
Comment by Gerrit Gerrit [ 2019-05-25 ]
Change oioioi~master~Id2ce36d7a2fdca5b7598f4734b348e1fb2c36527, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3237

SIO-2246 Add API endpoints for submiting solutions

This commit adds API endpoints for submitting solution of problems
for both contest and problemset.

It is also first example of integration of existing SIO 2 functions
with the Django Rest Framework interface. It has proper autamaticly
generated documentation and can be used as reference for adding
descriptions to path parameters or optional post fields.

I am not sure if contest app is the best choice for those endpoints.

Change-Id: Id2ce36d7a2fdca5b7598f4734b348e1fb2c36527
Comment by Gerrit Gerrit [ 2019-05-25 ]
Change oioioi~master~Id2ce36d7a2fdca5b7598f4734b348e1fb2c36527, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3237

SIO-2246 Add API endpoints for submiting solutions

This commit adds API endpoints for submitting solution of problems
for both contest and problemset.

It is also first example of integration of existing SIO 2 functions
with the Django Rest Framework interface. It has proper autamaticly
generated documentation and can be used as reference for adding
descriptions to path parameters or optional post fields.

I am not sure if contest app is the best choice for those endpoints.

Change-Id: Id2ce36d7a2fdca5b7598f4734b348e1fb2c36527




[SIO-2245] Introduce new settings tab in problem site Created: 2019-05-14  Updated: 2020-03-3  Resolved: 2019-06-5

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Piotr Wojtczak Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Rework the design of the problem site and add a new tab - settings, for better problem management.

 Comments   
Comment by Gerrit Gerrit [ 2019-05-14 ]
Change oioioi~master~I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3231

(SIO-2245) Introduce new settings tab in problem site

This change involves creating a new tab for problem management, making it easier
for admin to navigate and laying grounds for tag user's proposals.

It also introduces some further changes to the problemsite's and problemset's layout.

Change-Id: I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98
Comment by Gerrit Gerrit [ 2019-05-18 ]
Change oioioi~master~I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3231

(SIO-2245) Introduce new settings tab in problem site

This change involves creating a new tab for problem management, making it easier
for admin to navigate and laying grounds for tag user's proposals.

It also introduces some further changes to the problemsite's and problemset's layout.

Change-Id: I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98
Comment by Gerrit Gerrit [ 2019-05-18 ]
Change oioioi~master~I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3231

(SIO-2245) Introduce new settings tab in problem site

This change involves creating a new tab for problem management, making it easier
for admin to navigate and laying grounds for tag user's proposals.

It also introduces some further changes to the problemsite's and problemset's layout.

Change-Id: I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98
Comment by Gerrit Gerrit [ 2019-05-18 ]
Change oioioi~master~I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3231

(SIO-2245) Introduce new settings tab in problem site

This change involves creating a new tab for problem management, making it easier
for admin to navigate and laying grounds for tag user's proposals.

It also introduces some further changes to the problemsite's and problemset's layout.

Change-Id: I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98
Comment by Gerrit Gerrit [ 2019-05-21 ]
Change oioioi~master~I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3231

(SIO-2245) Introduce new settings tab in problem site

This change involves creating a new tab for problem management, making it easier
for admin to navigate and laying grounds for tag user's proposals.

It also introduces some further changes to the problemsite's and problemset's layout.

Change-Id: I32dd01ca0e3fcb933f086093cd4279d8d1fb5d98




[SIO-2244] Migrate old tags on Szkopuł to new algorithm/origin tags Created: 2019-05-12  Updated: 2021-04-27  Resolved: 2021-03-23

Status: Resolved
Project: The SIO2 project
Component/s: Zzz! / None of the above / I really don't know
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jakub Bartmiński Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag1

Issue Links:
Blocks
is blocked by SIO-2314 Algorithm tags are not translatable Resolved

 Comments   
Comment by Gerrit Gerrit [ 2021-03-23 ]
Change oioioi~master~I7c0f0668ce0cc56335efcc7c6cb0b88338656956, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3636

(SIO-2244) Migrate old tags on Szkopul to new algorithm/origin tags

Implemented custom django-admin command for migrating old legacy tags
to new origin or algorithm tags.

Added a test case and mock files for testing purposes.

Change-Id: I7c0f0668ce0cc56335efcc7c6cb0b88338656956
Comment by Gerrit Gerrit [ 2021-03-23 ]
Change oioioi~master~I7c0f0668ce0cc56335efcc7c6cb0b88338656956, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3636

(SIO-2244) Migrate old tags on Szkopul to new algorithm/origin tags

Implemented custom django-admin command for migrating old legacy tags
to new origin or algorithm tags.

Added a test case and mock files for testing purposes.

Change-Id: I7c0f0668ce0cc56335efcc7c6cb0b88338656956
Comment by Gerrit Gerrit [ 2021-03-23 ]
Change oioioi~master~I7c0f0668ce0cc56335efcc7c6cb0b88338656956, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3636

(SIO-2244) Migrate old tags on Szkopul to new algorithm/origin tags

Implemented custom django-admin command for migrating old legacy tags
to new origin or algorithm tags.

Added a test case and mock files for testing purposes.

Change-Id: I7c0f0668ce0cc56335efcc7c6cb0b88338656956
Comment by Gerrit Gerrit [ 2021-03-23 ]
Change oioioi~master~I7c0f0668ce0cc56335efcc7c6cb0b88338656956, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3636

(SIO-2244) Migrate old tags on Szkopul to new algorithm/origin tags

Implemented custom django-admin command for migrating old legacy tags
to new origin or algorithm tags.

Added a test case and mock files for testing purposes.

Change-Id: I7c0f0668ce0cc56335efcc7c6cb0b88338656956
Comment by Gerrit Gerrit [ 2021-03-23 ]
Change oioioi~master~I7c0f0668ce0cc56335efcc7c6cb0b88338656956, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3636

(SIO-2244) Migrate old tags on Szkopul to new algorithm/origin tags

Implemented custom django-admin command for migrating old legacy tags
to new origin or algorithm tags.

Added a test case and mock files for testing purposes.

Change-Id: I7c0f0668ce0cc56335efcc7c6cb0b88338656956
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I6f61e35e476093241ee81270e90cd83155bfcacb, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3656

(fixes SIO-2244) Migrate old tags on Szkopul to new algorithm tags

Modify AlgorithmTag and AlgorithmTagLocalization fields
to accomodate for shorter algorithm names shortcuts
and longer translated names.

Change views to accomodate for AlgorithmTag and
AlgorithmTagLocalization fields modifications.

Implement custom django-admin command for migrating old legacy
algorithm tags to new origin or algorithm tags.

Add a test case and mock files for custom command testing purposes.

Change-Id: I6f61e35e476093241ee81270e90cd83155bfcacb
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I6f61e35e476093241ee81270e90cd83155bfcacb, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3656

(fixes SIO-2244) Migrate old tags on Szkopul to new algorithm tags

Modify AlgorithmTag and AlgorithmTagLocalization fields
to accomodate for shorter algorithm names shortcuts
and longer translated names.

Change views to accomodate for AlgorithmTag and
AlgorithmTagLocalization fields modifications.

Implement custom django-admin command for migrating old legacy
algorithm tags to new origin or algorithm tags.

Add a test case and mock files for custom command testing purposes.

Change-Id: I6f61e35e476093241ee81270e90cd83155bfcacb
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I6f61e35e476093241ee81270e90cd83155bfcacb, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3656

(fixes SIO-2244) Migrate old tags on Szkopul to new algorithm tags

Modify AlgorithmTag and AlgorithmTagLocalization fields
to accomodate for shorter algorithm names shortcuts
and longer translated names.

Change views to accomodate for AlgorithmTag and
AlgorithmTagLocalization fields modifications.

Implement custom django-admin command for migrating old legacy
algorithm tags to new algorithm tags.

Add a test case and mock files for custom command testing purposes.

Change-Id: I6f61e35e476093241ee81270e90cd83155bfcacb
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I6f61e35e476093241ee81270e90cd83155bfcacb, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3656

(fixes SIO-2244) Migrate old tags on Szkopul to new algorithm tags

Modify AlgorithmTag and AlgorithmTagLocalization fields
to accomodate for shorter algorithm names shortcuts
and longer translated names.

Change views to accomodate for AlgorithmTag and
AlgorithmTagLocalization fields modifications.

Implement custom django-admin command for migrating old legacy
algorithm tags to new algorithm tags.

Add a test case and mock files for custom command testing purposes.

Change-Id: I6f61e35e476093241ee81270e90cd83155bfcacb
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I6f61e35e476093241ee81270e90cd83155bfcacb, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3656

(fixes SIO-2244) Migrate old tags on Szkopul to new algorithm tags

Modify AlgorithmTag and AlgorithmTagLocalization fields
to accomodate for shorter algorithm names shortcuts
and longer translated names.

Change views to accomodate for AlgorithmTag and
AlgorithmTagLocalization fields modifications.

Implement custom django-admin command for migrating old legacy
algorithm tags to new algorithm tags.

Add a test case and mock files for custom command testing purposes.

Change-Id: I6f61e35e476093241ee81270e90cd83155bfcacb
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I6f61e35e476093241ee81270e90cd83155bfcacb, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3656

(fixes SIO-2244) Migrate old tags on Szkopul to new algorithm tags

Modify AlgorithmTag and AlgorithmTagLocalization fields
to accomodate for shorter algorithm names shortcuts
and longer translated names.

Change views to accomodate for AlgorithmTag and
AlgorithmTagLocalization fields modifications.

Implement custom django-admin command for migrating old legacy
algorithm tags to new algorithm tags.

Add a test case and mock files for custom command testing purposes.

Change-Id: I6f61e35e476093241ee81270e90cd83155bfcacb
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I6f61e35e476093241ee81270e90cd83155bfcacb, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3656

(fixes SIO-2244) Migrate old tags on Szkopul to new algorithm tags

Modify AlgorithmTag and AlgorithmTagLocalization fields
to accomodate for shorter algorithm names shortcuts
and longer translated names.

Change views to accomodate for AlgorithmTag and
AlgorithmTagLocalization fields modifications.

Implement custom django-admin command for migrating old legacy
algorithm tags to new algorithm tags.

Add a test case and mock files for custom command testing purposes.

Change-Id: I6f61e35e476093241ee81270e90cd83155bfcacb
Comment by Gerrit Gerrit [ 2021-04-13 ]
Change oioioi~master~I6f61e35e476093241ee81270e90cd83155bfcacb, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3656

(fixes SIO-2244) Migrate old tags on Szkopul to new algorithm tags

Modify AlgorithmTag and AlgorithmTagLocalization fields
to accomodate for shorter algorithm names shortcuts
and longer translated names.

Change views to accomodate for AlgorithmTag and
AlgorithmTagLocalization fields modifications.

Implement custom django-admin command for migrating old legacy
algorithm tags to new algorithm tags.

Add a test case and mock files for custom command testing purposes.

Change-Id: I6f61e35e476093241ee81270e90cd83155bfcacb
Comment by Gerrit Gerrit [ 2021-04-19 ]
Change oioioi~master~I1948468095862c2d485f8e7a41ca975b1c75523c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3666

(fixes SIO-2244) Migrate old tags on Szkopul to new origin tags

Implement custom django-admin command for migrating old legacy
origin tags to new origin tags.

Implement custom django-admin command for copying problem statements
from problem with no new origin tags added to corresponding problems
with new origin tags alreadt added.

Add tests and mock files for custom commands testing purposes.

Add files to be used during migration.

Change-Id: I1948468095862c2d485f8e7a41ca975b1c75523c
Comment by Gerrit Gerrit [ 2021-04-19 ]
Change oioioi~master~Ib15ead7c14bc3352957b5e1480b81b1d99532a24, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3667

(fixes SIO-2244) Change language codes from uppercase to lowercase

Change-Id: Ib15ead7c14bc3352957b5e1480b81b1d99532a24
Comment by Gerrit Gerrit [ 2021-04-20 ]
Change oioioi~master~Ib266fb809ccb18c660950edb5d08445bf827307e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3674

(fixes SIO-2244) Add languages when copying problems statements

Change-Id: Ib266fb809ccb18c660950edb5d08445bf827307e
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~master~Ifb5e19d8fbc02285c32a39d215874e4f6c9c03ef, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3689

(SIO-2244) Handle multiple problem statements when copying them

Change-Id: Ifb5e19d8fbc02285c32a39d215874e4f6c9c03ef
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~master~Ifb5e19d8fbc02285c32a39d215874e4f6c9c03ef, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3689

(SIO-2244) Handle multiple problem statements when copying them

Change-Id: Ifb5e19d8fbc02285c32a39d215874e4f6c9c03ef
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~master~Ifb5e19d8fbc02285c32a39d215874e4f6c9c03ef, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3689

(SIO-2244) Handle multiple problem statements when copying them

Change-Id: Ifb5e19d8fbc02285c32a39d215874e4f6c9c03ef
Comment by Gerrit Gerrit [ 2021-04-27 ]
Change oioioi~master~Ifb5e19d8fbc02285c32a39d215874e4f6c9c03ef, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3689

(SIO-2244) Handle multiple problem statements when copying them

Change-Id: Ifb5e19d8fbc02285c32a39d215874e4f6c9c03ef




[SIO-2243] Construct Task Archive dynamically from OriginTags Created: 2019-05-12  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jakub Bartmiński Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-05-18 ]
Change oioioi~master~I7f0bda8b5d4d5e0f9ce1c39b1f153c649d464fb7, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3234

(SIO-2243) Remodel OriginTags for new Task Archive

This change improves the system of OriginTags to work better with the
idea of a dynamically generated task archive.
The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginMeta - category specifying the OriginTag, e.g. 'year'
 - OriginMetaValue - possible value for the OriginMeta e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of 'tag_meta_metavalue', e.g. 'oi_year_2011'. For this
reason the models' values are validated to only contain lowercase
letters, numbers, and hyphens (no underscores).

Helper models of OriginTagThrough, OriginMetaThrough are used to store
m2m relationships of Problem-OriginTag and Problem-OriginMeta(+Value)

All three store additional localized values for displaying neatly to
users in the respective models with 'Localization' appended, i.e.
OriginTagLocalization, OriginMetaLocalization,
OriginMetaValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize then in the usual way)

To manage the models (and their localizations), three new admins are added -
one for each model. Another two inline admins are added to the Problem admin
for managing the m2m relationship.

Change-Id: I7f0bda8b5d4d5e0f9ce1c39b1f153c649d464fb7
Comment by Gerrit Gerrit [ 2019-05-18 ]
Change oioioi~master~Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3235

(SIO-2243) Display Task Archive dynamically

This changes uses the new OriginTags to display the Task Archive,
instead of just hardcoding all the problems in some page. After choosing
an OriginTag, all the problems tagged with it are displayed, grouped by
the tag's OriginMeta. Filtering for specific OriginMetaValues is also
possible.

Also changed two global links to link to the new Task Archive instead
of a global portal.

Change-Id: Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa
Comment by Gerrit Gerrit [ 2019-05-20 ]
Change oioioi~master~I7f0bda8b5d4d5e0f9ce1c39b1f153c649d464fb7, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3234

(SIO-2243) Remodel OriginTags for new Task Archive

This change improves the system of OriginTags to work better with the
idea of a dynamically generated task archive.
The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginMeta - category specifying the OriginTag, e.g. 'year'
 - OriginMetaValue - possible value for the OriginMeta e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of 'tag_meta_metavalue', e.g. 'oi_year_2011'. For this
reason the models' values are validated to only contain lowercase
letters, numbers, and hyphens (no underscores).

Helper models of OriginTagThrough, OriginMetaThrough are used to store
m2m relationships of Problem-OriginTag and Problem-OriginMeta(+Value)

All three store additional localized values for displaying neatly to
users in the respective models with 'Localization' appended, i.e.
OriginTagLocalization, OriginMetaLocalization,
OriginMetaValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize then in the usual way)

To manage the models (and their localizations), three new admins are added -
one for each model. Another two inline admins are added to the Problem admin
for managing the m2m relationship.

v2:
Made the new OriginTags display in the Problemset.
Updated problemset searching to work with the new system.
Updated and added tests.

Change-Id: I7f0bda8b5d4d5e0f9ce1c39b1f153c649d464fb7
Comment by Gerrit Gerrit [ 2019-05-21 ]
Change oioioi~master~Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3235

(SIO-2243) Display Task Archive dynamically

This changes uses the new OriginTags to display the Task Archive,
instead of just hardcoding all the problems in some page. After choosing
an OriginTag, all the problems tagged with it are displayed, grouped by
the tag's OriginMeta. Filtering for specific OriginMetaValues is also
possible.

Also changed two global links to link to the new Task Archive instead
of a global portal.

v2:
Refactored and split task_archive_tag_view into helper functions.
Added tests for the Task Archive and filtering.

Change-Id: Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa
Comment by Gerrit Gerrit [ 2019-05-21 ]
Change oioioi~master~Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3235

(SIO-2243) Display Task Archive dynamically

This changes uses the new OriginTags to display the Task Archive,
instead of just hardcoding all the problems in some page. After choosing
an OriginTag, all the problems tagged with it are displayed, grouped by
the tag's OriginMeta. Filtering for specific OriginMetaValues is also
possible.

Also changed two global links to link to the new Task Archive instead
of a global portal.

v2:
Refactored and split task_archive_tag_view into helper functions.
Added tests for the Task Archive and filtering.

Change-Id: Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa
Comment by Gerrit Gerrit [ 2019-06-16 ]
Change oioioi~master~I7f0bda8b5d4d5e0f9ce1c39b1f153c649d464fb7, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3234

(SIO-2243) Remodel OriginTags for new Task Archive

This change improves the system of OriginTags to work better with the
idea of a dynamically generated task archive.
The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginInfoCategory - category specifying the OriginTag, e.g. 'year'
 - OriginInfoValue - allowed value for the category e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of tag and value, e.g. 'oi_2011'. For this reason the
values are validated to only contain lowercase letters, numbers, and
hyphens (no underscores).
This also means that OriginInfoValues should be descriptive on their
own, without its category (i.e. for Round 1, 'r1' is good, '1' is bad)

All three store additional localized values for displaying neatly to
users in the respective Localization models - OriginTagLocalization,
OriginInfoCategoryLocalization, and OriginInfoValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize them in the usual way)

To manage the models (and their localizations), three new admins are added -
one for each model. Another two inline admins are added to the Problem admin
for managing the m2m relationship from the Problem side.

Search in the problemset is rebuilt to make use of the new tags -
see the `search_problems_in_problemset` as well as the
`init_search_selection` functions.

v2:
Made the new OriginTags display in the Problemset.
Updated problemset searching to work with the new system.
Updated and added tests.

v3:
Changed model names for better clarity.
Removed the custom m2m through models - the default admin works much
better with the default ones - slightly changed the FK and m2m hierarchy
to reflect this.
Completely rebuilt the Problemset search.
Changed old tests to accomodate this and added new tests and fixtures.

Change-Id: I7f0bda8b5d4d5e0f9ce1c39b1f153c649d464fb7
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I06459423e9441f0fd783e59702fac6f191531169, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3253

(SIO-2243) Remodel OriginTags for new Task Archive [1/5]

This change improves the system of OriginTags to work better with the
idea of a dynamically generated task archive.
The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginInfoCategory - category specifying the OriginTag, e.g. 'year'
 - OriginInfoValue - allowed value for the category e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of tag and value, e.g. 'oi_2011'. For this reason the
values are validated to only contain lowercase letters, numbers, and
hyphens (no underscores).
This also means that OriginInfoValues should be descriptive on their
own without the category (i.e. for Round 1, 'r1' is good, '1' is bad)

The models store additional localized values for displaying neatly to
users in their respective Localization models - OriginTagLocalization,
OriginInfoCategoryLocalization, and OriginInfoValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize them in the usual way)

v4:
Split into smaller changes

Change-Id: I06459423e9441f0fd783e59702fac6f191531169
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Id56421faf942230c0b8abdc1a5521c4e6130f296, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3254

(SIO-2243) Remodel OriginTags for new Task Archive [2/5]

Added three new admins to manage the models (and their localizations) -
one for each model. Another two inline admins are added to the Problem
admin for managing the m2m relationship from the Problem side. For
Localization classes the LocalizationFormset is added and used.

v4:
Split into smaller changes

Change-Id: Id56421faf942230c0b8abdc1a5521c4e6130f296
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Remodel OriginTags for new Task Archive [3/5]

Added displaying the new OriginTags in the problemset.

v4:
Split into smaller changes

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Remodel OriginTags for new Task Archive [4/5]

Rebuilt the problemset search to make use of the new tags -
see the `search_problems_in_problemset` function.

The search hints will be readded in the next commit.

v4:
Split into smaller changes

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Remodel OriginTags for new Task Archive [5/5]

Added the search hints and their usage in the javascript typeahead,
complete with tests.

See the `init_search_selection` js function for details.

v4:
Split into smaller changes

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Remodel OriginTags for new Task Archive [4/5]

Rebuilt the problemset search to make use of the new tags -
see the `search_problems_in_problemset` function.

The search hints will be readded in the next commit.

v4:
Split into smaller changes

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Remodel OriginTags for new Task Archive [5/5]

Added the search hints and their usage in the javascript typeahead,
complete with tests.

See the `init_search_selection` js function for details.

v4:
Split into smaller changes

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I06459423e9441f0fd783e59702fac6f191531169, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3253

(SIO-2243) Remodel OriginTags for new Task Archive [1/5]

This change improves the system of OriginTags to work better with the
idea of a dynamically generated task archive.
The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginInfoCategory - category specifying the OriginTag, e.g. 'year'
 - OriginInfoValue - allowed value for the category e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of tag and value, e.g. 'oi_2011'. For this reason the
values are validated to only contain lowercase letters, numbers, and
hyphens (no underscores).
This also means that OriginInfoValues should be descriptive on their
own without the category (i.e. for Round 1, 'r1' is good, '1' is bad)

The models store additional localized values for displaying neatly to
users in their respective Localization models - OriginTagLocalization,
OriginInfoCategoryLocalization, and OriginInfoValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize them in the usual way)

v4:
Split into smaller changes

Change-Id: I06459423e9441f0fd783e59702fac6f191531169
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Id56421faf942230c0b8abdc1a5521c4e6130f296, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3254

(SIO-2243) Remodel OriginTags for new Task Archive [2/5]

Added three new admins to manage the models (and their localizations) -
one for each model. Another two inline admins are added to the Problem
admin for managing the m2m relationship from the Problem side. For
Localization classes the LocalizationFormset is added and used.

v4:
Split into smaller changes

Change-Id: Id56421faf942230c0b8abdc1a5521c4e6130f296
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Remodel OriginTags for new Task Archive [3/5]

Added displaying the new OriginTags in the problemset.

v4:
Split into smaller changes

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Remodel OriginTags for new Task Archive [4/5]

Rebuilt the problemset search to make use of the new tags -
see the `search_problems_in_problemset` function.

The search hints will be readded in the next commit.

v4:
Split into smaller changes

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Remodel OriginTags for new Task Archive [5/5]

Added the search hints and their usage in the javascript typeahead,
complete with tests.

See the `init_search_selection` js function for details.

v4:
Split into smaller changes

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Remodel OriginTags for new Task Archive [3/5]

Added displaying the new OriginTags in the problemset.

v4:
Split into smaller changes

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Remodel OriginTags for new Task Archive [3/5]

Displayed the new OriginTags in the problemset.

v4:
Split into smaller changes

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Remodel OriginTags for new Task Archive [4/5]

Rebuilt the problemset search to make use of the new tags -
see the `search_problems_in_problemset` function.

The search hints will be readded in the next commit.

v4:
Split into smaller changes

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Remodel OriginTags for new Task Archive [5/5]

Added the search hints and their usage in the javascript typeahead,
complete with tests.

See the `init_search_selection` js function for details.

v4:
Split into smaller changes

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Remodel OriginTags for new Task Archive [3/5]

Added displaying the new OriginTags in the problemset

v4:
Split into smaller changes

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Remodel OriginTags for new Task Archive [4/5]

Rebuilt the problemset search to make use of the new tags -
see the `search_problems_in_problemset` function.

The search hints will be readded in the next commit.

v4:
Split into smaller changes

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Remodel OriginTags for new Task Archive [5/5]

Added the search hints and their usage in the javascript typeahead,
complete with tests.

See the `init_search_selection` js function for details.

v4:
Split into smaller changes

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I06459423e9441f0fd783e59702fac6f191531169, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3253

(SIO-2243) Remodel OriginTags

Part 1/5 of "Remodel OriginTags for new Task Archive"

Improved the system of OriginTags to work better with the idea of a
dynamically generated task archive. The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginInfoCategory - category specifying the OriginTag, e.g. 'year'
 - OriginInfoValue - allowed value for the category e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of tag and value, e.g. 'oi_2011'. For this reason the
values are validated to only contain lowercase letters, numbers, and
hyphens (no underscores).
This also means that OriginInfoValues should be descriptive on their
own without the category (i.e. for Round 1, 'r1' is good, '1' is bad)

The models store additional localized values for displaying neatly to
users in their respective Localization models - OriginTagLocalization,
OriginInfoCategoryLocalization, and OriginInfoValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize them in the usual way)

Change-Id: I06459423e9441f0fd783e59702fac6f191531169
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Id56421faf942230c0b8abdc1a5521c4e6130f296, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3254

(SIO-2243) Add admin for OriginTags and OriginInfo

Part 2/5 of "Remodel OriginTags for new Task Archive"

Added three new admins to manage the OriginTag, OriginInfoValue and
OriginInfoCategory models (and their respective Localization classes).
Another two inline admins are added to the Problem admin for managing
the m2m relationship from the Problem side, with a javascript script
to visually limit the number of sensible choices.

The Localization classes also use the new LocalizationFormset.

Change-Id: Id56421faf942230c0b8abdc1a5521c4e6130f296
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Display new OriginTags in the Problemset

Part 3/5 of "Remodel OriginTags for new Task Archive"

Added displaying the new OriginTags and OriginInfoValues in the
Problemset. The OriginInfoValues are grouped by their parent tag, and
are displayed next to it with just their value shown.

For instance in the Problemset it may look something like this:

    [pa] [2011] [r1] [a]

for OriginTag 'pa' and OriginInfoValues 'pa_2011', 'pa_r1', 'pa_a'.

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Rework the Problemset search

Part 4/5 of "Remodel OriginTags for new Task Archive"

Rebuilt the problemset search to make use of the new tags and generally
be more sensible, like using not using logical OR for every word - see
the `search_problems_in_problemset` function for details.

Removed the search hints, which will be readded in the next commit.

Replaced all of the old searching tests with ones that are a little
more compressed and less copy-paste'y.

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-21 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Rework search hints for the Problemset

Part 5/5 of "Remodel OriginTags for new Task Archive"

Readded the search hints and their usage in the javascript typeahead
to work nicely with the new search and Origintags.

Also added tests for the search hints.

See the `init_search_selection` js function for details.

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-22 ]
Change oioioi~master~Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3235

(SIO-2243) Display Task Archive dynamically

This changes uses the new OriginTags to display the Task Archive,
instead of just hardcoding all the problems in some page. After choosing
an OriginTag, all the problems tagged with it are displayed, grouped by
the tag's OriginInfoCategories. Filtering for specific OriginInfoValues
is also possible.

Also changed two global links to link to the new Task Archive instead
of a global portal.

v2:
Refactored and split task_archive_tag_view into helper functions.
Added tests for the Task Archive and filtering.

v3:
Changed visuals and function of filter buttons. Added tests.

Change-Id: Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3235

(SIO-2243) Display Task Archive dynamically

This changes uses the new OriginTags to display the Task Archive,
instead of just hardcoding all the problems in some page. After choosing
an OriginTag, all the problems tagged with it are displayed, grouped by
the tag's OriginInfoCategories. Filtering for specific OriginInfoValues
is also possible.

Also changed two global links to link to the new Task Archive instead
of a global portal.

v2:
Refactored and split task_archive_tag_view into helper functions.
Added tests for the Task Archive and filtering.

v3:
Changed visuals and function of filter buttons. Added tests.

Change-Id: Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3235

(SIO-2243) Display Task Archive dynamically

This changes uses the new OriginTags to display the Task Archive,
instead of just hardcoding all the problems in some page. After choosing
an OriginTag, all the problems tagged with it are displayed, grouped by
the tag's OriginInfoCategories. Filtering for specific OriginInfoValues
is also possible.

Also changed two global links to link to the new Task Archive instead
of a global portal.

v2:
Refactored and split task_archive_tag_view into helper functions.
Added tests for the Task Archive and filtering.

v3:
Changed visuals and function of filter buttons. Added tests.

Change-Id: Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I06459423e9441f0fd783e59702fac6f191531169, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3253

(SIO-2243) Remodel OriginTags

Part 1/5 of "Remodel OriginTags for new Task Archive"

Improved the system of OriginTags to work better with the idea of a
dynamically generated task archive. The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginInfoCategory - category specifying the OriginTag, e.g. 'year'
 - OriginInfoValue - allowed value for the category e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of tag and value, e.g. 'oi_2011'. For this reason the
values are validated to only contain lowercase letters, numbers, and
hyphens (no underscores).
This also means that OriginInfoValues should be descriptive on their
own without the category (i.e. for Round 1, 'r1' is good, '1' is bad)

The models store additional localized values for displaying neatly to
users in their respective Localization models - OriginTagLocalization,
OriginInfoCategoryLocalization, and OriginInfoValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize them in the usual way)

Change-Id: I06459423e9441f0fd783e59702fac6f191531169
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Id56421faf942230c0b8abdc1a5521c4e6130f296, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3254

(SIO-2243) Add admin for OriginTags and OriginInfo

Part 2/5 of "Remodel OriginTags for new Task Archive"

Added three new admins to manage the OriginTag, OriginInfoValue and
OriginInfoCategory models (and their respective Localization classes).
Another two inline admins are added to the Problem admin for managing
the m2m relationship from the Problem side, with a javascript script
to visually limit the number of sensible choices.

The Localization classes also use the new LocalizationFormset.

Change-Id: Id56421faf942230c0b8abdc1a5521c4e6130f296
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Display new OriginTags in the Problemset

Part 3/5 of "Remodel OriginTags for new Task Archive"

Added displaying the new OriginTags and OriginInfoValues in the
Problemset. The OriginInfoValues are grouped by their parent tag, and
are displayed next to it with just their value shown.

For instance in the Problemset it may look something like this:

    [pa] [2011] [r1] [a]

for OriginTag 'pa' and OriginInfoValues 'pa_2011', 'pa_r1', 'pa_a'.

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Rework the Problemset search

Part 4/5 of "Remodel OriginTags for new Task Archive"

Rebuilt the problemset search to make use of the new tags and generally
be more sensible, like using not using logical OR for every word - see
the `search_problems_in_problemset` function for details.

Removed the search hints, which will be readded in the next commit.

Replaced all of the old searching tests with ones that are a little
more compressed and less copy-paste'y.

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Rework search hints for the Problemset

Part 5/5 of "Remodel OriginTags for new Task Archive"

Readded the search hints and their usage in the javascript typeahead
to work nicely with the new search and Origintags.

Also added tests for the search hints.

See the `init_search_selection` js function for details.

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I06459423e9441f0fd783e59702fac6f191531169, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3253

(SIO-2243) Remodel OriginTags

Part 1/5 of "Remodel OriginTags for new Task Archive"

Improved the system of OriginTags to work better with the idea of a
dynamically generated task archive. The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginInfoCategory - category specifying the OriginTag, e.g. 'year'
 - OriginInfoValue - allowed value for the category e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of tag and value, e.g. 'oi_2011'. For this reason the
values are validated to only contain lowercase letters, numbers, and
hyphens (no underscores).
This also means that OriginInfoValues should be descriptive on their
own without the category (i.e. for Round 1, 'r1' is good, '1' is bad)

The models store additional localized values for displaying neatly to
users in their respective Localization models - OriginTagLocalization,
OriginInfoCategoryLocalization, and OriginInfoValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize them in the usual way)

Change-Id: I06459423e9441f0fd783e59702fac6f191531169
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Id56421faf942230c0b8abdc1a5521c4e6130f296, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3254

(SIO-2243) Add admin for OriginTags and OriginInfo

Part 2/5 of "Remodel OriginTags for new Task Archive"

Added three new admins to manage the OriginTag, OriginInfoValue and
OriginInfoCategory models (and their respective Localization classes).
Another two inline admins are added to the Problem admin for managing
the m2m relationship from the Problem side, with a javascript script
to visually limit the number of sensible choices.

The Localization classes also use the new LocalizationFormset.

Change-Id: Id56421faf942230c0b8abdc1a5521c4e6130f296
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Display new OriginTags in the Problemset

Part 3/5 of "Remodel OriginTags for new Task Archive"

Added displaying the new OriginTags and OriginInfoValues in the
Problemset. The OriginInfoValues are grouped by their parent tag, and
are displayed next to it with just their value shown.

For instance in the Problemset it may look something like this:

    [pa] [2011] [r1] [a]

for OriginTag 'pa' and OriginInfoValues 'pa_2011', 'pa_r1', 'pa_a'.

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Rework the Problemset search

Part 4/5 of "Remodel OriginTags for new Task Archive"

Rebuilt the problemset search to make use of the new tags and generally
be more sensible, like using not using logical OR for every word - see
the `search_problems_in_problemset` function for details.

Removed the search hints, which will be readded in the next commit.

Replaced all of the old searching tests with ones that are a little
more compressed and less copy-paste'y.

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-23 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Rework search hints for the Problemset

Part 5/5 of "Remodel OriginTags for new Task Archive"

Readded the search hints and their usage in the javascript typeahead
to work nicely with the new search and Origintags.

Also added tests for the search hints.

See the `init_search_selection` js function for details.

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I06459423e9441f0fd783e59702fac6f191531169, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3253

(SIO-2243) Remodel OriginTags

Part 1/5 of "Remodel OriginTags for new Task Archive"

Improved the system of OriginTags to work better with the idea of a
dynamically generated task archive. The changed system works as follows:

There are three models describing a task's origin:
 - OriginTag - for general origin information, e.g. 'oi'
 - OriginInfoCategory - category specifying the OriginTag, e.g. 'year'
 - OriginInfoValue - allowed value for the category e.g. '2011'

A complete 'tag' as it would appear for example in the problemset, is
a combination of tag and value, e.g. 'oi_2011'. For this reason the
values are validated to only contain lowercase letters, numbers, and
hyphens (no underscores).
This also means that OriginInfoValues should be descriptive on their
own without the category (i.e. for Round 1, 'r1' is good, '1' is bad)

The models store additional localized values for displaying neatly to
users in their respective Localization models - OriginTagLocalization,
OriginInfoCategoryLocalization, and OriginInfoValueLocalization.
(This is needed because the values are stored in the database, not in
 the code, so it is impossible to localize them in the usual way)

Change-Id: I06459423e9441f0fd783e59702fac6f191531169
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~Id56421faf942230c0b8abdc1a5521c4e6130f296, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3254

(SIO-2243) Add admin for OriginTags and OriginInfo

Part 2/5 of "Remodel OriginTags for new Task Archive"

Added three new admins to manage the OriginTag, OriginInfoValue and
OriginInfoCategory models (and their respective Localization classes).
Another two inline admins are added to the Problem admin for managing
the m2m relationship from the Problem side, with a javascript script
to visually limit the number of sensible choices.

The Localization classes also use the new LocalizationFormset.

Change-Id: Id56421faf942230c0b8abdc1a5521c4e6130f296
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3255

(SIO-2243) Display new OriginTags in the Problemset

Part 3/5 of "Remodel OriginTags for new Task Archive"

Added displaying the new OriginTags and OriginInfoValues in the
Problemset. The OriginInfoValues are grouped by their parent tag, and
are displayed next to it with just their value shown.

For instance in the Problemset it may look something like this:

    [pa] [2011] [r1] [a]

for OriginTag 'pa' and OriginInfoValues 'pa_2011', 'pa_r1', 'pa_a'.

Change-Id: Ifd46881d648b8f9cab4e7e0d370eb916f0a68b64
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~Ida064249855de7f4bd65d69c4b4fe7768b9201e5, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3256

(SIO-2243) Rework the Problemset search

Part 4/5 of "Remodel OriginTags for new Task Archive"

Rebuilt the problemset search to make use of the new tags and generally
be more sensible, like using not using logical OR for every word - see
the `search_problems_in_problemset` function for details.

Removed the search hints, which will be readded in the next commit.

Replaced all of the old searching tests with ones that are a little
more compressed and less copy-paste'y.

Change-Id: Ida064249855de7f4bd65d69c4b4fe7768b9201e5
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~I4df59c8712439cc6e0fdba241bfd55276d950b65, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3257

(SIO-2243) Rework search hints for the Problemset

Part 5/5 of "Remodel OriginTags for new Task Archive"

Readded the search hints and their usage in the javascript typeahead
to work nicely with the new search and Origintags.

Also added tests for the search hints.

See the `init_search_selection` js function for details.

Change-Id: I4df59c8712439cc6e0fdba241bfd55276d950b65
Comment by Gerrit Gerrit [ 2019-06-24 ]
Change oioioi~master~Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3235

(SIO-2243) Display Task Archive dynamically

This changes uses the new OriginTags to display the Task Archive,
instead of just hardcoding all the problems in some page. After choosing
an OriginTag, all the problems tagged with it are displayed, grouped by
the tag's OriginInfoCategories. Filtering for specific OriginInfoValues
is also possible.

Also changed two global links to link to the new Task Archive instead
of a global portal.

v2:
Refactored and split task_archive_tag_view into helper functions.
Added tests for the Task Archive and filtering.

v3:
Changed visuals and function of filter buttons. Added tests.

Change-Id: Ie87a3fbb534ae1fe56cb162b19cab4ed7f39aaaa




[SIO-2242] Display statistics in Problemset Created: 2019-05-12  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jakub Bartmiński Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-05-12 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2242) Display statistics in Problemset

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.

v2:
 - Stopped creating ProblemStatistics on Problem post_create, accounted
   for null problem_statistics instead.
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

v3:
 - Made problemset columns proportional using bootstrap.
 - Fixed the loading symbol when adding problem to contest.
 - Refactored functions preparing the problemset problem pool.
 - Made the problemset preserve any get parameter on sorting, not just
   the query. Added a test for it.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-05-12 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2242) Display statistics in Problemset

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.

v2:
 - Stopped creating ProblemStatistics on Problem post_create, accounted
   for null problem_statistics instead.
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

v3:
 - Made problemset columns proportional using bootstrap.
 - Fixed the loading symbol when adding problem to contest.
 - Refactored functions preparing the problemset problem pool.
 - Made the problemset preserve any get parameter on sorting, not just
   the query. Added a test for it.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2242) Display statistics in Problemset

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.

v2:
 - Stopped creating ProblemStatistics on Problem post_create, accounted
   for null problem_statistics instead.
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

v3:
 - Made problemset columns proportional using bootstrap.
 - Fixed the loading symbol when adding problem to contest.
 - Refactored functions preparing the problemset problem pool.
 - Made the problemset preserve any get parameter on sorting, not just
   the query. Added a test for it.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 19
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2242) Display statistics in Problemset

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.

v2:
 - Stopped creating ProblemStatistics on Problem post_create, accounted
   for null problem_statistics instead.
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

v3:
 - Made problemset columns proportional using bootstrap.
 - Fixed the loading symbol when adding problem to contest.
 - Refactored functions preparing the problemset problem pool.
 - Made the problemset preserve any get parameter on sorting, not just
   the query. Added a test for it.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b




[SIO-2241] Add search to list view of teacher's usergroups Created: 2019-05-11  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Marek Żochowski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: groups, tag1





[SIO-2240] Clean up problemset's main layout Created: 2019-05-10  Updated: 2020-03-3  Resolved: 2019-05-14

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Piotr Wojtczak Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Make the main page of the problemset more appealing and easy to read.

 Comments   
Comment by Gerrit Gerrit [ 2019-05-10 ]
Change oioioi~master~I9030af78bd010708212545588bd6c9ba2136b9cf, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3225

(SIO-2240) Clean up problemset's main layout

This commit consists of a few small changes to the overall design:
1. Removed titles in problemset's subpages in favor of highlighted headers
2. Set navbar links to be the same ones that are on the main page
3. Removed upper pagination bar and spaced things out a little

Change-Id: I9030af78bd010708212545588bd6c9ba2136b9cf
Comment by Gerrit Gerrit [ 2019-05-11 ]
Change oioioi~master~I9030af78bd010708212545588bd6c9ba2136b9cf, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3225

(SIO-2240) Clean up problemset's main layout

This commit consists of a few small changes to the overall design:
1. Removed titles in problemset's subpages in favor of highlighted headers
2. Set navbar links to be the same ones that are on the main page
3. Removed upper pagination bar and spaced things out a little

Change-Id: I9030af78bd010708212545588bd6c9ba2136b9cf
Comment by Gerrit Gerrit [ 2019-05-11 ]
Change oioioi~master~I9030af78bd010708212545588bd6c9ba2136b9cf, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3225

(SIO-2240) Clean up problemset's main layout

This commit consists of a few small changes to the overall design:
1. Removed titles in problemset's subpages in favor of highlighted headers
2. Set navbar links to be the same ones that are on the main page
3. Removed upper pagination bar and spaced things out a little

The second one on the list also features a rework to the way the app handles navbar links.
Now it's a separate block in the main template with a new subtemplate that, using any MenuRegistry,
creates the navigation bar links.

Change-Id: I9030af78bd010708212545588bd6c9ba2136b9cf
Comment by Gerrit Gerrit [ 2019-05-11 ]
Change oioioi~master~I9030af78bd010708212545588bd6c9ba2136b9cf, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3225

(SIO-2240) Clean up problemset's main layout

This commit consists of a few small changes to the overall design:
1. Removed titles in problemset's subpages in favor of highlighted headers
2. Set navbar links to be the same ones that are on the main page
3. Removed upper pagination bar and spaced things out a little

The second one on the list also features a rework to the way the app handles navbar links.
Now it's a separate block in the main template with a new subtemplate that, using any MenuRegistry,
creates the navigation bar links.

Also removed the hardcoded Task Archive url.

Change-Id: I9030af78bd010708212545588bd6c9ba2136b9cf




[SIO-2239] Fix JS in members view in teacher app Created: 2019-05-10  Updated: 2020-03-3  Resolved: 2019-05-13

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
'Select all' and 'Select none' buttons are currently not working.

 Comments   
Comment by Gerrit Gerrit [ 2019-05-10 ]
Change oioioi~master~Ic4bf55d42b89eaaa887d0b7382d06d55eabdb3fe, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3223

(SIO-2239) Fix JS in members view in teacher app

Change-Id: Ic4bf55d42b89eaaa887d0b7382d06d55eabdb3fe




[SIO-2238] Add tests for download_sandboxes management command Created: 2019-05-9  Updated: 2021-06-24

Status: New
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Michalina Sidor Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: tag1





[SIO-2237] Move su urls to noncontest_patterns Created: 2019-05-7  Updated: 2020-03-3  Resolved: 2019-05-13

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Currently, su url are in urlpatterns, which causes redirect when used on noncontest pages. Because redirect uses GET as a request method, such action throws 405 error response code. Move su urls to noncontest_patterns should fix this problem.

 Comments   
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~I974b159ba14246fa727d10083bfcdf5447641c9e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3222

(SIO-2237) Move su url to noncontest_patterns

Change-Id: I974b159ba14246fa727d10083bfcdf5447641c9e




[SIO-2236] Remove current_app argument from template related APIs Created: 2019-05-6  Updated: 2020-03-3  Resolved: 2019-05-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
In Django 1.10 current_app argument of template relared APIs was removed.
It should be provided in request.current_app instead.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.8/#current-app-argument-of-template-related-apis

 Comments   
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~Ibdfaf74db99695d31571535275789bc11e5782a4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3221

(SIO-2236) Remove current_app argument from template related APIs

Change-Id: Ibdfaf74db99695d31571535275789bc11e5782a4




Fix Django deprecation warnings on 1.10 (SIO-2155)

[SIO-2235] Fix test_portals.json fixture Created: 2019-05-1  Updated: 2020-03-3  Resolved: 2019-05-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
Direct assignment to many-to-many relation is deprecated in Django 1.10.
This breaks one of the portals' fixtures. Because we are not planning to upgrade Django any time soon, this issue is meant to address this deprecation only in the following fixture: oioioi/portals/fixtures/test_portals.json

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#direct-assignment-to-a-reverse-foreign-key-or-many-to-many-relation

 Comments   
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for warning generated by kombu package.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for warning generated by kombu package.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for 'on_delete' warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for 'on_delete' warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-2 ]
Change oioioi~master~Ic96d65f7ff9c79a8915e2ea0185252e589001492, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3213

(SIO-2235) Fix test_portals.json fixture

Change-Id: Ic96d65f7ff9c79a8915e2ea0185252e589001492
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef




Fix Django deprecation warnings on 1.10 (SIO-2155)

[SIO-2234] Change use of User.is_authenticated() and User.is_anonymous() methods Created: 2019-05-1  Updated: 2020-03-3  Resolved: 2019-05-7

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
From Django 1.10 the aforementioned methods are deprecated and converted into properties of AbstractBaseUser and AnonymousUser.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#using-user-is-authenticated-and-user-is-anonymous-as-methods

 Comments   
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for warning generated by kombu package.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for warning generated by kombu package.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for 'on_delete' warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for 'on_delete' warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-2 ]
Change oioioi~master~I396273bee783a75595a480595da236818ed56e40, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3212

(SIO-2234) Change use of User.is_authenticated() and User.is_anonymous() methods

Change-Id: I396273bee783a75595a480595da236818ed56e40
Comment by Gerrit Gerrit [ 2019-05-3 ]
Change oioioi~master~I396273bee783a75595a480595da236818ed56e40, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3212

(SIO-2234) Change use of User.is_authenticated() and User.is_anonymous() methods

Change-Id: I396273bee783a75595a480595da236818ed56e40
Comment by Gerrit Gerrit [ 2019-05-4 ]
Change oioioi~master~I396273bee783a75595a480595da236818ed56e40, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3212

(SIO-2234) Change use of User.is_authenticated() and User.is_anonymous() methods

Change-Id: I396273bee783a75595a480595da236818ed56e40




Fix Django deprecation warnings on 1.10 (SIO-2155)

[SIO-2233] Adapt old-style settings.MIDDLEWARE_CLASSES to the new version Created: 2019-05-1  Updated: 2020-03-3  Resolved: 2019-05-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Minor
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
In Django 1.10 "old-style" middleware that uses settings.MIDDLEWARE_CLASSES is deprecated. We must adapt it to the new style or use new MIDDLEWARE setting.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#id3 (12th dot)

 Comments   
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for warning generated by kombu package.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for warning generated by kombu package.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for 'on_delete' warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for 'on_delete' warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-2 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-2 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-9 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-9 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-10 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-12 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-14 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-17 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f
Comment by Gerrit Gerrit [ 2019-05-20 ]
Change oioioi~master~I4a66cb476e533bc76662d79c7beba6915b128b4f, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3214

(SIO-2233) Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Slighty new semantic of MIDDLEWARE changed behaviour of
SuFirstTimeRedirectionMiddleware, but it seems to
work in an acceptable way.

Fixed one test in oioioi/base.

Added minimal version requirements for dj-pagination,
django-otp and django-debug-toolbar.

Change-Id: I4a66cb476e533bc76662d79c7beba6915b128b4f




Fix Django deprecation warnings on 1.10 (SIO-2155)

[SIO-2232] Set the app_name attribute in urls modules strikes back Created: 2019-05-1  Updated: 2020-03-3  Resolved: 2019-05-13

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Minor
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
The same deprecation warnings were fixed in SIO-2162, but with the arrival of API they are back.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.9/#passing-a-3-tuple-or-an-app-name-to-include

 Comments   
Comment by Marek Żochowski [ 2019-05-1 ]
To fix this upgrade of django-rest-framework to version >= 3.7.1 is needed.
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~Ib77a76639046551fcff19e68a268f9d040c2f7ee, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3220

(SIO-2232) Set the app_name attribute in urls modules strikes back

This change upgrades djangorestframework to version 3.8.2

Change-Id: Ib77a76639046551fcff19e68a268f9d040c2f7ee
Comment by Gerrit Gerrit [ 2019-05-12 ]
Change oioioi~master~Ib77a76639046551fcff19e68a268f9d040c2f7ee, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3220

(SIO-2232) Set the app_name attribute in urls modules strikes back

This change upgrades djangorestframework to version 3.8.2

Change-Id: Ib77a76639046551fcff19e68a268f9d040c2f7ee




[SIO-2231] TypeError: exception() got an unexpected keyword argument 'extra' Created: 2019-05-1  Updated: 2020-03-3  Resolved: 2019-05-1

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Won't Fix Votes: 0
Labels: None
Environment: Python 2.7.3


 Description   
When uploading a task package, and the package fails to upload, instead of a stacktrace you get "TypeError: exception() got an unexpected keyword argument 'extra'"

 Comments   
Comment by Wojciech Dubiel [ 2019-05-1 ]
This is because on older versions of Python 2.7, `logging.Logger.exception()` - which is used in `oioioi/problems/models.py` to report package upload failure - doesn't support the `extra` kwarg, unlike all the other logging methods. We use `extra={'omit_sentry': True}` so that exceptions caused by invalid problem packages don't show up in Sentry.

In Python 2.7.13, `exception()` accepts `extra` kwarg like all the other logging methods, so this problem doesn't occur.
Comment by Wojciech Dubiel [ 2019-05-1 ]
Resolved this as WontFix. If there's anyone affected who really can't update to newer python, maybe we should reopen this.




[SIO-2230] vagrant provisioning zeus.log path issues Created: 2019-04-6  Updated: 2020-03-3  Resolved: 2019-05-7

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jakub Bartmiński Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None
Environment: vagrant


 Description   
I ran into a problem when trying to provision a new vagrant environment. It fails on multiple steps when running manage.py and the following error keeps appearing:

Unable to configure handler 'zeus_file': [Errno 2] No such file or directory: '/sio2/deployment/deployment/logs/zeus.log'

The path for some reason is obviously erroneous. The machine later boots up, but sio is not working. Creating an empty file under this path and manually downloading sandboxes circumvents this.

 Comments   
Comment by Marek Żochowski [ 2019-05-1 ]
This error was caused by the change in SIO-2192. During migration from optparse to argparse positional argument (deployment directory) of oioioi-create-config was left as given, instead of converting it to absolute path.
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I52a99d54b6c39f5b2c2303d9a78b02410f171678, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3210

(SIO-2230) Vagrant provisioning zeus.log path issues

Fixed problem with vagrant default settings configuration and
oioioi-create-config script.

Change-Id: I52a99d54b6c39f5b2c2303d9a78b02410f171678




Fix test failures on Django 1.10 (SIO-2225)

[SIO-2229] String 'y' is no longer treated as boolean True Created: 2019-04-5  Updated: 2020-03-3  Resolved: 2019-04-15

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
Example error:

______________ TestOpenParticipantsRegistration.test_contest_info ______________

self = <oioioi.participants.tests.TestOpenParticipantsRegistration testMethod=test_contest_info>

    def test_contest_info(self):
        contest = Contest.objects.get()
        user = User.objects.get(username='test_user')
        p = Participant(contest=contest, user=user)
        p.save()
> OpenRegistration(participant_id=p.id, **self.reg_data).save()

oioioi/participants/tests.py:252:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../virtualenv/lib/python2.7/site-packages/django/db/models/base.py:796: in save
    force_update=force_update, update_fields=update_fields)
../virtualenv/lib/python2.7/site-packages/django/db/models/base.py:824: in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
../virtualenv/lib/python2.7/site-packages/django/db/models/base.py:908: in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
../virtualenv/lib/python2.7/site-packages/django/db/models/base.py:947: in _do_insert
    using=using, raw=raw)
../virtualenv/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
../virtualenv/lib/python2.7/site-packages/django/db/models/query.py:1045: in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
../virtualenv/lib/python2.7/site-packages/django/db/models/sql/compiler.py:1053: in execute_sql
    for sql, params in self.as_sql():
../virtualenv/lib/python2.7/site-packages/django/db/models/sql/compiler.py:1006: in as_sql
    for obj in self.query.objs
../virtualenv/lib/python2.7/site-packages/django/db/models/sql/compiler.py:945: in prepare_value
    value = field.get_db_prep_save(value, connection=self.connection)
../virtualenv/lib/python2.7/site-packages/django/db/models/fields/__init__.py:755: in get_db_prep_save
    prepared=False)
../virtualenv/lib/python2.7/site-packages/django/db/models/fields/__init__.py:747: in get_db_prep_value
    value = self.get_prep_value(value)
../virtualenv/lib/python2.7/site-packages/django/db/models/fields/__init__.py:1025: in get_prep_value
    return self.to_python(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <django.db.models.fields.BooleanField: terms_accepted>, value = 'y'

    def to_python(self, value):
        if value in (True, False):
            # if value is 1 or 0 than it's equal to True or False, but we want
            # to return a true bool for semantic reasons.
            return bool(value)
        if value in ('t', 'True', '1'):
            return True
        if value in ('f', 'False', '0'):
            return False
        raise exceptions.ValidationError(
            self.error_messages['invalid'],
            code='invalid',
> params={'value': value},
        )
E ValidationError: [u"'y' value must be either True or False."]

../virtualenv/lib/python2.7/site-packages/django/db/models/fields/__init__.py:1018: ValidationError

 Comments   
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602




Fix test failures on Django 1.10 (SIO-2225)

[SIO-2228] Update html strings in TestLoginChange Created: 2019-04-5  Updated: 2020-03-3  Resolved: 2019-04-15

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
Example issue:

self = <oioioi.base.tests.tests.TestLoginChange testMethod=test_can_change_login_from_invalid>

    def test_can_change_login_from_invalid(self):
        for l in self.invalid_logins:
            self.user.username = l
            self.user.save()
    
            response = self.client.get(self.url_edit_profile)
            # The html strings underneath may change with any django upgrade.
            self.assertIn('<input class="form-control" id="id_username" '
                    'maxlength="30" name="username" type="text" '
> 'value="%s" />' % l, response.content)
E AssertionError:

 Comments   
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602




Fix test failures on Django 1.10 (SIO-2225)

[SIO-2227] Some manage commands fail Created: 2019-04-5  Updated: 2020-03-3  Resolved: 2019-04-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
Following and similar issues:

    def test_import_users(self):
        user_count_before = User.objects.count()
        filename = os.path.join(basedir, 'files', 'users.csv')
        manager = import_users.Command()
> manager.run_from_argv(['manage.py', 'import_users', filename])

oioioi/base/tests/tests.py:753:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../virtualenv/lib/python2.7/site-packages/django/core/management/base.py:288: in run_from_argv
    options = parser.parse_args(argv[2:])
../virtualenv/lib/python2.7/site-packages/django/core/management/base.py:58: in parse_args
    return super(CommandParser, self).parse_args(args, namespace)
../../../../../.pyenv/versions/2.7.14/lib/python2.7/argparse.py:1704: in parse_args
    self.error(msg % ' '.join(argv))
../virtualenv/lib/python2.7/site-packages/django/core/management/base.py:62: in error
    super(CommandParser, self).error(message)
../../../../../.pyenv/versions/2.7.14/lib/python2.7/argparse.py:2374: in error
    self.exit(2, _('%s: error: %s\n') % (self.prog, message))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = CommandParser(prog=u'manage.py import_users', usage=None, description=u'Create...lass=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2
message = 'manage.py import_users: error: unrecognized arguments: /home/users/sio2devel/.hudson/jobs/oioioi-gerrit-unittests/workspace/ src/oioioi/base/tests/files/users.csv

 Comments   
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602




Fix test failures on Django 1.10 (SIO-2225)

[SIO-2226] Logout returns redirect now Created: 2019-04-5  Updated: 2020-03-3  Resolved: 2019-04-15

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
response = self.client.post(logout_url)
> self.assertEqual(200, response.status_code)
E AssertionError: 200 != 302

oioioi/base/tests/tests.py:112: AssertionError

 Comments   
Comment by Artur Puzio [ 2019-04-5 ]
Other example:

________________ TestMaintenanceMode.test_logged_user_redirect _________________

self = <oioioi.maintenancemode.tests.TestMaintenanceMode testMethod=test_logged_user_redirect>

    def test_logged_user_redirect(self):
        set_maintenance_mode(True, 'test message')
        self.assertTrue(self.client.login(username='test_user'))
        response = self.client.get('/', follow=True)
        self.assertRedirects(response, reverse('maintenance'))
        self.assertContains(response, 'test message')
        response = self.client.post(reverse('logout'), {
            'user': 'test_user',
            'backend': 'django.contrib.auth.backends.ModelBackend',
        })
> self.assertIn('been logged out', response.content)
E AssertionError: 'been logged out' not found in ''

oioioi/maintenancemode/tests.py:41: AssertionError
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602




[SIO-2225] Fix test failures on Django 1.10 Created: 2019-04-4  Updated: 2020-03-3  Resolved: 2019-05-27

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration

Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2226 Logout returns redirect now Sub-task Closed Szymon Acedański  
SIO-2227 Some manage commands fail Sub-task Closed Szymon Acedański  
SIO-2228 Update html strings in TestLoginChange Sub-task Closed Szymon Acedański  
SIO-2229 String 'y' is no longer treated as bo... Sub-task Closed Szymon Acedański  

 Description   
Relevant hudson report: https://hudson.sio2project.mimuw.edu.pl/job/oioioi-gerrit-unittests/6836/console




[SIO-2224] Investigate include('registration.urls') is deprecated warning Created: 2019-04-4  Updated: 2021-03-14

Status: Open
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Artur Puzio Assignee: Jakub Moliński
Resolution: Unresolved Votes: 0
Labels: None


 Description   
oioioi/base/tests/tests.py::TestFields::test_dotted_name_field
  /home/ert/PycharmProjects/oioioi/venv/lib/python2.7/site- packages/registration/urls.py:15: DeprecationWarning: include('registration.urls') is deprecated; use include('registration.backends.default.urls') instead.
    DeprecationWarning)





[SIO-2223] Investigate Argument <type 'str'> is not an unicode object warning Created: 2019-04-4  Updated: 2021-04-13  Resolved: 2021-04-13

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Artur Puzio Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None


 Description   
oioioi/pa/tests.py::TestPADivisions::test_prolem_upload
  /home/ert/PycharmProjects/oioioi/venv/lib/python2.7/site- packages/unidecode/__init__.py:46: RuntimeWarning: Argument <type 'str'> is not an unicode object. Passing an encoded string will likely have unexpected results.
    _warn_if_not_unicode(string)


 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




Add groups (SIO-2213)

[SIO-2221] Add flow of users between contests and groups Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-08-5

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups


 Description   
In this ticket we want to add ability to attach/detach groups to/from contest. We will also add easy way to convert current contest members into one new usergroup.

 Comments   
Comment by Gerrit Gerrit [ 2019-05-16 ]
Change oioioi~master~Ibf14268253ce4cd4c651febc16af367385188e81, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3232

(SIO-2221) Implement adding user group members to contest

Change-Id: Ibf14268253ce4cd4c651febc16af367385188e81
Comment by Gerrit Gerrit [ 2019-05-20 ]
Change oioioi~master~Ibf14268253ce4cd4c651febc16af367385188e81, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3232

(SIO-2221) Implement adding user group members to contest

Change-Id: Ibf14268253ce4cd4c651febc16af367385188e81
Comment by Gerrit Gerrit [ 2019-05-20 ]
Change oioioi~master~Ibf14268253ce4cd4c651febc16af367385188e81, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3232

(SIO-2221) Implement adding user group members to contest

Change-Id: Ibf14268253ce4cd4c651febc16af367385188e81
Comment by Gerrit Gerrit [ 2019-05-21 ]
Change oioioi~master~Ibf14268253ce4cd4c651febc16af367385188e81, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3232

(SIO-2221) Implement adding user group members to contest

Change-Id: Ibf14268253ce4cd4c651febc16af367385188e81
Comment by Zuzanna Opała [ 2019-05-21 ]
Tasks:
- simple ui
- relacja grupa-konkurs (wiele do wielu)
- można usuwać ownerów
- opcja stworzenia grupy z membersów
- nowy view pupilsów
- dodawanie do grupy powoduje dodanie do konkursów
- usuwanie z grupy pytanie o usuniecie z contestów
- edycja registration controller
- update grupy z contestu
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I1768cbc8b1a163edab383c2d1f437f083a71fbf0, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3267

(SIO-2221) Add flow of users between contests and groups

Change-Id: I1768cbc8b1a163edab383c2d1f437f083a71fbf0
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I1768cbc8b1a163edab383c2d1f437f083a71fbf0, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3267

(SIO-2221) Add flow of users between contests and groups

Change-Id: I1768cbc8b1a163edab383c2d1f437f083a71fbf0
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I1768cbc8b1a163edab383c2d1f437f083a71fbf0, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3267

(SIO-2221) Add flow of users between contests and groups

Change-Id: I1768cbc8b1a163edab383c2d1f437f083a71fbf0
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I1768cbc8b1a163edab383c2d1f437f083a71fbf0, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3267

(SIO-2221) Add flow of users between contests and groups

Change-Id: I1768cbc8b1a163edab383c2d1f437f083a71fbf0
Comment by Gerrit Gerrit [ 2019-06-25 ]
Change oioioi~master~I1768cbc8b1a163edab383c2d1f437f083a71fbf0, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3267

(SIO-2221) Add flow of users between contests and groups

Change-Id: I1768cbc8b1a163edab383c2d1f437f083a71fbf0
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I1768cbc8b1a163edab383c2d1f437f083a71fbf0, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3267

(SIO-2221) Add flow of users between contests and groups

Change-Id: I1768cbc8b1a163edab383c2d1f437f083a71fbf0
Comment by Gerrit Gerrit [ 2019-06-26 ]
Change oioioi~master~I1768cbc8b1a163edab383c2d1f437f083a71fbf0, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3267

(SIO-2221) Add flow of users between contests and groups

Change-Id: I1768cbc8b1a163edab383c2d1f437f083a71fbf0




[SIO-2220] Check if copying users from contest to contest works Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-05-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups


 Description   
Currently in pupils tab in contest menu teachers can copy users from another contest (button "Add from other contest"). In this ticket one should check if such feature works.

 Comments   
Comment by Marek Żochowski [ 2019-05-4 ]
It seems that teacher can copy ALL pupils from another contest in which he has also teacher status. This feature does not overwrite, but adds missing pupils.




[SIO-2219] Create some useful API endpoints Created: 2019-04-2  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None

Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2246 API endpoint for solution submission Sub-task Resolved Wojciech Dubiel  
SIO-2267 API endpoint for uploading and reuplo... Sub-task Closed Szymon Acedański  

 Description   
Maybe also some developer guide

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2218] Add sharing your groups Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-06-22

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups


 Description   
This feature should be implemented in the same manner as adding users to contest (by link).

 Comments   
Comment by Gerrit Gerrit [ 2019-05-12 ]
Change oioioi~master~Ida62777806290dff335ea49f528f64e62152be46, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3229

(SIO-2218) Add sharing your groups

WIP: lack of tests.

Change-Id: Ida62777806290dff335ea49f528f64e62152be46
Comment by Gerrit Gerrit [ 2019-05-12 ]
Change oioioi~master~Ida62777806290dff335ea49f528f64e62152be46, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3229

(SIO-2218) Add sharing your groups

Change-Id: Ida62777806290dff335ea49f528f64e62152be46
Comment by Gerrit Gerrit [ 2019-05-12 ]
Change oioioi~master~Ida62777806290dff335ea49f528f64e62152be46, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3229

(SIO-2218) Add sharing your groups

Change-Id: Ida62777806290dff335ea49f528f64e62152be46
Comment by Gerrit Gerrit [ 2019-05-12 ]
Change oioioi~master~Ida62777806290dff335ea49f528f64e62152be46, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3229

(SIO-2218) Add sharing your groups

Change-Id: Ida62777806290dff335ea49f528f64e62152be46
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~Ida62777806290dff335ea49f528f64e62152be46, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3229

(SIO-2218) Add sharing your groups

Fixed migration no. 2

Change-Id: Ida62777806290dff335ea49f528f64e62152be46
Comment by Marek Żochowski [ 2019-06-26 ]
Ta zmiana została zcommitowana wraz z https://jira.sio2project.mimuw.edu.pl/browse/SIO-2213 w commicie: https://gerrit.sio2project.mimuw.edu.pl/#/c/3219/




Add groups (SIO-2213)

[SIO-2217] Add detail view for group Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-06-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups


 Description   
In this ticket we will add detail view for group and options to remove users from the group and add users by link (the same as adding users to contests).




Add groups (SIO-2213)

[SIO-2216] Create Group model Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-04-30

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups





Add groups (SIO-2213)

[SIO-2215] Add creation and deletion of groups Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-06-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups


 Description   
Only teachers and superadmins can add and erase groups.




Add groups (SIO-2213)

[SIO-2214] Add groups list view for teachers and superadmins Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-06-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups





[SIO-2213] Add groups Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-08-5

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: groups

Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2214 Add groups list view for teachers and... Sub-task Closed Szymon Acedański  
SIO-2215 Add creation and deletion of groups Sub-task Closed Szymon Acedański  
SIO-2216 Create Group model Sub-task Closed Szymon Acedański  
SIO-2217 Add detail view for group Sub-task Closed Szymon Acedański  
SIO-2221 Add flow of users between contests an... Sub-task Closed Szymon Acedański  
SIO-2254 Add link to usergroups list in simple... Sub-task Closed Szymon Acedański  
SIO-2270 Adjust teachers' pupils site to use u... Sub-task Closed Szymon Acedański  

 Description   
Add group of users that would enable teacher to add them easily to contests.

 Comments   
Comment by Marek Żochowski [ 2019-06-26 ]
Odpowiednia zmiana w gerricie, dotyczy następujących podzadań:

Add groups list view for teachers and superadmins
Add creation and deletion of groups
Create Group model
Add detail view for group

Oraz jest połączona ze zmianą: https://jira.sio2project.mimuw.edu.pl/browse/SIO-2218

Link do zmiany: https://gerrit.sio2project.mimuw.edu.pl/#/c/3219/




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2212] Remove AlterModelManagers from migrations Created: 2019-04-2  Updated: 2020-03-3  Resolved: 2019-04-4

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#backwards-incompatible-changes-in-1-10 (29th dot)

 Comments   
Comment by Gerrit Gerrit [ 2019-04-2 ]
Change oioioi~master~I0ce5caa6a64fafba843ece0466d32a5f717eb510, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3181

(SIO-2212) Remove AlterModelManagers migrations

Previously a migrations.AlterModelManagers was used to change
_base_manager attribute, but this attribute was removed on Django1.10
and such migration now errors. This migration never generated any SQL
query.

Change-Id: I0ce5caa6a64fafba843ece0466d32a5f717eb510
Comment by Gerrit Gerrit [ 2019-04-2 ]
Change oioioi~master~I0ce5caa6a64fafba843ece0466d32a5f717eb510, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3181

(SIO-2212) Remove AlterModelManagers migrations

Previously a migrations.AlterModelManagers was used to change
_base_manager attribute, but this attribute was removed on Django1.10
and such migration now errors. This migration never generated any SQL
query.

Change-Id: I0ce5caa6a64fafba843ece0466d32a5f717eb510




[SIO-2211] Even the admins cannot see codes of other people who submitted outside of contest Created: 2019-03-26  Updated: 2020-03-3  Resolved: 2019-12-15

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2019/20 Sprint 1

Type: Bug Priority: Minor
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy, tag1

TAG Developer: Michał Niedziółka

 Description   
You can see the report, but when you click to see the source code, you get 403.

 Comments   
Comment by Gerrit Gerrit [ 2019-11-13 ]
Change oioioi~master~I1bf7f0518dd5cbeec944ef522e5618bb63ebe70b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3354

SIO-2211 Fix can_see_source in ProblemController

Change-Id: I1bf7f0518dd5cbeec944ef522e5618bb63ebe70b
Comment by Gerrit Gerrit [ 2019-11-18 ]
Change oioioi~master~I1bf7f0518dd5cbeec944ef522e5618bb63ebe70b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3354

SIO-2211 Fix can_see_source in ProblemController

Change-Id: I1bf7f0518dd5cbeec944ef522e5618bb63ebe70b
Comment by Gerrit Gerrit [ 2019-11-18 ]
Change oioioi~master~Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3355

SIO-2211 Fix can_see_source in ProblemController

Change-Id: Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51
Comment by Gerrit Gerrit [ 2019-12-2 ]
Change oioioi~master~Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3355

SIO-2211 Fix can_see_source in ProblemController

Change-Id: Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3355

SIO-2211 Fix can_see_source in ProblemController

Change-Id: Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51
Comment by Gerrit Gerrit [ 2019-12-4 ]
Change oioioi~master~Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3355

SIO-2211 Fix can_see_source in ProblemController

Change-Id: Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51
Comment by Gerrit Gerrit [ 2019-12-5 ]
Change oioioi~master~Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3355

SIO-2211 Fix can_see_source in ProblemController

Change-Id: Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51
Comment by Gerrit Gerrit [ 2019-12-9 ]
Change oioioi~master~Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3355

SIO-2211 Fix can_see_source in ProblemController

Change-Id: Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51
Comment by Gerrit Gerrit [ 2019-12-9 ]
Change oioioi~master~Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3355

SIO-2211 Fix can_see_source in ProblemController

Change-Id: Ic9f69b7dc4d8431067e6a92bd547cce27af9fd51




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2210] Replace SimpleTestCase.url with @override_settings Created: 2019-03-25  Updated: 2020-03-3  Resolved: 2019-03-28

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango110Warning: SimpleTestCase.urls is deprecated and will be removed in Django 1.10. Use @override_settings(ROOT_URLCONF=...) in TestParticipantsExclusiveContestsMiddlewareMixin instead.

This warning occurs in:
- oioioi/participants/tests.py
- oioioi/contests/tests/tests.py
- oioioi/contestexcl/tests.py

Docs: https://docs.djangoproject.com/en/2.1/releases/1.8/#django-test-simpletestcase-urls

 Comments   
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~Ifb32978c6d679d5203206c29521dfe04c067a055, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3172

(SIO-2210) Replace SimpleTestCase.url with @override_settings

Change-Id: Ifb32978c6d679d5203206c29521dfe04c067a055




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2209] Use DISABLE_PANELS config instead of INTERCEPT_REDIRECTS Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-04-1

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
debug_toolbar: DeprecationWarning: INTERCEPT_REDIRECTS is deprecated. Please use the DISABLE_PANELS config in the DEBUG_TOOLBAR_CONFIG setting.

 Comments   
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I717513f28e93269b56af07b6dd12b85d42fe1f21, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3174

(SIO-2209) Remove django-debug-toolbar configuration override

INTERCEPT_REDIRECTS option is deprecated and awaiting removal
(for quite a long time actually). But even at the point it was
deprecated, the value used as a default by the package's maintainers
was consistent with our custom default. Therefore, no change to
django-debug-toolbar settings is required anymore.

Change-Id: I717513f28e93269b56af07b6dd12b85d42fe1f21
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I717513f28e93269b56af07b6dd12b85d42fe1f21, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3174

(SIO-2209) Remove django-debug-toolbar configuration override

INTERCEPT_REDIRECTS option is deprecated and awaiting removal
(for quite a long time actually). But even at the point it was
deprecated, the value used as a default by the package's maintainers
was consistent with our custom default. Therefore, no change to
django-debug-toolbar settings is required anymore.

Change-Id: I717513f28e93269b56af07b6dd12b85d42fe1f21




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2208] Remove usage of deprecated unoficial APIs Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-04-1

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango110Warning: 'get_all_related_objects is an unofficial API that has been deprecated. You may be able to replace it with 'get_fields
RemovedInDjango110Warning: 'get_field_by_name is an unofficial API that has been deprecated. You may be able to replace it with 'get_field

 Comments   
Comment by Artur Puzio [ 2019-03-26 ]
https://docs.djangoproject.com/en/2.1/ref/models/meta/#migrating-old-meta-api
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I285a08058fbac686755a1af7d530498b8302821b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3173

(SIO-2208) Remove usage of deprecated _meta API

get_all_related_objects and get_field_by_name were considered unofficial
API and they were removed in Django 1.10.

Change-Id: I285a08058fbac686755a1af7d530498b8302821b
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I285a08058fbac686755a1af7d530498b8302821b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3173

(SIO-2208) Remove usage of deprecated _meta API

get_all_related_objects and get_field_by_name were considered unofficial
API and they were removed in Django 1.10.

Change-Id: I285a08058fbac686755a1af7d530498b8302821b




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2207] Always call render() with dict Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-03-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango110Warning: render() must be called with a dict, not a Context.

 Comments   
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~I67eaac7e8d33c5fd3edf65682a6aa18c069beef2, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3169

(SIO-2207) Call render with dict instead of Context

This fixes following warning:
    RemovedInDjango110Warning: render() must be called with a dict, not a Context.

Change-Id: I67eaac7e8d33c5fd3edf65682a6aa18c069beef2
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~I67eaac7e8d33c5fd3edf65682a6aa18c069beef2, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3169

(SIO-2207) Call render with dict instead of Context

This fixes following warning:
    RemovedInDjango110Warning: render() must be called with a dict, not a Context.

Change-Id: I67eaac7e8d33c5fd3edf65682a6aa18c069beef2




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2206] Always pass callable to url() Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-04-1

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got oioioi.contests.tests.tests.print_contest_id_view). Pass the callable instead.


 Comments   
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~Iebd76377e847396ab376bacd28320fb656dcc22c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3168

(SIO-2206) Pass callable to url() in tests

This fixes following warning:

Change-Id: Iebd76377e847396ab376bacd28320fb656dcc22c
RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got oioioi.contests.tests.tests.print_contest_id_view). Pass the callable instead.
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~Iebd76377e847396ab376bacd28320fb656dcc22c, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3168

(SIO-2206) Pass callable to url() in tests

This fixes following warning:

Change-Id: Iebd76377e847396ab376bacd28320fb656dcc22c
RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got oioioi.contests.tests.tests.print_contest_id_view). Pass the callable instead.
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~Iebd76377e847396ab376bacd28320fb656dcc22c, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3168

(SIO-2206) Pass callable to url() in tests

This fixes following warning:

RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got oioioi.contests.tests.tests.print_contest_id_view). Pass the callable instead.

Change-Id: Iebd76377e847396ab376bacd28320fb656dcc22c
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~Iebd76377e847396ab376bacd28320fb656dcc22c, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3168

(SIO-2206) Pass callable to url() in tests

This fixes following warning:

RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got oioioi.contests.tests.tests.print_contest_id_view). Pass the callable instead.

Change-Id: Iebd76377e847396ab376bacd28320fb656dcc22c
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~Iebd76377e847396ab376bacd28320fb656dcc22c, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3168

(SIO-2206) Pass callable to url() in tests

This fixes following warning:

RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got oioioi.contests.tests.tests.print_contest_id_view). Pass the callable instead.

Change-Id: Iebd76377e847396ab376bacd28320fb656dcc22c




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2205] Remove usage of reversing urls by dotted path Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-04-2

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango110Warning: Reversing by dotted path is deprecated

We use reversing by dotted path only in oioioi.contests.current_contest.reverse

 Comments   
Comment by Artur Puzio [ 2019-03-24 ]
To jest problem. Nasza funkcja oioioi.contests.current_contest.reverse dostaje view i chce dostać dla niego ścieżkę. Nie widzę jak to łatwo zrobić jeśli view jest w namespacie.
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~Icd57dbe2dc69f0d0d11c57ddc2bcb2bc32695579, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3175

(SIO-2205)

Change-Id: Icd57dbe2dc69f0d0d11c57ddc2bcb2bc32695579
Comment by Gerrit Gerrit [ 2019-03-30 ]
Change oioioi~master~Icd57dbe2dc69f0d0d11c57ddc2bcb2bc32695579, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3175

(SIO-2205) Remove usage of reversing urls by dotted path

In addition we dropped support for reversing by a callable
in our custom reverse function (which overrides django's one).

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Icd57dbe2dc69f0d0d11c57ddc2bcb2bc32695579
Comment by Gerrit Gerrit [ 2019-04-2 ]
Change oioioi~master~Icd57dbe2dc69f0d0d11c57ddc2bcb2bc32695579, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3175

(SIO-2205) Remove usage of reversing urls by dotted path

In addition we dropped support for reversing by a callable
in our custom reverse function (which overrides django's one).

Removed missed occurrences in url tag.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Icd57dbe2dc69f0d0d11c57ddc2bcb2bc32695579




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2204] Remove usage of django.conf.urls.patterns() Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-03-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.

 Comments   
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I09a3af9066e1ec0480cab414be5bbce5cafc3c6b, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3157

(SIO-2204) Stop using patterns in urls tests

`patterns` is removed in Django 1.10.

Change-Id: I09a3af9066e1ec0480cab414be5bbce5cafc3c6b




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2203] Add support for the `max_length` argument in Storage.save() Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-04-4

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango110Warning: Backwards compatibility for storage backends without support for the `max_length` argument in Storage.save() will be removed in Django 1.10.

 Comments   
Comment by Artur Puzio [ 2019-03-26 ]
https://docs.djangoproject.com/en/2.1/ref/files/storage/#django.core.files.storage.Storage.save
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I6d9a3769baae760349d9d7a827a1e6ed237442ca, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3171

(SIO-2203) Support max_length in FiletrackerStorage.save

This fixes following warning:
    RemovedInDjango110Warning: Backwards compatibility for storage backends without support for the `max_length` argument in Storage.save() will be removed in Django 1.10.

Change-Id: I6d9a3769baae760349d9d7a827a1e6ed237442ca
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I6d9a3769baae760349d9d7a827a1e6ed237442ca, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3171

(SIO-2203) Support max_length in FiletrackerStorage.save

This fixes following warning:
    RemovedInDjango110Warning: Backwards compatibility for storage backends without support for the `max_length` argument in Storage.save() will be removed in Django 1.10.

Change-Id: I6d9a3769baae760349d9d7a827a1e6ed237442ca
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~I6d9a3769baae760349d9d7a827a1e6ed237442ca, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3171

(SIO-2203) Support max_length in FiletrackerStorage.save

This fixes following warning:
    RemovedInDjango110Warning: Backwards compatibility for storage backends without support for the `max_length` argument in Storage.save() will be removed in Django 1.10.

Change-Id: I6d9a3769baae760349d9d7a827a1e6ed237442ca
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~I6d9a3769baae760349d9d7a827a1e6ed237442ca, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3171

(SIO-2203) Support max_length in FiletrackerStorage.save

This fixes following warning:
    RemovedInDjango110Warning: Backwards compatibility for storage backends without support for the `max_length` argument in Storage.save() will be removed in Django 1.10.

Change-Id: I6d9a3769baae760349d9d7a827a1e6ed237442ca
Comment by Gerrit Gerrit [ 2019-03-30 ]
Change oioioi~master~I6d9a3769baae760349d9d7a827a1e6ed237442ca, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3171

(SIO-2203) Support max_length in FiletrackerStorage.save

This fixes following warning:
    RemovedInDjango110Warning: Backwards compatibility for storage backends without support for the `max_length` argument in Storage.save() will be removed in Django 1.10.

Change-Id: I6d9a3769baae760349d9d7a827a1e6ed237442ca
Comment by Gerrit Gerrit [ 2019-04-2 ]
Change oioioi~master~I6d9a3769baae760349d9d7a827a1e6ed237442ca, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3171

(SIO-2203) Support max_length in FiletrackerStorage.save

This fixes following warning:
    RemovedInDjango110Warning: Backwards compatibility for storage backends without support for the `max_length` argument in Storage.save() will be removed in Django 1.10.

Change-Id: I6d9a3769baae760349d9d7a827a1e6ed237442ca




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2202] Remove usage of context_instance argument of render_to_string Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-04-1

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango110Warning: The context_instance argument of render_to_string is deprecated.

 Comments   
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~I64ff313bab2a6190d05b74f6aa29f4d59dd68029, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3167

(SIO-2202) Remove context_instance argument of render_to_string

This fixes following warning:
    RemovedInDjango110Warning: The context_instance argument of render_to_string is deprecated.

Usage ofcontext_instance argument was replaced with
request and context arguments.

Change-Id: I64ff313bab2a6190d05b74f6aa29f4d59dd68029
Comment by Gerrit Gerrit [ 2019-03-25 ]
Change oioioi~master~I64ff313bab2a6190d05b74f6aa29f4d59dd68029, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3167

(SIO-2202) Remove context_instance argument of render_to_string

This fixes following warning:
    RemovedInDjango110Warning: The context_instance argument of render_to_string is deprecated.

Usage ofcontext_instance argument was replaced with
request and context arguments.

Change-Id: I64ff313bab2a6190d05b74f6aa29f4d59dd68029




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2201] django.core.context_processors -> django.template.context_processors Created: 2019-03-24  Updated: 2020-03-3  Resolved: 2019-04-1

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
"django.core.context_processors: Built-in template context processors have been moved to django.template.context_processors."

This change was introduced in Django 1.9, but for some reason import old name "django.core.context_processors" was removed in Django1.10

 Comments   
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~I14a429a926fb6302c0f377bf0184111d8a11e3fd, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3165

(SIO-2201) django.core.context_processors was moved

In Django 1.9 django.core.context_processors was moved to
django.template.context_processors. For some reason the old name stopps
working only on Django1.10

Change-Id: I14a429a926fb6302c0f377bf0184111d8a11e3fd
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~I14a429a926fb6302c0f377bf0184111d8a11e3fd, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3165

(SIO-2201) django.core.context_processors was moved

In Django 1.9 django.core.context_processors was moved to
django.template.context_processors. For some reason the old name stopps
working only on Django1.10

Change-Id: I14a429a926fb6302c0f377bf0184111d8a11e3fd
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I14a429a926fb6302c0f377bf0184111d8a11e3fd, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3165

(SIO-2201) django.core.context_processors was moved

In Django 1.9 django.core.context_processors was moved to
django.template.context_processors. For some reason the old name stopps
working only on Django1.10

Change-Id: I14a429a926fb6302c0f377bf0184111d8a11e3fd




[SIO-2200] Clean up szkopul's main page Created: 2019-03-19  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wojciech Bączkowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Remove "Proceed to the default contest" menu for not logged in users and change default messages for both not logged in and logged in visitors to something more descriptive.


 Comments   
Comment by Gerrit Gerrit [ 2019-03-30 ]
Change oioioi~master~I7c2bb93f96451d50bafab7ea8a9a05d4ae0af2b0, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3176

SIO-2200 Clean up szkopul's main page

Removed 'proceed to the default contest' menu. Changed logo and widened the content section margins by adding empty columns. Welcome message is a little larger now.

Change-Id: I7c2bb93f96451d50bafab7ea8a9a05d4ae0af2b0
Comment by Gerrit Gerrit [ 2019-03-31 ]
Change oioioi~master~I7c2bb93f96451d50bafab7ea8a9a05d4ae0af2b0, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3176

SIO-2200 Clean up szkopul's main page

Removed 'proceed to the default contest' menu.
Changed logo and widened the content section margins by adding empty columns.
Welcome message is a little larger now.

Change-Id: I7c2bb93f96451d50bafab7ea8a9a05d4ae0af2b0




[SIO-2199] Create a dashboard for logged users' main page Created: 2019-03-19  Updated: 2020-03-3  Resolved: 2019-05-10

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Piotr Wojtczak Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Create a dashboard containing useful information (most probably contests and/or unfinished problems) in an accessible and clean way.

 Comments   
Comment by Gerrit Gerrit [ 2019-04-1 ]
Change oioioi~master~I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3177

(SIO-2199) - Create a dashboard for logged users' main page

Created a new main page for the logged users. It features a dashboard including recently looked at contests
and summarized submissions.

This also includes many minor tweaks to Szkopul's overall design.

Change-Id: I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e
Comment by Gerrit Gerrit [ 2019-04-2 ]
Change oioioi~master~I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3177

(SIO-2199) Create a dashboard for logged users' main page

Created a new main page for the logged users. It features a dashboard including recently looked at contests
and summarized submissions.

This also includes many minor tweaks to Szkopul's overall design.

Change-Id: I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3177

(SIO-2199) Create a dashboard for logged users' main page

Created a new main page for the logged users. It features a dashboard including recently looked at contests
and summarized submissions.

This also includes many minor tweaks to Szkopul's overall design.

Change-Id: I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3177

(SIO-2199) Create a dashboard for logged users' main page

Created a new main page for the logged users. It features a dashboard including recently looked at contests
and summarized submissions.

This also includes many minor tweaks to Szkopul's overall design.

Change-Id: I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3177

(SIO-2199) Create a dashboard for logged users' main page

Created a new main page for the logged users. It features a dashboard including recently looked at contests
and summarized submissions.

This also includes many minor tweaks to Szkopul's overall design.

Change-Id: I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3177

(SIO-2199) Create a dashboard for logged users' main page

Created a new main page for the logged users. It features a dashboard including recently looked at contests
and summarized submissions.

This also includes many minor tweaks to Szkopul's overall design.

Change-Id: I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e
Comment by Gerrit Gerrit [ 2019-04-10 ]
Change oioioi~master~I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3177

(SIO-2199) Create a dashboard for logged users' main page

Created a new main page for the logged users. It features a dashboard including recently looked at contests
and summarized submissions.

This also includes many minor tweaks to Szkopul's overall design.

Change-Id: I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e
Comment by Gerrit Gerrit [ 2019-04-16 ]
Change oioioi~master~I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3177

(SIO-2199) Create a dashboard for logged users' main page

Created a new main page for the logged users. It features a dashboard including recently looked at contests
and summarized submissions.

This also includes many minor tweaks to Szkopul's overall design.

Change-Id: I6b43dcb1507dad0db1a4fd92bc3f81f32ee88b8e
Comment by Piotr Wojtczak [ 2019-06-30 ]
Fixed word breaking https://gerrit.sio2project.mimuw.edu.pl/#/c/3192/
Comment by Piotr Wojtczak [ 2019-06-30 ]
Improved look on smaller screens https://gerrit.sio2project.mimuw.edu.pl/#/c/3203/




[SIO-2198] Bring google analytics back to life Created: 2019-03-19  Updated: 2020-03-3  Resolved: 2019-04-2

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Bug Priority: Minor
Reporter: Piotr Wojtczak Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Check why google analytics stopped gathering data and, if easily fixed, repair that.

 Comments   
Comment by Wojciech Bączkowski [ 2019-04-2 ]
The google_analytics_tracking_id was not set.
Fixing that seems to have done the trick.




[SIO-2197] Test TestBalloons::test_balloon_request_creation is unstable Created: 2019-03-14  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
As seen for example in: https://hudson.sio2project.mimuw.edu.pl/job/oioioi-nightly-unittests/1577 the test oioioi/balloons/tests.py::TestBalloons::test_balloon_request_creation is unstable. It should be adjusted to be stable.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2196] Add points to config.yml Created: 2019-03-14  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Points for the group tests is something that is known before uploading, but still has to be set later, manually, in the problem site. Can we have some API in config.yml to set those points in the package?

For example:
points {
  1: 15
  2: 15
  3: 30
  4: 40
}

 Comments   
Comment by Dominik Klemba [ 2019-03-14 ]
I support the idea, but also believe that there should be different file for points. Like ".points". Thanks to that, there will be possibility to add points generation to (for ex.) ingen and make some checks.
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I2b667cc18578c3a264e0e894062ace8b75339bbf, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3186

(SIO-2196) Implement problem statistics

This change introduces statistics calculated per-problem, as well as
per-user/problem. The statistics are cached using two helper models, and
every time a solution is submitted they are updated in constant time -
without any additional database polls. To ensure performance in
critical environments this mechanism can be disabled at will in the
settings. Any stale statistics can be recalculated with the relevant
management command. As of this change the statistics are not yet
displayed anywhere and can only be seen directly in the database.

Change-Id: I2b667cc18578c3a264e0e894062ace8b75339bbf
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I2b667cc18578c3a264e0e894062ace8b75339bbf, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3186

(SIO-2196) Implement problem statistics

This change introduces statistics calculated per-problem, as well as
per-user/problem. The statistics are cached using two helper models, and
every time a solution is submitted they are updated in constant time -
without any additional database polls. To ensure performance in
critical environments this mechanism can be disabled at will in the
settings. Any stale statistics can be recalculated with the relevant
management command. As of this change the statistics are not yet
displayed anywhere and can only be seen directly in the database.

Change-Id: I2b667cc18578c3a264e0e894062ace8b75339bbf
Comment by Bartosz Kostka [ 2020-04-9 ]
This is also done.




[SIO-2195] Prepare backend for displaying statistics about a problem. Created: 2019-03-13  Updated: 2020-03-3  Resolved: 2019-05-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Improvement Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Jakub Bartmiński
TAG Reviewer: Iwona Kotlarska

 Comments   
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I2b667cc18578c3a264e0e894062ace8b75339bbf, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3186

(SIO-2195) Implement problem statistics

This change introduces statistics calculated per-problem, as well as
per-user/problem. The statistics are cached using two helper models, and
every time a solution is submitted they are updated in constant time -
without any additional database polls. To ensure performance in
critical environments this mechanism can be disabled at will in the
settings. Any stale statistics can be recalculated with the relevant
management command. As of this change the statistics are not yet
displayed anywhere and can only be seen directly in the database.

Change-Id: I2b667cc18578c3a264e0e894062ace8b75339bbf
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset, as well as in problem sites.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset, as well as in problem sites.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I2b667cc18578c3a264e0e894062ace8b75339bbf, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3186

(SIO-2195) Implement problem statistics

This change introduces statistics calculated per-problem, as well as
per-user/problem. The statistics are cached using two helper models, and
every time a solution is submitted they are updated in constant time -
without any additional database polls. To ensure performance in
critical environments this mechanism can be disabled at will in the
settings. Any stale statistics can be recalculated with the relevant
management command. As of this change the statistics are not yet
displayed anywhere and can only be seen directly in the database.

Change-Id: I2b667cc18578c3a264e0e894062ace8b75339bbf
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset, as well as in problem sites.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I2b667cc18578c3a264e0e894062ace8b75339bbf, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3186

(SIO-2195) Implement problem statistics

This change introduces statistics calculated per-problem, as well as
per-user/problem. The statistics are cached using two helper models, and
every time a solution is submitted they are updated in constant time -
without any additional database polls. To ensure performance in
critical environments this mechanism can be disabled at will in the
settings. Any stale statistics can be recalculated with the relevant
management command. As of this change the statistics are not yet
displayed anywhere and can only be seen directly in the database.

Change-Id: I2b667cc18578c3a264e0e894062ace8b75339bbf
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I2b667cc18578c3a264e0e894062ace8b75339bbf, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3186

(SIO-2195) Implement problem statistics

This change introduces statistics calculated per-problem, as well as
per-user/problem. The statistics are cached using two helper models, and
every time a solution is submitted they are updated in constant time -
without any additional database polls. To ensure performance in
critical environments this mechanism can be disabled at will in the
settings. Any stale statistics can be recalculated with the relevant
management command. As of this change the statistics are not yet
displayed anywhere and can only be seen directly in the database.

Change-Id: I2b667cc18578c3a264e0e894062ace8b75339bbf
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset, as well as in problem sites.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-10 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset, as well as in problem sites.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-15 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset, as well as in problem sites.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-25 ]
Change oioioi~master~I669e888ef3530c7cc9cce11eb013ce0594424db5, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3202

(SIO-2195) Fix statistics

This changes fixes various bugs that unfortunately only became apparent
after trying the statistics on production problem/submission data.

The major problems that this addresses are:

 1. Null score_report.max_score on some older submissions as well as
    submissions imported from main. This is worked around by looking
    at tests for the problem instance and deriving max_score from there.

 2. Null submission.score and score_report.score on submissions to
    problems with no final tests, or on broken submissions. These
    are counted as submitted only.

 3. Submissions which have score > max_score, or max_score != 100.
    The score is now capped and scaled to be a percentage of max_score.

 4. Submissions with score_report.max_score correct or possible to
    calculate, but equal to 0. These are also counted as submitted only.

Added more tests to cover all 4 of these points.

Another problem was that the recalculate_statistis management command
turned out to be taking noticeably long to execute - about 3 hours on
250k valid submissions to 15k problems. After some experimenting, I
was unable to reduce this time substantially, so instead this change
ensures the management command running in the background does not
permanently block the database from normal usage, i.e. it should be
safe to leave it running in the background after enabling statistics.

Change-Id: I669e888ef3530c7cc9cce11eb013ce0594424db5
Comment by Gerrit Gerrit [ 2019-04-25 ]
Change oioioi~master~I669e888ef3530c7cc9cce11eb013ce0594424db5, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3202

(SIO-2195) Fix statistics

This changes fixes various bugs that unfortunately only became apparent
after trying the statistics on production problem/submission data.

The major problems that this addresses are:

 1. Null score_report.max_score on some older submissions as well as
    submissions imported from main. This is worked around by looking
    at tests for the problem instance and deriving max_score from there.

 2. Null submission.score and score_report.score on submissions to
    problems with no final tests, or on broken submissions. These
    are counted as submitted only.

 3. Submissions which have score > max_score, or max_score != 100.
    The score is now capped and scaled to be a percentage of max_score.

 4. Submissions with score_report.max_score correct or possible to
    calculate, but equal to 0. These are also counted as submitted only.

Added more tests to cover all 4 of these points.

Another problem was that the recalculate_statistis management command
turned out to be taking noticeably long to execute - about 3 hours on
250k valid submissions to 15k problems. After some experimenting, I
was unable to reduce this time substantially, so instead this change
ensures the management command running in the background does not
permanently block the database from normal usage, i.e. it should be
safe to leave it running in the background after enabling statistics.

Change-Id: I669e888ef3530c7cc9cce11eb013ce0594424db5
Comment by Gerrit Gerrit [ 2019-04-28 ]
Change oioioi~master~I669e888ef3530c7cc9cce11eb013ce0594424db5, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3202

(SIO-2195) Fix statistics

This changes fixes various bugs that unfortunately only became apparent
after trying the statistics on production problem/submission data.

The major problems that this addresses are:

 1. Null score_report.max_score on some older submissions as well as
    submissions imported from main. This is worked around by looking
    at tests for the problem instance and deriving max_score from there.

 2. Null submission.score and score_report.score on submissions to
    problems with no final tests, or on broken submissions. These
    are counted as submitted only.

 3. Submissions which have score > max_score, or max_score != 100.
    The score is now capped and scaled to be a percentage of max_score.

 4. Submissions with score_report.max_score correct or possible to
    calculate, but equal to 0. These are also counted as submitted only.

Added more tests to cover all 4 of these points.

Another problem was that the recalculate_statistis management command
turned out to be taking noticeably long to execute - about 3 hours on
250k valid submissions to 15k problems. After some experimenting, I
was unable to reduce this time substantially, so instead this change
ensures the management command running in the background does not
permanently block the database from normal usage, i.e. it should be
safe to leave it running in the background after enabling statistics.

Change-Id: I669e888ef3530c7cc9cce11eb013ce0594424db5
Comment by Gerrit Gerrit [ 2019-04-29 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

v2:
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-29 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

v2:
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-29 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

v2:
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-04-29 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

v2:
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-05-3 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

v2:
 - Stopped creating ProblemStatistics on Problem post_create, accounted
   for null problem_statistics instead.
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-05-4 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

v2:
 - Stopped creating ProblemStatistics on Problem post_create, accounted
   for null problem_statistics instead.
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-05-10 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

v2:
 - Stopped creating ProblemStatistics on Problem post_create, accounted
   for null problem_statistics instead.
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

v3:
 - Made problemset columns proportional using bootstrap.
 - Fixed the loading symbol when adding problem to contest.
 - Refactored functions preparing the problemset problem pool.
 - Made the problemset preserve any get parameter on sorting, not just
   the query. Added a test for it.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Gerrit Gerrit [ 2019-05-11 ]
Change oioioi~master~Icf365352db8e04256e9d5dc73e5826052af5811b, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3187

(SIO-2195) Show statistics in Problemset and problem sites

This change adds a handful of stuff to display sortable statistics next
to problems in the Problemset.
This is a very simple, but practical demonstration, which may be
upgraded in the future.

v2:
 - Stopped creating ProblemStatistics on Problem post_create, accounted
   for null problem_statistics instead.
 - Moved the statistics columns to the right, renamed them, and made
   them smaller.
 - Changed the "solved" statistic to instead reflect a percentage of
   correct solutions.
 - Added tests.

v3:
 - Made problemset columns proportional using bootstrap.
 - Fixed the loading symbol when adding problem to contest.
 - Refactored functions preparing the problemset problem pool.
 - Made the problemset preserve any get parameter on sorting, not just
   the query. Added a test for it.

Change-Id: Icf365352db8e04256e9d5dc73e5826052af5811b
Comment by Jakub Bartmiński [ 2019-05-12 ]
This was actually resolved by https://gerrit.sio2project.mimuw.edu.pl/3202/

https://gerrit.sio2project.mimuw.edu.pl/3187 was moved to SIO-2242




[SIO-2194] Check whether tags preserve hierarchy from task archive. Created: 2019-03-13  Updated: 2020-03-3  Resolved: 2019-05-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Improvement Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Jakub Bartmiński
TAG Reviewer: Iwona Kotlarska




[SIO-2193] Prepare backend for new tags design in problemset. Created: 2019-03-13  Updated: 2020-03-3  Resolved: 2019-06-17

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Improvement Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Comments   
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3170

i(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in two tree-like structures. First is for easy
searching (things like "OI, etap I", and second is for preserving
        structure from task archive, which we plan to remove later.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-03-26 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3170

i(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in two tree-like structures. First is for easy
searching (things like "OI, etap I", and second is for preserving
        structure from task archive, which we plan to remove later).

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3170

i(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in two tree-like structures. First is for easy
searching (things like "OI, etap I", and second is for preserving
        structure from task archive, which we plan to remove later).

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in two tree-like structures. First is for easy
searching (things like "OI, etap I", and second is for preserving
        structure from task archive, which we plan to remove later).

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in two tree-like structures. First is for easy
searching (things like "OI, etap I", and second is for preserving
        structure from task archive, which we plan to remove later).

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-03-29 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in two tree-like structures. First is for easy
searching (things like "OI, etap I", and second is for preserving
        structure from task archive, which we plan to remove later).

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-1 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in two tree-like structures. First is for easy
searching (things like "OI, etap I", and second is for preserving
        structure from task archive, which we plan to remove later).

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-1 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching (things
like "OI, etap I"). They also have "display_depth" field, which is a
positive integer determining how deep a particular tag should be in task
archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-1 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching (things
like "OI, etap I"). They also have "display_depth" field, which is a
positive integer determining how deep a particular tag should be in task
archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching (things
like "OI, etap I"). They also have "display_depth" field, which is an
integer determining how deep a particular tag should be in task
archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching (things
like "OI, etap I"). They also have "display_depth" field, which is an
integer determining how deep a particular tag should be in task
archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching (things
like "OI, etap I"). They also have "display_depth" field, which is an
integer determining how deep a particular tag should be in task
archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching (things
like "OI, etap I"). They also have "display_depth" field, which is an
integer determining how deep a particular tag should be in task
archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching (things
like "OI, etap I"). They also have "display_depth" field, which is an
integer determining how deep a particular tag should be in task
archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags, algorithms
used tags (former tags) and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching (things
like "OI, etap I"). They also have "display_depth" field, which is an
integer determining how deep a particular tag should be in task
archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms used tags (former tags) and origin tags (to preserve
tree hierarchy from task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms used tags (former tags) and origin tags (to preserve
tree hierarchy from task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms used tags (former tags) and origin tags (to preserve
tree hierarchy from task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 19
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms used tags (former tags) and origin tags (to preserve
tree hierarchy from task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Currently existing tags are meant to turn into "algorithm tags" -
they should be used to say "this can be solved with Dijkstra".

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 21
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 22
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 23
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 24
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 25
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 26
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 27
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 29
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~I91328356ed0f9981519e90e70cf24d6b033bcab2, patchset 30
https://gerrit.sio2project.mimuw.edu.pl/3170

(SIO-2193) Split tags into three types.

We decided to use three main types of tags: difficulty tags,
algorithms tags and origin tags (to preserve tree hierarchy from
task archive).

Origin tags are formed in a tree-like structure for easy searching
(things like "OI, etap I"). They also have "display_depth" field,
which is an integer determining how deep a particular tag should be
in task archive hierarchy.

Change-Id: I91328356ed0f9981519e90e70cf24d6b033bcab2




[SIO-2192] Replace OptionParser with ArgumentParser Created: 2019-03-12  Updated: 2020-03-3  Resolved: 2019-03-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration

Issue Links:
Blocks
blocks SIO-2154 Increment Django version to 1.10 Closed

 Description   
This class is removed in Django 1.10.
Related warning:

RemovedInDjango110Warning: OptionParser usage for Django management commands is deprecated, use ArgumentParser instead

 Comments   
Comment by Gerrit Gerrit [ 2019-03-17 ]
Change oioioi~master~I96ff67a4f991d2b37b5ce0547491fc279de7ae0e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3160

(SIO-2192) Replace OptionParser with ArgumentParser

Change-Id: I96ff67a4f991d2b37b5ce0547491fc279de7ae0e
Comment by Gerrit Gerrit [ 2019-03-25 ]
Change oioioi~master~I96ff67a4f991d2b37b5ce0547491fc279de7ae0e, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3160

(SIO-2192) Replace OptionParser with ArgumentParser

Added mutually exclusive group of arguments for submit.py.

Change-Id: I96ff67a4f991d2b37b5ce0547491fc279de7ae0e




[SIO-2191] Get rid of upgrade_package.tar and upgrade_to_17 Created: 2019-03-12  Updated: 2019-03-26  Resolved: 2019-03-20

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
This package and command were used to migrate to Django 1.7. They are no longer needed, so they should be removed.

 Comments   
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I68b460fc7196d9bccc4182eb6857e928a1a7cfbe, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3156

(SIO-2191) Remove legacy migration script

Migration from South database migrations to Django native database
migrations don't seem to be needed anymore, and the required code
clutters the repository.

Change-Id: I68b460fc7196d9bccc4182eb6857e928a1a7cfbe




[SIO-2190] Replace NoArgsCommand with BaseCommand Created: 2019-03-12  Updated: 2019-03-26  Resolved: 2019-03-19

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration

Issue Links:
Blocks
blocks SIO-2154 Increment Django version to 1.10 Closed

 Description   
This class is removed in Django 1.10.
Related warnings:

RemovedInDjango110Warning: NoArgsCommand class is deprecated and will be removed in Django 1.10. Use BaseCommand instead, which takes no arguments by default.


 Comments   
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I95213bbd37f1f7d56a83c8bf8cb61cfe9c115a87, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3158

(SIO-2190) Get rid of NoArgsCommand

Change-Id: I95213bbd37f1f7d56a83c8bf8cb61cfe9c115a87
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I95213bbd37f1f7d56a83c8bf8cb61cfe9c115a87, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3158

(SIO-2190) Get rid of NoArgsCommand

Change-Id: I95213bbd37f1f7d56a83c8bf8cb61cfe9c115a87
Comment by Gerrit Gerrit [ 2019-03-17 ]
Change oioioi~master~I95213bbd37f1f7d56a83c8bf8cb61cfe9c115a87, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3158

(SIO-2190) Replace NoArgsCommand with BaseCommand

Change-Id: I95213bbd37f1f7d56a83c8bf8cb61cfe9c115a87




[SIO-2189] Fix backwards incompatible changes in 1.10 after incrementing django version Created: 2019-03-11  Updated: 2020-03-3  Resolved: 2019-04-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration

Issue Links:
Blocks
is blocked by SIO-2154 Increment Django version to 1.10 Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2176 Find alternative for Field.get_prep_l... Sub-task Closed Szymon Acedański  
SIO-2179 Remove choices argument from Select/S... Sub-task Closed Szymon Acedański  
SIO-2186 django.forms.models.model_to_dict() r... Sub-task Closed Szymon Acedański  




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2188] Check if setting USE_L10N to True breaks date/time filters Created: 2019-03-11  Updated: 2019-03-26  Resolved: 2019-03-24

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Won't Fix Votes: 0
Labels: migration


 Description   
In Django 1.10 when USE_L10N is set to True, then current locale date/time formata are also use in filters when no format string is specified (instead of DATE_FORMAT and TIME_FORMAT constants from settings.py).

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (34th dot)

 Comments   
Comment by Artur Puzio [ 2019-03-24 ]
The "filters" mentioned in the Issue description are Django template system filters (the `{% ... %}` syntax used to call functions and use results in templates). The changed behavior affects formatting of date and time depending of locale (eg. Americans place day number between month and year)

Further we are setting USE_L10N to False. So this doesn't change anything.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2187] Check if OIOIOI relies on appending STATIC_ROOT at the end of the URL Created: 2019-03-11  Updated: 2019-03-26  Resolved: 2019-03-24

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Won't Fix Votes: 0
Labels: migration


 Description   
In Django 1.10 url concerning staticfiles are created differently. If we were relying on appending STATIC_ROOT at the end of the URL it will no longer work. Details can be found in the docs.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (33rd dot)

 Comments   
Comment by Artur Puzio [ 2019-03-24 ]
We do not relay on the behavior of simple appending of STATIC_ROOT. All usages are of form "{% static FILENAME %}"
Comment by Artur Puzio [ 2019-03-24 ]
We do not relay on the behavior of simple appending of STATIC_ROOT. All usages are of form "{% static FILENAME %}"




Fix backwards incompatible changes in 1.10 after incrementing django version (SIO-2189)

[SIO-2186] django.forms.models.model_to_dict() returns a queryset rather than a list of primary keys Created: 2019-03-11  Updated: 2020-03-3  Resolved: 2019-03-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Cannot Reproduce Votes: 0
Labels: migration


 Description   
Check if this new behaviour breaks anything (it is new only for ManyToManyFields).

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (32nd dot)

 Comments   
Comment by Michalina Sidor [ 2019-03-26 ]
Models we use this on don't have ManyToManyFields.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2185] Check if OIOIOI relies on AttributeError being thrown after access to deleted model field Created: 2019-03-11  Updated: 2019-03-26  Resolved: 2019-03-25

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Won't Fix Votes: 0
Labels: migration


 Description   
In Django 1.10 accessing a deleted field on a model instance reloads the field’s value instead of raising AttributeError.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (30th dot)

 Comments   
Comment by Marek Żochowski [ 2019-03-25 ]
This change does not affect our codebase.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2184] Find alternative for FileField get_directory_name() and get_filename() methods Created: 2019-03-11  Updated: 2019-03-26  Resolved: 2019-03-11

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
This methods became depreciated in Django 1.10.
Docs suggest some alternative.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (26th dot)

 Comments   
Comment by Marek Żochowski [ 2019-03-11 ]
We are not using such methods.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2183] Check if OIOIOI is using deferred fields Created: 2019-03-11  Updated: 2019-03-26  Resolved: 2019-03-17

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
From Django 1.10 models that use deferred fields should pass django.db.models.DEFERRED in __init__().

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (23rd dot)

 Comments   
Comment by Marek Żochowski [ 2019-03-17 ]
This change does not affect OIOIOI, because we are not using this feature.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2182] Think whether initialization of middleware classes during server start breaks anything Created: 2019-03-11  Updated: 2019-03-26  Resolved: 2019-03-19

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Won't Fix Votes: 0
Labels: migration


 Description   
Before Django 1.10 this classes were initialized during first request, now they are initialized during server start.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (18th dot)




[SIO-2181] Check if ModelBackend and RemoteUserBackend new inactive user treatment breaks anything Created: 2019-03-11  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: migration

Issue Links:
Blocks
is blocked by SIO-2154 Increment Django version to 1.10 Closed

 Description   
Default (ModelBackend) and RemoteUserBackend authentication backends now reject inactive users. I don't see any change compared to the current behaviour, but some of our classes derive from them, so is worth a look to check if it doesn't break anything (especially ipdnsauth tests).

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (14th dot)

 Comments   
Comment by Artur Puzio [ 2019-03-19 ]
su na niekatywnych użytowników potencjalnie się zepsuje.
Comment by Michalina Sidor [ 2019-03-20 ]
W tym momencie na sio2.mimuw.edu.pl su na nieaktywnego użytkownika powoduje wylogowanie admina
Comment by Michalina Sidor [ 2019-03-23 ]
I think this is best checked after we've incremented the Django version. Lack of ability of inactive users to login is intended behaviour.
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2180] Replace Command.execute() with call_command() Created: 2019-03-11  Updated: 2019-03-26  Resolved: 2019-03-17

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (13th dot)

 Comments   
Comment by Marek Żochowski [ 2019-03-17 ]
OIOIOI doesn't execute command this way, so nothing needed to be changed.




Fix backwards incompatible changes in 1.10 after incrementing django version (SIO-2189)

[SIO-2179] Remove choices argument from Select/SelectMultiple widgets' render() and render_options() methods Created: 2019-03-11  Updated: 2020-03-3  Resolved: 2019-04-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
These arguments were removed from the aforementioned methods in Django 1.10. In the second case (render_options()) selected_choices are now the first positional argument (watch out for classes derived from django's Select and SelectMultiple).

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (11th dot)

 Comments   
Comment by Marek Żochowski [ 2019-03-11 ]
This ticket can be completed only after upgrade to Django 1.10 is done.
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 3 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates all relevant
dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets' render() and render_options() methods

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-3 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 4 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecetaed in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-6 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 4 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecetaed in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2178] Check if objects with close() method are used after being passed to HttpResponse Created: 2019-03-11  Updated: 2019-03-26  Resolved: 2019-03-17

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
In Django 1.10 such objects are closed immediately after being passed to HttpResponse.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (5th dot)

 Comments   
Comment by Marek Żochowski [ 2019-03-17 ]
Such objects are not used after being passed to HttpResponse.




[SIO-2177] Fix backwards incompatible changes in 1.10 before incrementing django version Created: 2019-03-10  Updated: 2020-03-3  Resolved: 2019-04-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration

Issue Links:
Blocks
blocks SIO-2154 Increment Django version to 1.10 Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2170 Check if select_related() is used to ... Sub-task Closed Szymon Acedański  
SIO-2171 Check if _meta.get_fields() are calle... Sub-task Closed Szymon Acedański  
SIO-2172 Think whether increased max_length of... Sub-task Closed Szymon Acedański  
SIO-2173 Think whether we want runserver to wr... Sub-task Closed Szymon Acedański  
SIO-2174 Check if null assignment check for no... Sub-task Closed Szymon Acedański  
SIO-2178 Check if objects with close() method ... Sub-task Closed Szymon Acedański  
SIO-2180 Replace Command.execute() with call_c... Sub-task Closed Szymon Acedański  
SIO-2182 Think whether initialization of middl... Sub-task Closed Szymon Acedański  
SIO-2183 Check if OIOIOI is using deferred fields Sub-task Closed Szymon Acedański  
SIO-2184 Find alternative for FileField get_di... Sub-task Closed Szymon Acedański  
SIO-2185 Check if OIOIOI relies on AttributeEr... Sub-task Closed Szymon Acedański  
SIO-2187 Check if OIOIOI relies on appending S... Sub-task Closed Szymon Acedański  
SIO-2188 Check if setting USE_L10N to True bre... Sub-task Closed Szymon Acedański  
SIO-2201 django.core.context_processors -> dja... Sub-task Closed Szymon Acedański  
SIO-2212 Remove AlterModelManagers from migrat... Sub-task Closed Szymon Acedański  




Fix backwards incompatible changes in 1.10 after incrementing django version (SIO-2189)

[SIO-2176] Find alternative for Field.get_prep_lookup() and Field.get_db_prep_lookup() methods Created: 2019-03-10  Updated: 2020-03-3  Resolved: 2019-04-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
In Django 1.10 the aforementioned methods were removed.
Docs are suggesting some alternative.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#field-get-prep-lookup-and-field-get-db-prep-lookup-methods-are-removed

 Comments   
Comment by Artur Puzio [ 2019-03-19 ]
Jedno wystąpienie w FileTracker.


filetracker/fields.py: def get_prep_lookup(self, lookup_type, value):
filetracker/fields.py: return super(FileField, self).get_prep_lookup(lookup_type, value)

Do usunięcia nasza implementacja.
Comment by Michalina Sidor [ 2019-03-23 ]
Bardziej jest tak, że ten kod został wyekstrahowany do czegoś innego w django, i nie do końca jeszcze rozumiem do czego
Comment by Marek Żochowski [ 2019-03-25 ]
Z tego co rozumiem to teraz kod lookupów używa get_prep_value do konwersji otrzymanej wartości do tej zdatnej do użycia w zapytaniu bazodanowym. Jeżeli byśmy robili customowe lookupy to wtedy musielibyśmy przenieść tę logikę do nich, ale w obecnej sytuacji wystarczy tę funkcję usunąć (kod w get_prep_value jest ten sam).
Comment by Marek Żochowski [ 2019-03-25 ]
To wymaga zmiany kodu w sposób, który będzie niekompatybilny z 1.9, więc przerzucam to do https://jira.sio2project.mimuw.edu.pl/browse/SIO-2189.
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 3 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates all relevant
dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets' render() and render_options() methods

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-3 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 4 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecetaed in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-6 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 4 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecetaed in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602




[SIO-2175] Upgrade Cellery Created: 2019-03-10  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: migration


 Description   
We probably should also upgrade Cellery to latest version

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2174] Check if null assignment check for non-null foreign key fields is used Created: 2019-03-10  Updated: 2019-03-26  Resolved: 2019-03-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
In Django 1.10 this check is removed, so any solutions depending on it should be rewritten.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#removed-null-assignment-check-for-non-null-foreign-key-fields

 Comments   
Comment by Marek Żochowski [ 2019-03-12 ]
This change doesn't affect us.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2173] Think whether we want runserver to write its output to our logs. Created: 2019-03-10  Updated: 2019-03-26  Resolved: 2019-03-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Minor
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
From Django 1.10 runserver command (z manage.py) nie wyświetla outputu na stderr, tylko przesyła go do django server logger. Jeżeli aktualnie to nam nic nie psuje, to chętnie zostawiłbym tego ticketa, żeby w przyszłości sprawić aby ten output był faktycznie zapisywany do naszych logów (brakowało mi tej opcji).

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#runserver-output-goes-through-logging

 Comments   
Comment by Marek Żochowski [ 2019-03-12 ]
We are using supervisor's uwsgi instead of runserwer, so this change doesn't affect us.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2172] Think whether increased max_length of users' username is a problem Created: 2019-03-10  Updated: 2019-03-26  Resolved: 2019-03-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
In Django 1.10 max lenght of user's username was increased from 30 to 150.
It will probably cause problems with displaying such long strings, e.g top bar.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#abstractuser-username-max-length-increased-to-150

 Comments   
Comment by Marek Żochowski [ 2019-03-12 ]
This change shouldn't be a problem.




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2171] Check if _meta.get_fields() are called on proxy models Created: 2019-03-10  Updated: 2019-03-26  Resolved: 2019-03-23

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Won't Fix Votes: 0
Labels: migration


 Description   
The get_fields() method returned different reverse fields when called on a proxy model compared to its proxied concrete class. It was fixed in Django 1.10 by returning full set of fields pointing to a concrete class or one of its proxies in both cases.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#meta-get-fields-returns-consistent-reverse-fields-for-proxy-models

 Comments   
Comment by Michalina Sidor [ 2019-03-23 ]
I checked the occurences in [oi-hound](http://yuu.iscute.ovh/oi-hound/?q=get_fields&i=nope&files=%5C.py&repos=filetracker,oioioi,sioworkers) and verified that they return visually the same thing in Django 1.9 and Django 1.10




Fix backwards incompatible changes in 1.10 before incrementing django version (SIO-2177)

[SIO-2170] Check if select_related() is used to nested non-relation fields Created: 2019-03-10  Updated: 2019-03-26  Resolved: 2019-03-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
Before Django 1.10 select_related() didn't prohibit nested non-relation fields, but it will do so in 1.10. If we are exploiting this bug, we should find alternative solution.

Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#select-related-prohibits-non-relational-fields-for-nested-relations

 Comments   
Comment by Marek Żochowski [ 2019-03-12 ]
We are not affected by this change.




[SIO-2169] Understand consequences and enable SessionAuthenticationMiddleware Created: 2019-03-10  Updated: 2019-03-26  Resolved: 2019-03-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Cannot Reproduce Votes: 0
Labels: migration

Issue Links:
Blocks
blocks SIO-2154 Increment Django version to 1.10 Closed

 Description   
Session verification will become mandatory in Django 1.10. Please add 'django.contrib.auth.middleware.SessionAuthenticationMiddleware' to your MIDDLEWARE_CLASSES setting when you are ready to opt-in after reading the upgrade considerations in the 1.8 release notes.

Main part of this issue is understanding consequences for IP/DNS authentication of the SessionAuthenticationMiddleware

 Comments   
Comment by Artur Puzio [ 2019-03-10 ]
https://docs.djangoproject.com/en/2.1/topics/auth/default/#session-invalidation-on-password-change
Comment by Michalina Sidor [ 2019-03-26 ]
When logging in, a hash of user's password (user.get_session_auth_hash()) is saved in user's session and verified on each request.
Therefore, it should not break things for us in terms of ipdnsauth.




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2168] Set on_delete behaviour in fields other then ForeignKey Created: 2019-03-10  Updated: 2019-03-26  Resolved: 2019-03-14

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
OneToOneField, OneToOneBothHandsCascadingParticipantField, TreeForeignKey

 Comments   
Comment by Gerrit Gerrit [ 2019-03-10 ]
Change oioioi~master~I8439d40e0d5a6b16336a8f4ab4983f9e7fc52e08, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3153

(SIO-2168) Set on_delete behaviour

This solved following warning

RemovedInDjango20Warning: on_delete will be a required arg for *** in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior.

Behaviour is set to the current default of CASCADE where undefined.

This commit doesn't introduce any difference in code logic.

Change-Id: I8439d40e0d5a6b16336a8f4ab4983f9e7fc52e08
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I8439d40e0d5a6b16336a8f4ab4983f9e7fc52e08, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3153

(SIO-2168) Set on_delete behaviour

This solved following warning

RemovedInDjango20Warning: on_delete will be a required arg for *** in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior.

Behaviour is set to the current default of CASCADE where undefined.

This commit doesn't introduce any difference in code logic.

Change-Id: I8439d40e0d5a6b16336a8f4ab4983f9e7fc52e08




[SIO-2167] Figure out why some tasks imported from main are missing Created: 2019-03-9  Updated: 2020-03-3  Resolved: 2019-06-17

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: TAG 2018/19 Sprint 1

Type: Improvement Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Won't Fix Votes: 0
Labels: None


 Description   
For example older OIGs

 Comments   
Comment by Bartosz Kostka [ 2019-03-14 ]
Right now, most of the problems missing are generally interactive problems (most of them have to be set manually). Right now, from the Polish Szkopuł, only 28 tasks are missing (mostly from the first edition of the Olympiad).
Comment by Bartosz Kostka [ 2019-05-5 ]
I'm happy to announce that all problems from the POI are currently on Szkopuł.
Comment by Iwona Kotlarska [ 2019-06-17 ]
It turned out that the issue was resolved anyway.




[SIO-2166] Talk to teachers in Staszic about possible improvements to problemset Created: 2019-03-9  Updated: 2019-03-26  Resolved: 2019-03-13

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: TAG 2018/19 Sprint 1

Type: Improvement Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None





[SIO-2165] Talk to students in Staszic about possible improvements to problemset Created: 2019-03-9  Updated: 2020-03-3  Resolved: 2019-05-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Near Future
Fix Version/s: TAG 2018/19 Sprint 1

Type: Improvement Priority: Major
Reporter: Iwona Kotlarska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None





Increment Django version to 1.10 (SIO-2154)

[SIO-2164] Determine dependency versions for Django 1.10 Created: 2019-03-8  Updated: 2019-04-9  Resolved: 2019-03-24

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration

Attachments: Text File django10.patch    

 Comments   
Comment by Artur Puzio [ 2019-03-10 ]
To potencjalnie jest dobry patch
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 3 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates all relevant
dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets' render() and render_options() methods

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-3 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 4 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecetaed in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-6 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 4 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecetaed in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2163] Replace allow_tags attribute Created: 2019-03-8  Updated: 2019-03-26  Resolved: 2019-03-14

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango20Warning: Deprecated allow_tags attribute used on <bound method BalloonsDeliveryAccessDataInline.access_link of <oioioi.balloons.admin.BalloonsDeliveryAccessDataInline object at 0x7fec1781f0d0>>. Use django.utils.html.format_html(), format_html_join(), or django.utils.safestring.mark_safe() instead.

 Comments   
Comment by Gerrit Gerrit [ 2019-03-8 ]
Change oioioi~master~Id5fc5af180de6bd2c9d9caa83cc24991fd6ed459, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3151

(SIO-2163) Replace allow_tags attribute

This solves following type of warning:

RemovedInDjango20Warning: Deprecated allow_tags attribute used on <bound method BalloonsDeliveryAccessDataInline.access_link of <oioioi.balloons.admin.BalloonsDeliveryAccessDataInline object at 0x7fec1781f0d0>>. Use django.utils.html.format_html(), format_html_join(), or django.utils.safestring.mark_safe() instead.

allow_tags was replaced by using format_html where possible.
In some places no changes were introduced as allow_tags wasn't needed.

Change-Id: Id5fc5af180de6bd2c9d9caa83cc24991fd6ed459
Comment by Gerrit Gerrit [ 2019-03-9 ]
Change oioioi~master~Id5fc5af180de6bd2c9d9caa83cc24991fd6ed459, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3151

(SIO-2163) Replace allow_tags attribute

This solves following type of warning:

RemovedInDjango20Warning: Deprecated allow_tags attribute used on <bound method BalloonsDeliveryAccessDataInline.access_link of <oioioi.balloons.admin.BalloonsDeliveryAccessDataInline object at 0x7fec1781f0d0>>. Use django.utils.html.format_html(), format_html_join(), or django.utils.safestring.mark_safe() instead.

allow_tags was replaced by using format_html where possible.
In some places no changes were introduced as allow_tags wasn't needed.

Change-Id: Id5fc5af180de6bd2c9d9caa83cc24991fd6ed459
Comment by Gerrit Gerrit [ 2019-03-10 ]
Change oioioi~master~Id5fc5af180de6bd2c9d9caa83cc24991fd6ed459, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3151

(SIO-2163) Replace allow_tags attribute

This solves following type of warning:

RemovedInDjango20Warning: Deprecated allow_tags attribute used on <bound method BalloonsDeliveryAccessDataInline.access_link of <oioioi.balloons.admin.BalloonsDeliveryAccessDataInline object at 0x7fec1781f0d0>>. Use django.utils.html.format_html(), format_html_join(), or django.utils.safestring.mark_safe() instead.

allow_tags was replaced by using format_html where possible.
In some places no changes were introduced as allow_tags wasn't needed.

Change-Id: Id5fc5af180de6bd2c9d9caa83cc24991fd6ed459
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~Id5fc5af180de6bd2c9d9caa83cc24991fd6ed459, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3151

(SIO-2163) Replace allow_tags attribute

This solves following type of warning:

RemovedInDjango20Warning: Deprecated allow_tags attribute used on <bound method BalloonsDeliveryAccessDataInline.access_link of <oioioi.balloons.admin.BalloonsDeliveryAccessDataInline object at 0x7fec1781f0d0>>. Use django.utils.html.format_html(), format_html_join(), or django.utils.safestring.mark_safe() instead.

allow_tags was replaced by using format_html where possible.
In some places no changes were introduced as allow_tags wasn't needed.

Change-Id: Id5fc5af180de6bd2c9d9caa83cc24991fd6ed459




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2162] Set the app_name attribute in urls modules Created: 2019-03-7  Updated: 2019-03-26  Resolved: 2019-03-14

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango20Warning: Specifying a namespace in django.conf.urls.include() without providing an app_name is deprecated. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.

 Comments   
Comment by Gerrit Gerrit [ 2019-03-8 ]
Change oioioi~master~I672dec638e1fd97e5d13eb251311845cc78bd6e7, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3149

(SIO-2162) Set the app_name in urls modules

Change-Id: I672dec638e1fd97e5d13eb251311845cc78bd6e7
Comment by Gerrit Gerrit [ 2019-03-8 ]
Change oioioi~master~I672dec638e1fd97e5d13eb251311845cc78bd6e7, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3149

(SIO-2162) Adjust deprecated usage of include

- Set the app_name in urls modules
- Pass tuple of (module, app_name) to include where needed

Change-Id: I672dec638e1fd97e5d13eb251311845cc78bd6e7
Comment by Gerrit Gerrit [ 2019-03-10 ]
Change oioioi~master~I672dec638e1fd97e5d13eb251311845cc78bd6e7, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3149

(SIO-2162) Adjust deprecated usage of include

- Set the app_name in urls modules
- Pass tuple of (module, app_name) to include where needed

Change-Id: I672dec638e1fd97e5d13eb251311845cc78bd6e7
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I672dec638e1fd97e5d13eb251311845cc78bd6e7, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3149

(SIO-2162) Adjust deprecated usage of include

- Set the app_name in urls modules
- Pass tuple of (module, app_name) to include where needed

Change-Id: I672dec638e1fd97e5d13eb251311845cc78bd6e7




Fix Python 3 tests (SIO-2157)

[SIO-2161] Fix invalid type of compiler_output and compilation_message Created: 2019-03-5  Updated: 2020-03-3  Resolved: 2019-05-27

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Michalina Sidor Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
When evaluating a submission on Python 3, serializing environ to JSON causes an error, because compiler_output and compilation_message are bytes and not str.

 Comments   
Comment by Gerrit Gerrit [ 2019-04-15 ]
Change sioworkers~master~I3ab2055334369dc645278ddea9d45f17136e23c9, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3189

(SIO-2161) Change compiler_output type on Python 3

Change-Id: I3ab2055334369dc645278ddea9d45f17136e23c9




[SIO-2160] Enable submitservice module on Szkopul Created: 2019-03-5  Updated: 2020-03-3  Resolved: 2019-10-10

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Szymon Acedański Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: easy, tag1

Issue Links:
Relates
relates to SIO-2280 Add helper in submit view to api command New
is related to SIO-2280 Add helper in submit view to api command New

 Description   
... to allow submitting from terminal.

 Comments   
Comment by Zuzanna Opała [ 2019-10-10 ]
As there is an API now it is the better way to achieve the same goal so I've created new issue related to this one.




[SIO-2159] Define and enforce what names are allowed Created: 2019-03-5  Updated: 2020-03-3  Resolved: 2020-02-21

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Szymon Acedański Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy, tag1

TAG Developer: Franciszek Hnatów

 Description   
Specifying a strange name, e.g. long, full of Unicode chars, etc., may mare thinks like ranking unreadable.

 Comments   
Comment by Gerrit Gerrit [ 2020-01-16 ]
Change oioioi~master~Ia79092ba87cd4207247e65b73ec46fc9e18890a2, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3386

SIO-2159 Define and enforce what names are allowed

Change-Id: Ia79092ba87cd4207247e65b73ec46fc9e18890a2
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Ia79092ba87cd4207247e65b73ec46fc9e18890a2, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3386

SIO-2159 Define and enforce what names are allowed

Change-Id: Ia79092ba87cd4207247e65b73ec46fc9e18890a2
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Ia79092ba87cd4207247e65b73ec46fc9e18890a2, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3386

SIO-2159 Define and enforce what names are allowed

Change-Id: Ia79092ba87cd4207247e65b73ec46fc9e18890a2
Comment by Gerrit Gerrit [ 2020-01-17 ]
Change oioioi~master~Ia79092ba87cd4207247e65b73ec46fc9e18890a2, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3386

SIO-2159 Define and enforce what names are allowed

Change-Id: Ia79092ba87cd4207247e65b73ec46fc9e18890a2
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~Ia79092ba87cd4207247e65b73ec46fc9e18890a2, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3386

SIO-2159 Define and enforce what names are allowed

Change-Id: Ia79092ba87cd4207247e65b73ec46fc9e18890a2
Comment by Gerrit Gerrit [ 2020-01-22 ]
Change oioioi~master~Ia79092ba87cd4207247e65b73ec46fc9e18890a2, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3386

SIO-2159 Define and enforce what names are allowed

Change-Id: Ia79092ba87cd4207247e65b73ec46fc9e18890a2




Fix deprecation warnings found in tests for Django 1.9 (SIO-2153)

[SIO-2158] Set foreign key on_delete behaviour Created: 2019-03-5  Updated: 2019-03-26  Resolved: 2019-03-14

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Sub-task Priority: Major
Reporter: Michalina Sidor Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration


 Description   
RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete

 Comments   
Comment by Gerrit Gerrit [ 2019-03-8 ]
Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3150

(SIO-2158) Set ForeignKey on_delete behaviour

This solves following warning:

RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete

In few places on_delete was defined as models.SET_NULL by this commit,
as such behaviour seems intended from the context.

Change-Id: Idbb720a4661be1387a5aea2d4a5cf9011d89cd82
Comment by Gerrit Gerrit [ 2019-03-8 ]
Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3150

(SIO-2158) Set ForeignKey on_delete behaviour

This solves following warning:

RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete

Existing migrations were adjusted to include the default of
on_delete=models.CASCADE

In few places on_delete was defined as models.SET_NULL by this commit,
as such behaviour seems intended from the context. Relevant migrations
were added.

Change-Id: Idbb720a4661be1387a5aea2d4a5cf9011d89cd82
Comment by Gerrit Gerrit [ 2019-03-10 ]
Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3150

(SIO-2158) Set ForeignKey on_delete behaviour

This solves following warning:

RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete

Existing migrations were adjusted to include the default of
on_delete=models.CASCADE

In few places on_delete was defined as models.SET_NULL by this commit,
as such behaviour seems intended from the context. Relevant migrations
were added.

Change-Id: Idbb720a4661be1387a5aea2d4a5cf9011d89cd82
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3150

(SIO-2158) Set ForeignKey on_delete behaviour

This solves following warning:

RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete

Existing migrations were adjusted to include the default of
on_delete=models.CASCADE

In few places on_delete was defined as models.SET_NULL by this commit,
as such behaviour seems intended from the context. Relevant migrations
were added.

Change-Id: Idbb720a4661be1387a5aea2d4a5cf9011d89cd82




[SIO-2157] Fix Python 3 tests Created: 2019-03-5  Updated: 2021-03-22  Resolved: 2021-03-22

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Marek Żochowski Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: migration

Issue Links:
Blocks
is blocked by SIO-2152 Fix Python 3 test execution Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2161 Fix invalid type of compiler_output a... Sub-task Closed Szymon Acedański  

 Comments   
Comment by Gerrit Gerrit [ 2019-03-5 ]
Change oioioi~master~Ib4b2ca1e765d77d30579eef5866047689869ec2c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3148

(SIO-2157) Add bytes decoding to oioioi.base tests

Also a few small cases of assertEquals => assertEqual due
to deprecation warnings

Change-Id: Ib4b2ca1e765d77d30579eef5866047689869ec2c
Comment by Gerrit Gerrit [ 2019-04-22 ]
Change oioioi~master~I0f1b354a2248986e6c7a1eabafab2394d5716dc0, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3198

(SIO-2157) tests: Replace assertEquals with assertEqual

assertEquals is removed/deprecated in Python 3.

Change-Id: I0f1b354a2248986e6c7a1eabafab2394d5716dc0
Comment by Gerrit Gerrit [ 2019-04-22 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-22 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-23 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-23 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-29 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-29 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-29 ]
Change oioioi~master~Ia818b928db56d9f99e7279c8a4ad5051ab17a4fb, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3205

(SIO-2157) tests: Remove uses of assert_

assert_ is deprecated in Python 3, superseded by assertTrue.

Change-Id: Ia818b928db56d9f99e7279c8a4ad5051ab17a4fb
Comment by Gerrit Gerrit [ 2019-04-29 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ia818b928db56d9f99e7279c8a4ad5051ab17a4fb, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3205

(SIO-2157) tests: Remove uses of assert_

assert_ is deprecated in Python 3, superseded by assertTrue.

Change-Id: Ia818b928db56d9f99e7279c8a4ad5051ab17a4fb
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ia79e40277b357b320d0dcce458d83fe17e60bac1, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3208

(SIO-2157) Correct uses of execute

Change-Id: Ia79e40277b357b320d0dcce458d83fe17e60bac1
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ia818b928db56d9f99e7279c8a4ad5051ab17a4fb, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3205

(SIO-2157) tests: Remove uses of assert_

assert_ is deprecated in Python 3, superseded by assertTrue.

Change-Id: Ia818b928db56d9f99e7279c8a4ad5051ab17a4fb
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ia79e40277b357b320d0dcce458d83fe17e60bac1, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3208

(SIO-2157) Change expected behaviour of execute

`execute` now returns output as bytestring or bytestrings on both
Pythons and expects `input` argument to be a bytestring.

Change-Id: Ia79e40277b357b320d0dcce458d83fe17e60bac1
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ia79e40277b357b320d0dcce458d83fe17e60bac1, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3208

(SIO-2157) Change expected behaviour of execute

`execute` now returns output as bytestring or bytestrings on both
Pythons and expects `input` argument to be a bytestring.

Change-Id: Ia79e40277b357b320d0dcce458d83fe17e60bac1
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ia79e40277b357b320d0dcce458d83fe17e60bac1, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3208

(SIO-2157) Change expected behaviour of execute

`execute` now returns output as bytestring or bytestrings on both
Pythons and expects `input` argument to be a bytestring.

Change-Id: Ia79e40277b357b320d0dcce458d83fe17e60bac1
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ia79e40277b357b320d0dcce458d83fe17e60bac1, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3208

(SIO-2157) Change expected behaviour of execute

`execute` now returns output as bytestring or bytestrings on both
Pythons and expects `input` argument to be a bytestring.

Change-Id: Ia79e40277b357b320d0dcce458d83fe17e60bac1
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ia79e40277b357b320d0dcce458d83fe17e60bac1, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3208

(SIO-2157) Change expected behaviour of execute

`execute` now returns output as bytestring or bytestrings on both
Pythons and expects `input` argument to be a bytestring.

Change-Id: Ia79e40277b357b320d0dcce458d83fe17e60bac1
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-04-30 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-05-9 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-05-9 ]
Change oioioi~master~Idef892be1ca8eb270cbeef10e372f0f89558f1a3, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3200

(SIO-2157) tests: Replace assertIn with assertContains

assertIn and assertNotIn are used extensively for defining test cases.
Both these functions operate on sequences (strings or bytestrings in
this case).

Django provides its own extension, assertContains, which operates on a
response object and a text type string (unicode on py2, str on py3).

Using assertContains and assertNotContains provides a more semantic way
of expressing test cases, and has a useful side effect of increasing py3
compatibility.

It can also replace another type of test cases of the form:

        assertEqual(response.content.count(x) == y)

with:

        assertContains(response, x, count=y)

where `count=` is not even needed, but I think it increases readability.

Change-Id: Idef892be1ca8eb270cbeef10e372f0f89558f1a3
Comment by Gerrit Gerrit [ 2019-05-9 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-05-9 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix string type mismatches

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-05-11 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix many string type issues

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-05-11 ]
Change oioioi~master~I4a73355f0baec3d83f3c63376d46776ba3c8deb3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3227

(SIO-2157) tests: Use assertRegex in tests

assertRegex does not exist in Python 2.7, so a workaround is put in
oioioi.base.tests.TestCase that uses the old assertRegexpMatches which,
in turn, does not appear in Python 3.

Same for assertNotRegex{,pMatches}.

Change-Id: I4a73355f0baec3d83f3c63376d46776ba3c8deb3
Comment by Gerrit Gerrit [ 2019-05-11 ]
Change oioioi~master~I1ff202c5a2810270d7a4d9ed570578eebb7b6d2e, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3228

(SIO-2157) tests: Fix many string type issues part 2

Change-Id: I1ff202c5a2810270d7a4d9ed570578eebb7b6d2e
Comment by Gerrit Gerrit [ 2019-05-11 ]
Change oioioi~master~I1ff202c5a2810270d7a4d9ed570578eebb7b6d2e, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3228

(SIO-2157) tests: Fix many string type issues part 2

Change-Id: I1ff202c5a2810270d7a4d9ed570578eebb7b6d2e
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~Ic0fd1184daf648b274e795c466befae986f745e4, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3206

(SIO-2157) tests: Fix many string type issues

Change-Id: Ic0fd1184daf648b274e795c466befae986f745e4
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~I4a73355f0baec3d83f3c63376d46776ba3c8deb3, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3227

(SIO-2157) tests: Use assertRegex in tests

assertRegex does not exist in Python 2.7, so a workaround is put in
oioioi.base.tests.TestCase that uses the old assertRegexpMatches which,
in turn, does not appear in Python 3.

Same for assertNotRegex{,pMatches}.

Change-Id: I4a73355f0baec3d83f3c63376d46776ba3c8deb3
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~I4a73355f0baec3d83f3c63376d46776ba3c8deb3, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3227

(SIO-2157) tests: Use assertRegex in tests

assertRegex does not exist in Python 2.7, so a workaround is put in
oioioi.base.tests.TestCase that uses the old assertRegexpMatches which,
in turn, does not appear in Python 3.

Same for assertNotRegex{,pMatches}.

Change-Id: I4a73355f0baec3d83f3c63376d46776ba3c8deb3
Comment by Gerrit Gerrit [ 2019-05-13 ]
Change oioioi~master~I1ff202c5a2810270d7a4d9ed570578eebb7b6d2e, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3228

(SIO-2157) tests: Fix many string type issues part 2

Change-Id: I1ff202c5a2810270d7a4d9ed570578eebb7b6d2e
Comment by Gerrit Gerrit [ 2019-05-14 ]
Change oioioi~master~I1ff202c5a2810270d7a4d9ed570578eebb7b6d2e, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3228

(SIO-2157) tests: Fix many string type issues part 2

Change-Id: I1ff202c5a2810270d7a4d9ed570578eebb7b6d2e




[SIO-2156] Adding API base Created: 2019-03-5  Updated: 2020-03-3  Resolved: 2019-06-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
It would be cool to have sio2 REST API!

The goal of this task is to create API base - establish authentication method and define general schema for requests.
It is the first step in creating an API. It will allow adding new end points easily.

 Comments   
Comment by Gerrit Gerrit [ 2019-04-1 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using django rest framework.
It also adds USE_API setting which allows to turn on and of
the API, sets up session and token authorization and
interactive documentation.

More information about the framework can be found on
its websire: django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3
Comment by Gerrit Gerrit [ 2019-04-1 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using django rest framework.
It also adds USE_API setting which allows to turn on and of
the API, sets up session and token authorization and
interactive documentation.

More information about the framework can be found on
its websire: django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3
Comment by Gerrit Gerrit [ 2019-04-1 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using django rest framework.
It also adds USE_API setting which allows to turn on and of
the API, sets up session and token authorization and
interactive documentation.

More information about the framework can be found on
its websire: django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3
Comment by Gerrit Gerrit [ 2019-04-1 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using django rest framework.
It also adds USE_API setting which allows to turn on and of
the API, sets up session and token authorization and
interactive documentation.

More information about the framework can be found on
its websire: django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3
Comment by Gerrit Gerrit [ 2019-04-2 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using DjangoRestFramework.
It also adds USE_API setting which allows to turn on and
off the API, sets up session, token authorization, and
interactive documentation.

More information about the framework can be found on
its website: http://django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using DjangoRestFramework.
It also adds USE_API setting which allows to turn on and
off the API, sets up session, token authorization, and
interactive documentation.

More information about the framework can be found on
its website: http://django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using DjangoRestFramework.
It also adds USE_API setting which allows to turn on and
off the API, sets up session, token authorization, and
interactive documentation.

More information about the framework can be found on
its website: http://django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using DjangoRestFramework.
It also adds USE_API setting which allows to turn on and
off the API, sets up session, token authorization, and
interactive documentation.

More information about the framework can be found on
its website: http://django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3
Comment by Gerrit Gerrit [ 2019-04-8 ]
Change oioioi~master~I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3178

(SIO-2156) Setup api base

This commit setups the API using DjangoRestFramework.
It also adds USE_API setting which allows to turn on and
off the API, sets up session, token authorization, and
interactive documentation.

More information about the framework can be found on
its website: http://django-rest-framework.org

Change-Id: I2aecd93e519ff1ef4055c9d9eb3e9a0c4d7c7af3




[SIO-2155] Fix Django deprecation warnings on 1.10 Created: 2019-03-5  Updated: 2021-03-22  Resolved: 2021-03-22

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Artur Puzio Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: migration

Issue Links:
Blocks
is blocked by SIO-2154 Increment Django version to 1.10 Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2232 Set the app_name attribute in urls mo... Sub-task Closed Szymon Acedański  
SIO-2233 Adapt old-style settings.MIDDLEWARE_C... Sub-task Closed Szymon Acedański  
SIO-2234 Change use of User.is_authenticated()... Sub-task Closed Szymon Acedański  
SIO-2235 Fix test_portals.json fixture Sub-task Closed Szymon Acedański  

 Comments   
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for warning generated by kombu package.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for warning generated by kombu package.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for 'on_delete' warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added exception for 'on_delete' warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-1 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-7 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
SIO-2235 Fix test_portals.json fixture

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
Comment by Gerrit Gerrit [ 2019-05-9 ]
Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3211

(no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

In the earlier similar commit class PendingDeprecationWarning was
not added to the list warning --> error (did not generated an error),
but it is now.
Additionally, new exceptions were added and appropriate
Jira issues were created:

SIO-2155 Set the app_name attribute in urls modules strikes back
SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version

Added an exception for warnings generated by external packages.

Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef




[SIO-2154] Increment Django version to 1.10 Created: 2019-03-5  Updated: 2020-03-3  Resolved: 2019-04-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Michalina Sidor Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration

Issue Links:
Blocks
blocks SIO-2155 Fix Django deprecation warnings on 1.10 Resolved
blocks SIO-2181 Check if ModelBackend and RemoteUserB... Resolved
blocks SIO-2189 Fix backwards incompatible changes in... Closed
is blocked by SIO-2153 Fix deprecation warnings found in tes... Closed
is blocked by SIO-2169 Understand consequences and enable Se... Closed
is blocked by SIO-2177 Fix backwards incompatible changes in... Closed
is blocked by SIO-2190 Replace NoArgsCommand with BaseCommand Closed
is blocked by SIO-2192 Replace OptionParser with ArgumentParser Closed
Duplicate
is duplicated by SIO-1835 Support Django 1.10 Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2164 Determine dependency versions for Dja... Sub-task Closed Szymon Acedański  

 Comments   
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change incremenets Django version to 1.10 and updates all relevant
dependencies.

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change incremenets Django version to 1.10 and updates all relevant
dependencies.

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~I360c4b4f50c09ca49088484630f7a5b34213185c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3166

(SIO-2154) Django 1.10

This change incremenets Django version to 1.10 and updates all relevant
dependencies.

Change-Id: I360c4b4f50c09ca49088484630f7a5b34213185c
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change incremenets Django version to 1.10 and updates all relevant
dependencies.

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change incremenets Django version to 1.10 and updates all relevant
dependencies.

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change incremenets Django version to 1.10 and updates all relevant
dependencies.

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-03-27 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 3 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates all relevant
dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets' render() and render_options() methods

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-3 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 4 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecetaed in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-6 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of 4 sub-changes:

(SIO-2164) This change incremenets Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecetaed in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-7 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
Comment by Gerrit Gerrit [ 2019-04-9 ]
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
https://gerrit.sio2project.mimuw.edu.pl/3163

(SIO-2154) Django 1.10

This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:

(SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.

(SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods

The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.

(SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods

(no-ticket) Django1.10 compatible urls.reverse patching

Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.

(SIO-2226) Fix tests for new logout behaviour

The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.

(SIO-2227) Fix argument parsing in management commands

In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.

(SIO-2228) Fix tests for new username field constraints

As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.

(SIO-2229) Fix tests for new string-to-boolean conversion

As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.

Co-authored-by: Michal Sidor <ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <ap395026@students.mimuw.edu.pl>

Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602




[SIO-2153] Fix deprecation warnings found in tests for Django 1.9 Created: 2019-03-5  Updated: 2020-03-3  Resolved: 2019-04-6

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: TAG 2018/19 Sprint 1

Type: Task Priority: Major
Reporter: Michalina Sidor Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration

Issue Links:
Blocks
blocks SIO-2154 Increment Django version to 1.10 Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SIO-2158 Set foreign key on_delete behaviour Sub-task Closed Szymon Acedański  
SIO-2162 Set the app_name attribute in urls mo... Sub-task Closed Szymon Acedański  
SIO-2163 Replace allow_tags attribute Sub-task Closed Szymon Acedański  
SIO-2168 Set on_delete behaviour in fields oth... Sub-task Closed Szymon Acedański  
SIO-2202 Remove usage of context_instance argu... Sub-task Closed Szymon Acedański  
SIO-2203 Add support for the `max_length` argu... Sub-task Closed Szymon Acedański  
SIO-2204 Remove usage of django.conf.urls.patt... Sub-task Closed Szymon Acedański  
SIO-2205 Remove usage of reversing urls by dot... Sub-task Closed Szymon Acedański  
SIO-2206 Always pass callable to url() Sub-task Closed Szymon Acedański  
SIO-2207 Always call render() with dict Sub-task Closed Szymon Acedański  
SIO-2208 Remove usage of deprecated unoficial ... Sub-task Closed Szymon Acedański  
SIO-2209 Use DISABLE_PANELS config instead of ... Sub-task Closed Szymon Acedański  
SIO-2210 Replace SimpleTestCase.url with @over... Sub-task Closed Szymon Acedański  

 Comments   
Comment by Gerrit Gerrit [ 2019-03-5 ]
Change oioioi~master~Ia4386599357b247a588606fe76f27f7a83ddff96, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3147

(SIO-2153) Unpin filetracker version for Python 3

The filetracker version specified by requirements_py3.txt conflicts with
the version specified in setup.py.

Change-Id: Ia4386599357b247a588606fe76f27f7a83ddff96
Comment by Gerrit Gerrit [ 2019-03-8 ]
Change oioioi~master~Idee264e2a739acbe784291034821c689f0ef8e20, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3152

(SIO-2153) Fix all remaining warnings

Fixed warnings:

- oioioi/oioioi/maintenancemode/templatetags/get_maintenance_state.py:8: RemovedInDjango20Warning: assignment_tag() is deprecated. Use simple_tag() instead

- oioioi/oioioi/participants/utils.py:105,112: RemovedInDjango20Warning: Usage of field.rel has been deprecated. Use field.remote_field instead.

Change-Id: Idee264e2a739acbe784291034821c689f0ef8e20
Comment by Gerrit Gerrit [ 2019-03-9 ]
Change oioioi~master~Idee264e2a739acbe784291034821c689f0ef8e20, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3152

(SIO-2153) Fix all remaining warnings

Fixed warnings:

- oioioi/oioioi/maintenancemode/templatetags/get_maintenance_state.py:8: RemovedInDjango20Warning: assignment_tag() is deprecated. Use simple_tag() instead

- oioioi/oioioi/participants/utils.py:105,112: RemovedInDjango20Warning: Usage of field.rel has been deprecated. Use field.remote_field instead.

Change-Id: Idee264e2a739acbe784291034821c689f0ef8e20
Comment by Gerrit Gerrit [ 2019-03-10 ]
Change oioioi~master~Idee264e2a739acbe784291034821c689f0ef8e20, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3152

(SIO-2153) Fix all remaining warnings

Fixed warnings:

- oioioi/oioioi/maintenancemode/templatetags/get_maintenance_state.py:8: RemovedInDjango20Warning: assignment_tag() is deprecated. Use simple_tag() instead

- oioioi/oioioi/participants/utils.py:105,112: RemovedInDjango20Warning: Usage of field.rel has been deprecated. Use field.remote_field instead.

Change-Id: Idee264e2a739acbe784291034821c689f0ef8e20
Comment by Gerrit Gerrit [ 2019-03-10 ]
Change oioioi~master~Ic8560ef083bd9a15208e2ff506c9fc5470e9cc94, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3154

(SIO-2153) django.forms.extras.widgets -> django.forms.widgets

This fixes following warning:

Change-Id: Ic8560ef083bd9a15208e2ff506c9fc5470e9cc94
RemovedInDjango20Warning: django.forms.extras is deprecated. You can find SelectDateWidget in django.forms.widgets instead.
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~Idee264e2a739acbe784291034821c689f0ef8e20, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3152

(SIO-2153) Fix all remaining warnings

Fixed warnings:

- oioioi/oioioi/maintenancemode/templatetags/get_maintenance_state.py:8: RemovedInDjango20Warning: assignment_tag() is deprecated. Use simple_tag() instead

- oioioi/oioioi/participants/utils.py:105,112: RemovedInDjango20Warning: Usage of field.rel has been deprecated. Use field.remote_field instead.

Change-Id: Idee264e2a739acbe784291034821c689f0ef8e20
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~Ic8560ef083bd9a15208e2ff506c9fc5470e9cc94, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3154

(SIO-2153) django.forms.extras.widgets -> django.forms.widgets

This fixes following warning:

RemovedInDjango20Warning: django.forms.extras is deprecated. You can find SelectDateWidget in django.forms.widgets instead.

Change-Id: Ic8560ef083bd9a15208e2ff506c9fc5470e9cc94
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I09a3af9066e1ec0480cab414be5bbce5cafc3c6b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3157

(SIO-2153) Stop using patterns in urls tests

`patterns` is removed in Django 1.10.

Change-Id: I09a3af9066e1ec0480cab414be5bbce5cafc3c6b
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I6d1fa8d850ca9eb0aa59cc64dd76db6a62834e3f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3159

(SIO-2153) Remove uses of optparse in management commands

BaseCommand.option_list was removed in Django 1.10 and needs to be
replaced.

Change-Id: I6d1fa8d850ca9eb0aa59cc64dd76db6a62834e3f
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I6d1fa8d850ca9eb0aa59cc64dd76db6a62834e3f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3159

(SIO-2153) Remove uses of optparse in management commands

BaseCommand.option_list was removed in Django 1.10 and needs to be
replaced.

Change-Id: I6d1fa8d850ca9eb0aa59cc64dd76db6a62834e3f
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I09a3af9066e1ec0480cab414be5bbce5cafc3c6b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3157

(SIO-2153) Stop using patterns in urls tests

`patterns` is removed in Django 1.10.

Change-Id: I09a3af9066e1ec0480cab414be5bbce5cafc3c6b
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~I09a3af9066e1ec0480cab414be5bbce5cafc3c6b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3157

(SIO-2153) Stop using patterns in urls tests

`patterns` is removed in Django 1.10.

Change-Id: I09a3af9066e1ec0480cab414be5bbce5cafc3c6b
Comment by Gerrit Gerrit [ 2019-03-14 ]
Change oioioi~master~I09a3af9066e1ec0480cab414be5bbce5cafc3c6b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3157

(SIO-2153) Stop using patterns in urls tests

`patterns` is removed in Django 1.10.

Change-Id: I09a3af9066e1ec0480cab414be5bbce5cafc3c6b
Comment by Gerrit Gerrit [ 2019-03-18 ]
Change oioioi~master~I6d1fa8d850ca9eb0aa59cc64dd76db6a62834e3f, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3159

(SIO-2153) Remove uses of optparse in management commands

BaseCommand.option_list was removed in Django 1.10 and needs to be
replaced.

Change-Id: I6d1fa8d850ca9eb0aa59cc64dd76db6a62834e3f
Comment by Artur Puzio [ 2019-03-24 ]
Okazuje się, że ktoś sprytnie umieścił "ignore::django.utils.deprecation.RemovedInDjango110Warning" w pytest.ini. To wyjaśnia dlaczego nie mieliśmy niektórych warningów.
Comment by Gerrit Gerrit [ 2019-04-4 ]
Change oioioi~master~I6068f3c262b0470a93dbe6d11c9919fe7e5f2be7, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3185

(SIO-2153) Treat deprecation warnings as errors

This change sets pytest to treat deprecation warnings to be treated
as errors. Some warnings are kept as only warnings (not errors) with
adequate description in pytest.ini

Change-Id: I6068f3c262b0470a93dbe6d11c9919fe7e5f2be7
Comment by Gerrit Gerrit [ 2019-04-4 ]
Change oioioi~master~I6068f3c262b0470a93dbe6d11c9919fe7e5f2be7, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3185

(SIO-2153) Treat deprecation warnings as errors

This change sets pytest to treat deprecation warnings to be treated
as errors. Some warnings are kept as only warnings (not errors) with
adequate description in pytest.ini

Change-Id: I6068f3c262b0470a93dbe6d11c9919fe7e5f2be7




[SIO-2152] Fix Python 3 test execution Created: 2019-03-5  Updated: 2019-03-26  Resolved: 2019-03-18

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2018/19 Sprint 1
Fix Version/s: None

Type: Task Priority: Major
Reporter: Michalina Sidor Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: migration
Environment: gerrit

Issue Links:
Blocks
blocks SIO-2157 Fix Python 3 tests Resolved

 Description   
Currently test execution fail at installing requirements because filetracker is pinned to 1.x in requirements_py3.txt and to >=2.1 in setup.py

 Comments   
Comment by Gerrit Gerrit [ 2019-03-5 ]
Change oioioi~master~Ia4386599357b247a588606fe76f27f7a83ddff96, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3147

(SIO-2152) Unpin filetracker version for Python 3

The filetracker version specified by requirements_py3.txt conflicts with
the version specified in setup.py.

Change-Id: Ia4386599357b247a588606fe76f27f7a83ddff96
Comment by Gerrit Gerrit [ 2019-03-10 ]
Change oioioi~master~Iceb45073ea6f7cbb9639f79ab6bd666a410b14ed, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3155

(SIO-2152) TODO: find a good name for this

Change-Id: Iceb45073ea6f7cbb9639f79ab6bd666a410b14ed
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~Iceb45073ea6f7cbb9639f79ab6bd666a410b14ed, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3155

(SIO-2152) Remove bytestring annotation that breaks Python 3

Bytes aren't considered a string type on Python 3, leading
DottedClassField to believe it has already imported the referenced
superclass.

Change-Id: Iceb45073ea6f7cbb9639f79ab6bd666a410b14ed
Comment by Gerrit Gerrit [ 2019-03-12 ]
Change oioioi~master~Iceb45073ea6f7cbb9639f79ab6bd666a410b14ed, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3155

(SIO-2152) Remove bytestring annotation that breaks Python 3

Bytes aren't considered a string type on Python 3, leading
DottedClassField to believe it has already imported the referenced
superclass.

Change-Id: Iceb45073ea6f7cbb9639f79ab6bd666a410b14ed




[SIO-2151] Enabling forum in existing contests Created: 2019-03-5  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None
Environment: master c8115e94ac2780431783397679af7947f08d48c7


 Description   
If you turn on forum module after creating a contests it's not possible to turn on forum in the contest through UI. (This may be solved by redesigning contest controller.)

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2150] Cannot search for first name + last name in list of all submits Created: 2019-02-19  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jakub Radoszewski Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
1. I go to submissions from the 2nd stage of 26th POI:
https://sio2.mimuw.edu.pl/c/oi26-2/admin/contests/submission/
2. I try to search for a contestant by first name and last name, e.g.:
https://sio2.mimuw.edu.pl/c/oi26-2/admin/contests/submission/?q=pawe%C5%82+kroll
No submissions.
3. Then I search for last name only:
https://sio2.mimuw.edu.pl/c/oi26-2/admin/contests/submission/?q=kroll
There are submissions.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2149] Selenium tests for unauthorized user Created: 2019-02-16  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
It is quite common to forget about unauthorized user when making changes. It often results in some undetected errors.

It would be nice to have test in which we just go around and expect not triggering 500. We could do similar tests for authorized users as well.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2148] Add a way to export participants from a single region Created: 2019-02-11  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
At onsite contests, each region needs to import a list of participants, with their participant number and full name, to the database on the region's vpn gateway.

It'd be useful if such a list could be exported from SIO2 in CSV format, or maybe even inserted directly to the region's mysql database, the same way ipathsynch downloads user-ip mappings.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2147] Error in template Created: 2019-02-5  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None
Environment: Szkopul


 Description   
"./manage.py compress" succeeds with following warning:
```
Invalid template /var/lib/sio2/oioioi/oioioi/problems/templates/admin/problems/problem- reupload.html: Invalid filter: 'add_class'
```

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2146] "Send Feedback" dance Created: 2019-01-28  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None
Environment: Szkopul

Attachments: File tanczacy formularzszkopul-2019-01-27_20.20.33.webm    

 Description   
The "Send Feedback" form available after pushing "send feedback" button on the right side of szkopul.mimuw.edu.pl moves between two different positions on the screen making it hard to fill it and submit it. I attach a video demonstrating the issue.

Tested Browsers:
- Mozilla Firefox 65.0.2 (64 bits) on Arch Linux - form dancing as in video
- Chromium 72.0.3626.121 (64 bits) on Arch Linux - OK

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2145] Allow enabling "participants" app without "oi" app Created: 2019-01-26  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None
Environment: Szkopuł

Issue Links:
Relates
relates to SIO-1825 participants app depends on oi app mi... Resolved
relates to SIO-1789 Squash migrations / optimize test run... Resolved

 Description   
When you enable participants app without oi app you currently get following exception when migrating
```
django.db.migrations.exceptions.NodeNotFoundError: Migration participants.0004_auto_20160412_1718 dependencies reference nonexistent parent node (u'oi', u'0002_auto_20160412_1720')
```

Hotfix on Szkopul removes that dependency. This dependency was created, becouse "onsiteregistration" was previously part of "oi" app and was moved to "participants" app. Correct order of migrations is important to preserve data in that table if "oi" app is used.

 Comments   
Comment by Wojciech Dubiel [ 2019-03-24 ]
Potencjalnie związane z SIO-1825 i SIO-1789
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2144] "Export submissions" timing out with big archives Created: 2019-01-26  Updated: 2020-12-16

Status: Reopened
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Wojciech Dubiel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by SIO-2392 Exportszu times out New

 Description   
When you try to export submissions, it will take a long time to generate an archive, and before OIOIOI starts sending it, it is likely that either a reverse proxy or the browser will time out.

One way to fix this would be to generate the archive asynchronously, and immediately send a response to the user stating that the archive will be available shortly. When the user refreshes the page, and the archive is already ready, the page will show a download link to the archive instead.

Another way could possibly be to start streaming the response while the archive is still being generated. Theoretically, tar should be capable of that. Not sure about Django.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.
Comment by Michalina Sidor [ 2020-04-27 ]
@kostka reports that this is still a desired feature
Comment by Michalina Sidor [ 2020-04-27 ]
About that, Django is definitely capable of streaming responses, there's a ridiculous/lovely hack recommended by the documentation https://docs.djangoproject.com/en/2.2/howto/outputting-csv/#streaming-csv-files




[SIO-2143] Fix CSS? in the problem list Created: 2019-01-26  Updated: 2019-03-26  Resolved: 2019-01-26

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File Screenshot from 2019-01-25 18.16.37.png    

 Comments   
Comment by Szymon Acedański [ 2019-01-26 ]
Already fixed in master




[SIO-2142] Add reason to Forum report Created: 2019-01-11  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Artur Puzio Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
We should require (and provide possibility) of specifying report reason when reporting forum posts. Multiple reports of one post (by different users) should also be allowed.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2141] Contest type not visible in settings Created: 2019-01-9  Updated: 2019-03-26  Resolved: 2019-01-17

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Bug Priority: Major
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy


 Description   
During edition of contest settings contest's type is not visible.

 Comments   
Comment by Gerrit Gerrit [ 2019-01-10 ]
Change oioioi~master~I1180aad0f282abd1b195d34efa22221cfdfdea9b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3123

SIO-2141 Contest type not visible in settings

Fix displaying contest type in settings

Change-Id: I1180aad0f282abd1b195d34efa22221cfdfdea9b




[SIO-2140] It is hard for people not involved in sio2project to report bugs Created: 2018-12-21  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
First of all, nowhere on the JIRA homepage does it say that they need to create an account at accounts.sio2project.mimuw.edu.pl.
There's only login form, and a confusing
"Not a member? To request an account, please contact your JIRA administrators."
text.

Secondly, many fields in the new issue form can be easily filled wrong:
- the "affected version" field is used in a non-standard way, that is confusing to newcomers, and isn't explained anywhere
- in the "component" it's easy to accidentally pick "sio2project website" instead of "OIOIOI" if one doesn't know that "OIOIOI" is actually the name of sio2's web interface.

 Comments   
Comment by Artur Puzio [ 2019-01-12 ]
Maybe we should use some JIRA integration with Github? Everybody is familiar with creating issues on Github and probably has an account there already.
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2139] Automatic deployment of contest tasks Created: 2018-12-21  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Dominik Klemba Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: easy
Environment: Web page.


 Description   
As the infrastructure used during the contest preparation phase may be based on git (for example, OI currently is), it would be nice to have automatic deployment.
My idea is to link the master branch in gitlab with SIO2, so that the contest always contains the latest content of the master branch. We want to avoid manual management of packages, as to avoid potential mistakes.

I believe that simplest realization is to create one "shareable" link per task to upload packages. Link works like "reupload package", so it cannot affect other tasks or create a new one.

API should be easy to connect with CI (like GitLab CI).
Access to CI may have more persons than to SIO contest!

Link revoking would be nice.

 Comments   
Comment by Artur Puzio [ 2019-01-7 ]
Hmm, I think the simplest solution would be to:
- Use Gitlab CI to build the package
- Have only one repository per task
- Submit the new package using a HTTP request.

So the process would be as follows:
Setup:
1. Create "CI" task on SIO2 instance. Copy the update URL and upload KEY.
2. Create repository with GitlabCI and our deployment CI config.
3. Put the URL and KEY to in Gitlab CI Variables.

Update behavior:
1. CI is trigger by new commit on master.
2. CI builds package.
3. CI pushes package by a HTTP request to SIO2
4. SIO2 updates the task
5. Rejudge is triggered on all submissions. (should it be triggered?)

We should also:
- limit changes to the task from SIO2 so an CI update won't undo changes (You should only make changes in repo)
- make the git commit hash visible on SIO2
Comment by Dominik Klemba [ 2019-01-7 ]
I agree with you.
We do have package building in SINOL3 OI-CI. We can handle everything from above from the CI's site.
And yes, we do have one repo per task. This is expected workflow with every git-based system.

> Submit the new package using a HTTP request.
We need specific link to do that.

> 5. Rejudge is triggered on all submissions. (should it be triggered?)
No, expected behavior should be same as with reupload package.

> - limit changes to the task from SIO2 so an CI update won't undo changes (You should only make changes in repo)
That would be amazing.

> - make the git commit hash visible on SIO2
Very good idea.

Thank you for your time.
Comment by Artur Puzio [ 2019-01-7 ]
OK, I will work on this after forum changes.
Comment by Dominik Klemba [ 2019-01-12 ]
Thank you very much. I will be grateful.
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2137] Add button "Rejudge not needed" to the problem menu when needed_rejudge is set to true Created: 2018-12-14  Updated: 2021-01-8  Resolved: 2021-01-8

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bartosz Kostka Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: tag2


 Description   
In many occasions (such as fixing a typo in a statement) rejudge is not needed and right now there's no way to change that.

 Comments   
Comment by Artur Puzio [ 2019-02-5 ]
That's one of the functionalities of staszic oioioi "extras" app. https://github.com/InformatykaNaStart/staszic-sio2/tree/master/extras

We might consider reusing parts of that code.
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.
Comment by Michalina Sidor [ 2020-04-27 ]
@kostka reports that this is still a desired feature
Comment by Gerrit Gerrit [ 2020-12-2 ]
Change oioioi~master~Ib298a8100de2d8b19be057806c76cffc49488ae8, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3556

SIO-2137 Add button 'rejudge not needed' to problem actions

Change-Id: Ib298a8100de2d8b19be057806c76cffc49488ae8
Comment by Gerrit Gerrit [ 2020-12-2 ]
Change oioioi~master~Ib298a8100de2d8b19be057806c76cffc49488ae8, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3556

SIO-2137 Add button 'rejudge not needed' to problem actions

Change-Id: Ib298a8100de2d8b19be057806c76cffc49488ae8
Comment by Gerrit Gerrit [ 2020-12-9 ]
Change oioioi~master~Ib298a8100de2d8b19be057806c76cffc49488ae8, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3556

SIO-2137 Add button 'rejudge not needed' to problem actions

Change-Id: Ib298a8100de2d8b19be057806c76cffc49488ae8
Comment by Gerrit Gerrit [ 2020-12-9 ]
Change oioioi~master~Ib298a8100de2d8b19be057806c76cffc49488ae8, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3556

SIO-2137 Add button 'rejudge not needed' to problem actions

Change-Id: Ib298a8100de2d8b19be057806c76cffc49488ae8
Comment by Gerrit Gerrit [ 2020-12-15 ]
Change oioioi~master~Ib298a8100de2d8b19be057806c76cffc49488ae8, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3556

SIO-2137 Add button 'rejudge not needed' to problem actions

Change-Id: Ib298a8100de2d8b19be057806c76cffc49488ae8




[SIO-2136] When submitting a testrun, if the input file name ends with .zip, but is not a zip at all, a 500 error occurs. Created: 2018-12-13  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Sentry Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: easy


 Description   
https://sentry.io/share/issue/7615199e8d7045588582f8077a5ecc5f/

{code}
BadZipfile: File is not a zip file
  File "oioioi/base/utils/archive.py", line 189, in __init__
    self._archive = zipfile.ZipFile(file)
  File "oioioi/base/utils/archive.py", line 66, in __init__
    self._archive = self._archive_cls(file, ext=ext)(file)
  File "oioioi/testrun/controllers.py", line 128, in validate_zip
    archive = Archive(file, '.zip')
  File "oioioi/contests/forms.py", line 234, in is_valid
    return forms.Form.is_valid(self)
  File "oioioi/testrun/views.py", line 30, in testrun_submit_view
    if form.is_valid():
...
(14 additional frame(s) were not displayed)

BadZipfile: File is not a zip file
{code}

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2135] Race condition in "1 NEW MESSAGE" navbar badge Created: 2018-12-12  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Sentry Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
https://sentry.io/share/issue/e0420926c0074253a216e74dc64de221/

{code}
MultipleObjectsReturned: get() returned more than one Message -- it returned 2!
  File "oioioi/questions/processors.py", line 49, in navbar_messages_generator
    m = messages.get()
  File "oioioi/base/utils/__init__.py", line 353, in cacher
    request._cache[fn] = fn(request)
  File "oioioi/questions/processors.py", line 27, in get_messages
    response['messages'] = navbar_messages_generator(request)
  File "oioioi/status/utils.py", line 21, in get_status
    response = fun(request, response)
  File "oioioi/status/views.py", line 7, in get_status_view
    return get_status(request)
...
(5 additional frame(s) were not displayed)

MultipleObjectsReturned: get() returned more than one Message -- it returned 2!
{code}

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2134] Review items in contest admin menu Created: 2018-12-12  Updated: 2020-03-3  Resolved: 2019-04-1

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Some items in settings should be available to contest admins, like adding links to contest menu

 Comments   
Comment by Gerrit Gerrit [ 2019-01-13 ]
Change oioioi~master~Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3124

SIO-2134 Review options visible in contest admins

There are functions has_add(/change/delete)_premmission which
should be added to class representing item in admin.py wherever
to affect it visibility. They were missing in several places and
in others just returned True or checked premissions guaranted by
adding module to proper admin object.

Now the functions are added to super class and by default return
True as it is most common intention when adding an item to menu.

Change-Id: Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3
Comment by Gerrit Gerrit [ 2019-01-16 ]
Change oioioi~master~Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3124

SIO-2134 Review options visible in contest admins

There are functions has_add(/change/delete)_premmission which
should be added to class representing item in admin.py wherever
to affect it visibility. They were missing in several places and
in others just returned True or checked premissions guaranted by
adding module to proper admin object.

Now the functions are added to super class and by default return
True as it is most common intention when adding an item to menu.

Change-Id: Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3
Comment by Gerrit Gerrit [ 2019-01-16 ]
Change oioioi~master~Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3124

SIO-2134 Review options visible in contest admins

There are functions has_add(/change/delete)_premmission which
should be added to class representing item in admin.py wherever
to affect it visibility. They were missing in several places and
in others just returned True or checked premissions guaranted by
adding module to proper admin object.

Now the functions are added to super class and by default return
True as it is most common intention when adding an item to menu.

Change-Id: Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3
Comment by Gerrit Gerrit [ 2019-01-16 ]
Change oioioi~master~Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3124

SIO-2134 Review options visible in contest admins

There are functions has_add(/change/delete)_premmission which
should be added to class representing item in admin.py wherever
to affect it visibility. They were missing in several places and
in others just returned True or checked premissions guaranted by
adding module to proper admin object.

Now the functions are added to super class and by default return
True as it is most common intention when adding an item to menu.

Change-Id: Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3
Comment by Gerrit Gerrit [ 2019-01-22 ]
Change oioioi~master~Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3124

SIO-2134 Review options visible in contest admins

There are functions has_add(/change/delete)_premmission which
should be added to class representing item in admin.py wherever
to affect it visibility. They were missing in several places and
in others just returned True or checked premissions guaranted by
adding module to proper admin object.

Now the functions are added to super class and by default return
True as it is most common intention when adding an item to menu.

Change-Id: Iab9a8d4eedb242f618c2bbebcfda6af5d163a3d3




[SIO-2133] Block reporting forum posts that have already been reviewed Created: 2018-12-12  Updated: 2019-03-26  Resolved: 2019-01-30

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Improvement Priority: Minor
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy


 Description   
We want to avoid situations when post is reported, then reviewed by admins and reported again. However, this should be possible if author edits the post,
so report -> review -> edit -> report should be allowed.

 Comments   
Comment by Marek Żochowski [ 2019-01-21 ]
Because of the future change "SIO-2142 Add reason to Forum report" it would be better to just add a possibility for the admins to manually mark the given post as "good". When the author edits the post it should be automatically unmarked (as if it was written for the first time).
Comment by Gerrit Gerrit [ 2019-01-24 ]
Change oioioi~master~I17bd884bcfb393359665db30b853769c3d1b2111, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3131

SIO-2133 Block reporting forum posts that have already been reviewed

Add option to approve forum posts (it prevents them from being reported)

Change-Id: I17bd884bcfb393359665db30b853769c3d1b2111
Comment by Gerrit Gerrit [ 2019-01-24 ]
Change oioioi~master~I17bd884bcfb393359665db30b853769c3d1b2111, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3131

SIO-2133 Block reporting forum posts that have already been reviewed

Add option to approve forum posts (it prevents them from being reported)
Improve code segmentation

Change-Id: I17bd884bcfb393359665db30b853769c3d1b2111
Comment by Gerrit Gerrit [ 2019-01-27 ]
Change oioioi~master~I17bd884bcfb393359665db30b853769c3d1b2111, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3131

SIO-2133 Block reporting forum posts that have already been reviewed

Add option to approve forum posts (it prevents them from being reported)
Improve code segmentation
Change function name in models.py to better one and shorten
approval information displayed on post.
Add option to revoke approval of the post from the forum view.

Change-Id: I17bd884bcfb393359665db30b853769c3d1b2111




[SIO-2132] Change submission messages to be more readable Created: 2018-12-12  Updated: 2019-01-31  Resolved: 2019-01-31

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Piotr Wojtczak Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy

Issue Links:
Relates
is related to SIO-2131 Fix submission messages to display th... Closed

 Description   
Every message the user gets back in their submission report is now abreviated, such as INI_OK or CE. Meanings of those are not obvious to new users and thus they should be changed to something more understandable.

 Comments   
Comment by Piotr Wojtczak [ 2019-01-31 ]
Turned out the messages were in the code, but they had to be fixed (issue SIO-2131)




[SIO-2131] Fix submission messages to display the full name Created: 2018-12-7  Updated: 2019-01-31  Resolved: 2019-01-31

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy

Issue Links:
Relates
relates to SIO-2132 Change submission messages to be more... Closed

 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 with SIO-1600

 Comments   
Comment by Gerrit Gerrit [ 2019-01-28 ]
Change oioioi~master~I7a9d5b8e9dfc31c6898e67f6c251f594c99e6967, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3136

SIO-2131 Some submission statuses display as internal acronym instead of their full display name

It turned out that classes that used the submission_statuses registry referenced an early made copy.
Making those read only properties allowing fetching when accessed resolved the issue.

Change-Id: I7a9d5b8e9dfc31c6898e67f6c251f594c99e6967
Comment by Gerrit Gerrit [ 2019-01-28 ]
Change oioioi~master~I7a9d5b8e9dfc31c6898e67f6c251f594c99e6967, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3136

SIO-2131 Some submission statuses display as internal acronym instead of their full display name

It turned out that classes that used the submission_statuses registry referenced an early made copy.
Making those read only properties allowing fetching when accessed resolved the issue.

Change-Id: I7a9d5b8e9dfc31c6898e67f6c251f594c99e6967
Comment by Gerrit Gerrit [ 2019-01-30 ]
Change oioioi~master~I7a9d5b8e9dfc31c6898e67f6c251f594c99e6967, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3136

SIO-2131 Fix submission messages to display the full name

It turned out that classes that used the submission_statuses registry referenced an early made copy.
Making those read only properties allowing fetching when accessed resolved the issue.

Change-Id: I7a9d5b8e9dfc31c6898e67f6c251f594c99e6967




[SIO-2130] When a user changes their contest registration data, rankings are not updated Created: 2018-12-6  Updated: 2020-03-3  Resolved: 2019-01-18

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Iwona Kotlarska
Resolution: Fixed Votes: 0
Labels: easy

Issue Links:
Relates
relates to SIO-1896 Invalidate (regenerate) ranking after... Resolved

 Description   
When a user changes their registration data in a way that affects their public display name (eg. changes the anonymous option, or their real name), the rankings still display the old display name.
If the rankings aren't regenerated by someone's score changing, or by manually calling invalidate_contest from manage.py shell, the old name will stay in there forever.

 Comments   
Comment by Gerrit Gerrit [ 2019-01-15 ]
Change oioioi~master~I66e5e59bd62659beaec06521d5f4a470d1d14368, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3125

(SIO-2130) Update rankings after contest registration data change

When user changes their registration data, rankings were not updated.
Now they are marked as invalid for the rankingsraemon to recalculate.

Change-Id: I66e5e59bd62659beaec06521d5f4a470d1d14368
Comment by Gerrit Gerrit [ 2019-01-15 ]
Change oioioi~master~I66e5e59bd62659beaec06521d5f4a470d1d14368, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3125

(SIO-2130) Update rankings after contest registration data change

When user changes their registration data, rankings were not updated.
Now they are marked as invalid for the rankingsdaemon to recalculate.

Change-Id: I66e5e59bd62659beaec06521d5f4a470d1d14368
Comment by Gerrit Gerrit [ 2019-01-16 ]
Change oioioi~master~I66e5e59bd62659beaec06521d5f4a470d1d14368, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3125

(SIO-2130) Update rankings after contest registration data change

When user changes their registration data, rankings were not updated.
Now they are marked as invalid for the rankingsdaemon to recalculate.

Change-Id: I66e5e59bd62659beaec06521d5f4a470d1d14368
Comment by Gerrit Gerrit [ 2019-01-16 ]
Change oioioi~master~I66e5e59bd62659beaec06521d5f4a470d1d14368, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3125

(SIO-2130) Update rankings after contest registration data change

When user changes their registration data, rankings were not updated.
Now they are marked as invalid for the rankingsdaemon to recalculate.

Change-Id: I66e5e59bd62659beaec06521d5f4a470d1d14368
Comment by Gerrit Gerrit [ 2019-01-17 ]
Change oioioi~master~I66e5e59bd62659beaec06521d5f4a470d1d14368, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3125

(SIO-2130) Update rankings after contest registration data change

When user changes their registration data, rankings were not updated.
Now they are marked as invalid for the rankingsdaemon to recalculate.

Change-Id: I66e5e59bd62659beaec06521d5f4a470d1d14368




[SIO-2129] Publication date of announcements and questions replies doesn't work Created: 2018-12-4  Updated: 2019-03-26  Resolved: 2018-12-8

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy


 Description   
When replying to a question, or adding a public announcement, you can set a publication date.
However, this date seems to be ignored.
Even if you set it to some time in the future, participants will still be able to see the reply/announcement immediately after you post it.

 Comments   
Comment by Zuzanna Opała [ 2018-12-4 ]
It is strange issue because it seems that problem is on the frontend side - publication date does not appear in the post data. It's even stranger because corresponding input element have correctly set value.
Comment by Gerrit Gerrit [ 2018-12-6 ]
Change oioioi~master~Ide3e39cf0b6a8163f07ab4d8ebf87b5d01d2676c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3112

SIO-2129 Fix publication date

At some point publication date stopped working. It turned out that
our widget for date picking doesn't set correct name in the form
and value from input was actualy never send in the post data.

Change-Id: Ide3e39cf0b6a8163f07ab4d8ebf87b5d01d2676c




[SIO-2128] Forum category view breaks when there is thread without any posts Created: 2018-12-3  Updated: 2019-03-26  Resolved: 2019-02-13

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Zuzanna Opała Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy


 Description   
It can happen when all posts where deleted. Category view looks for author of last post in each thread and fails when there is thread with no last post.

 Comments   
Comment by Zuzanna Opała [ 2018-12-3 ]
Traceback (most recent call last):
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/core/ handlers/base.py", line 174, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/core/ handlers/base.py", line 172, in get_response
    response = response.render()
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/response.py", line 160, in render
    self.content = self.rendered_content
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/response.py", line 137, in rendered_content
    content = template.render(context, self._request)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/backends/django.py", line 95, in render
    return self.template.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 206, in render
    return self._render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/test/ utils.py", line 92, in instrumented_test_render
    return self.nodelist.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    bit = node.render_annotated(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/base.py", line 959, in render_annotated
    return self.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render
    return compiled_parent._render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/test/ utils.py", line 92, in instrumented_test_render
    return self.nodelist.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    bit = node.render_annotated(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/base.py", line 959, in render_annotated
    return self.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render
    return compiled_parent._render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/test/ utils.py", line 92, in instrumented_test_render
    return self.nodelist.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    bit = node.render_annotated(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/base.py", line 959, in render_annotated
    return self.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render
    return compiled_parent._render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/test/ utils.py", line 92, in instrumented_test_render
    return self.nodelist.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    bit = node.render_annotated(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/base.py", line 959, in render_annotated
    return self.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 69, in render
    result = block.nodelist.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    bit = node.render_annotated(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/base.py", line 959, in render_annotated
    return self.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 69, in render
    result = block.nodelist.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    bit = node.render_annotated(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/base.py", line 959, in render_annotated
    return self.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 326, in render
    return nodelist.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    bit = node.render_annotated(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/base.py", line 959, in render_annotated
    return self.render(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 220, in render
    nodelist.append(node.render_annotated(context))
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/ template/base.py", line 959, in render_annotated
    return self.render(context)
  File "/media/data/sio2/oioioi/oioioi/contests/templatetags/get_user_name.py", line 25, in render
    'target_user': self.target_user.resolve(context),
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 850, in resolve
    value = self._resolve_lookup(context)
  File "/media/data/sio2/venv/local/lib/python2.7/site-packages/django/template/base.py", line 905, in _resolve_lookup
    (bit, current)) # missing attribute
VariableDoesNotExist: Failed lookup for key [author] in u'None'
Comment by Zuzanna Opała [ 2018-12-3 ]
Exact place:
In template /sio2/oioioi/oioioi/forum/templates/forum/category.html, error at line 66:
65 <small>
66 {% full_name t.last_post.author as author_link %}
67 {% blocktrans with date=t.last_post.add_date author=author_link last_id=t.last_post.id %}
68 <a href="{{ thread_link }}#forum-post-{{ last_id }}">{{ date }}</a>, by {{ author }}
69 {% endblocktrans %}
70 </small>
Comment by Gerrit Gerrit [ 2019-01-16 ]
Change oioioi~master~I7bf5464bba04d765d77e6196ef518240e802364f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3126

SIO-2128 Fix category view when thread is empty

Now the last post filed is empty in this case.

Change-Id: I7bf5464bba04d765d77e6196ef518240e802364f
Comment by Gerrit Gerrit [ 2019-01-16 ]
Change oioioi~master~I7bf5464bba04d765d77e6196ef518240e802364f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3126

SIO-2128 Fix category view when thread is empty

Now the last post filed is empty in this case.

Change-Id: I7bf5464bba04d765d77e6196ef518240e802364f




[SIO-2126] IntegrityError when removing a problem instance while it's being checked Created: 2018-11-26  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Michalina Sidor Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
https://sentry.io/share/issue/c6a8d258e06e4db9a9d62d7ced5bfa91/

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2125] Allow moderators to ban people on the contest forum Created: 2018-11-19  Updated: 2019-03-26  Resolved: 2019-01-28

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Next Sprint
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Some people cannot use the forum, so we'd like to be able to ban them from using it.

 Comments   
Comment by Gerrit Gerrit [ 2019-01-7 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-7 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-8 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-8 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-8 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-8 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-8 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-9 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-11 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests
- Fixed css class of Django messages with type error

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-11 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests
- Fixed css class of Django messages with type error

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Gerrit Gerrit [ 2019-01-16 ]
Change oioioi~master~I995e9c12bd1dbb6c48660d056ede9f30d1d381c6, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3122

(SIO-2125) Forum ban

- Implemented forum banning. Banned users can't interact with forum
including reporting posts.
- Refactored forum authorization checks
- Other refactoring
- Improved tests
- Fixed css class of Django messages with type error

Change-Id: I995e9c12bd1dbb6c48660d056ede9f30d1d381c6
Comment by Artur Puzio [ 2019-01-28 ]
Changes merged to master




[SIO-2124] Incorrect input archive for testrun causes System Error Created: 2018-11-15  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
In a contest with testruns enabled, a participant can send send their own code with their own input to be ran in our evaluation environment.

The specified input file can either be a raw input file, or a zip archive containing a single file with the input data.

If the archive contains multiple files and its extension is not .zip,
the form will not show an error about multiple files,
but workers will detect that there's more than one file, and trigger a SystemError.

The form should validate the archive in the same (or more strict) way than workers do.
Particularly, the method of detecting if something is a zip should be the same in oioioi and workers.
Another way to do it would be to have oioioi explicitely tell the workers if the input is the zip or not. (The workers would still validate if there's only one archive member and unpack it, but wouldn't try to detect if the input is a zip or not.)

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2123] null-sandbox has incorrect extension Created: 2018-11-9  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: easy


 Description   
As described in the documentation ( https://sioworkers.readthedocs.io/en/latest/#sandboxes ) null-sandbox.tar.gz has a .tar.gz extension, even though it's an uncompressed tar archive, which should have just .tar extension.

It's possible that this sandbox will fail to unpack because of it. We don't know for sure, because nobody uses this sandbox.

Still this should be fixed, eg. by renaming the sandbox to null-sandbox.tar, or by compressing it with gzip, so that it really is .tar.gz, and adjusting the documentation to reflect the change.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2122] Allow customization of 'terms accepted' field in OI's registration form from OIOIOI Created: 2018-11-8  Updated: 2019-03-26  Due: 2018-11-20  Resolved: 2019-01-9

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: Current Version

Type: Improvement Priority: Minor
Reporter: Marek Żochowski Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy


 Description   
We want to add new option in contest settings that allows customization of the mentioned field by the contest admins in OIOIOI. It should be possible to add custom description and hyperlinks to contest's terms and conditions.

 Comments   
Comment by Gerrit Gerrit [ 2018-11-17 ]
Change oioioi~master~I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3100

SIO-2122 Allow customization of 'terms accepted' field in OI's registration form from OIOIOI

From now on it is possible for contests' admins to customize phrase asking
participants to accept contest's terms in custom registration form.
It is used in OI and PA type contests, so this functionality was added
only in the metioned ones.

Change-Id: I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36
Comment by Gerrit Gerrit [ 2018-11-20 ]
Change oioioi~master~I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3100

SIO-2122 Allow customization of 'terms accepted' field in OI's registration form from OIOIOI

From now on it is possible for contests' admins to customize phrase asking
participants to accept contest's terms in custom registration form.
It is used in OI and PA type contests, so this functionality was added
only in the metioned ones.

Change-Id: I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36
Comment by Gerrit Gerrit [ 2018-11-21 ]
Change oioioi~master~I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3100

SIO-2122 Allow customization of 'terms accepted' field in OI's registration form from OIOIOI

From now on it is possible for contests' admins to customize phrase asking
participants to accept contest's terms in custom registration form.
It is used in OI and PA type contests, so this functionality was added
only in the metioned ones.

Fixed problem with contests without custom phrase.

Change-Id: I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36
Comment by Gerrit Gerrit [ 2018-11-22 ]
Change oioioi~master~I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3100

SIO-2122 Allow customization of 'terms accepted' field in OI's registration form from OIOIOI

From now on it is possible for contests' admins to customize phrase asking
participants to accept contest's terms in custom registration form.
It is used in OI and PA type contests, so this functionality was added
only in the metioned ones.

Fixed problem with contests without custom phrase.
Added tests.

Change-Id: I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36
Comment by Gerrit Gerrit [ 2018-11-28 ]
Change oioioi~master~I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3100

SIO-2122 Allow customization of 'terms accepted' field in OI's registration form from OIOIOI

From now on it is possible for contests' admins to customize phrase asking
participants to accept contest's terms in custom registration form.
It is used in OI and PA type contests, so this functionality was added
only in the metioned ones.

Fixed problem with contests without custom phrase.
Added tests.

Change-Id: I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36
Comment by Gerrit Gerrit [ 2018-11-28 ]
Change oioioi~master~I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3100

SIO-2122 Allow customization of 'terms accepted' field in OI's registration form from OIOIOI

From now on it is possible for contests' admins to customize phrase asking
participants to accept contest's terms in custom registration form.
It is used in OI and PA type contests, so this functionality was added
only in the metioned ones.

Fixed problem with contests without custom phrase.
Added tests.

Change-Id: I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36
Comment by Gerrit Gerrit [ 2018-12-5 ]
Change oioioi~master~I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3100

SIO-2122 Allow customization of 'terms accepted' field in OI's registration form from OIOIOI

From now on it is possible for contests' admins to customize phrase asking
participants to accept contest's terms in custom registration form.
It is used in OI and PA type contests, so this functionality was added
only in the metioned ones.

Fixed problem with contests without custom phrase.
Added tests.
Additional fix concerning admin edit permisions.

Change-Id: I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36
Comment by Gerrit Gerrit [ 2018-12-10 ]
Change oioioi~master~I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3100

SIO-2122 Allow customization of 'terms accepted' field in OI's registration form from OIOIOI

From now on it is possible for contests' admins to customize phrase asking
participants to accept contest's terms in custom registration form.
It is used in OI and PA type contests, so this functionality was added
only in the metioned ones.

Fixed problem with contests without custom phrase.
Added tests concerning participant view.
Additional fix concerning admin edit permisions.
Added tests concerning admin view.

Change-Id: I7a5a415573f7521bc8b6f79ae497dfe14dbbbf36




[SIO-2121] Missing admin.css when editing problem instance Created: 2018-11-6  Updated: 2019-03-26  Resolved: 2018-11-8

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Jakub Bartmiński Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates SIO-2033 Tests table while editing probleminst... Closed
Relates
relates to SIO-2033 Tests table while editing probleminst... Closed

 Description   
Editing the problem instance page links to the nonexistent programs/admin.css stylesheet - 404 status can be seen in the network monitor in browser developer tools.
The file oioioi/oioioi/programs/admin.py seems to be at fault, with the nonexistent file link appearing in class Media within class TestInline

 Comments   
Comment by Gerrit Gerrit [ 2018-11-7 ]
Change oioioi~master~I0954cf35797512ce9a259d360e7119e38457d49f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3090

[SIO-2121] Drop broken link to programs/admin.css

The stylesheet file was deleted when switching to bootstrap 3:

7c275e6206b521567898ebc881cac12e47322b90

It would seem that this link should've been deleted along with it, since
now it only causes 404 errors on loading the edit problem instance page.

Change-Id: I0954cf35797512ce9a259d360e7119e38457d49f
Comment by Gerrit Gerrit [ 2018-11-8 ]
Change oioioi~master~I0954cf35797512ce9a259d360e7119e38457d49f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3090

[SIO-2121] Drop broken link to programs/admin.css

The stylesheet file was deleted when switching to bootstrap 3:

7c275e6206b521567898ebc881cac12e47322b90

It would seem that this link should've been deleted along with it, since
now it only causes 404 errors on loading the edit problem instance page.

Change-Id: I0954cf35797512ce9a259d360e7119e38457d49f




[SIO-2120] Task archive improvements Created: 2018-10-24  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Right now problems in task archive are set more or less manually (one have to create a new site, add problems by url and so on).

Can we have a more structured task archive, I mean:
- we can have a tree of contests (for example Contests > OI > XXI OI > II stage > First day), then problems can be attached to the corresponding nodes,
- then we can have cool URLs (people complain that the problem URLs are unnecessarily long, MAIN had way better URLs, for instance: main.edu.pl/archive/oi/12/nad/, if I remember correctly),
- then we can have some cool statistics (for example you have solved 95% of all tasks from OI).



 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2119] Dismissing report automatically hides the post on forum Created: 2018-10-24  Updated: 2019-03-26  Resolved: 2019-03-8

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Cannot Reproduce Votes: 0
Labels: None


 Comments   
Comment by Artur Puzio [ 2019-02-5 ]
I don't believe this still happens. Can you reproduce the issue?




[SIO-2118] Supervisor return a error code when use sandboxes. Created: 2018-09-2  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: Evaluation Engine / Workers, OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Kacper Omieliańczyk Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None
Environment: Ubuntu 16.04 LTS, 1 GB RAM


 Description   
When I use sandboxes supervisor gives error return code 127 (commented two lines in settings.py: USE_UNSAFE_EXEC and USE_LOCAL_COMPILERS).

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2117] Crash workers, problem with filetracker and sioworkers Created: 2018-09-2  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: Evaluation Engine / Workers, Filetracker
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Kacper Omieliańczyk Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None
Environment: Ubuntu 16.04 LTS, 1 GB RAM


 Description   
I have a OIOIOI. I want to have a separate sioworker. I installed it according to the instructions on a separate server and set it up.

(SIOWORKER - supervisord-conf-vars.conf:)
(OIOIOI - a fragment of settings.py from filetracker:)

When in OIOIOI settings.py I set FILETRACKER_URL as it is then ordinary (I guess in OIOIOI) worker does not work and filetracker (even if I can not submit solution 502 Bad Gateway). Error of worker:
For when I set it to 127.0.0.1 or 0.0.0.0 (same port) then this second checker does not work and gives:

81.x.x.x - OIOIOI IP ADDRESS
80.x.x.x - SIOWORKER IP ADDRESS

Janek - OIOIOI\s name of server
Wacek - new sioworker's name of server.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2116] OIOIOI require Django 1.9, but django-otp require >= 1.11 Created: 2018-09-1  Updated: 2019-03-26  Resolved: 2018-10-24

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Kacper Omieliańczyk Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None
Environment: Ubuntu 16.04 LTS, 1GB RAM


 Description   
When I execute pip -r requirements.txt I got: https://pastebin.com/7bJ1PwTY.
And oioioi-create-config deployment: https://pastebin.com/iN4kAUYC.

(Error in built sioworkers, I will solve this problem by installing sioworker on another server)

 Comments   
Comment by Szymon Acedański [ 2018-09-1 ]
Nice, this one is way better.
What about preparing a pull request (on Github) which limits django-otp in setup.py to a compatible version?
Comment by Kacper Omieliańczyk [ 2018-09-1 ]
I create pull request on Github. I added to setup.py installation django-otp in version 0.3.4




[SIO-2115] SystemCheckError: Your URL pattern ... is invalid Created: 2018-09-1  Updated: 2018-09-1  Resolved: 2018-09-1

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Kacper Omieliańczyk Assignee: Szymon Acedański
Resolution: Incomplete Votes: 0
Labels: None
Environment: Ubuntu Server 16.04 LTS, 1 GB RAM, Django v. 1.11.15


 Description   
When I execute ./manage.py migrate I have:
https://pastebin.com/zBrYxiM8

 Comments   
Comment by Szymon Acedański [ 2018-09-1 ]
Artur, I tentatively assigned you to this one, as the logs contain a lot of two_factor, which was your change.
Comment by Szymon Acedański [ 2018-09-1 ]
OIOIOI requires Django 1.9 (https://github.com/sio2project/oioioi/blob/master/setup.py#L35)
Comment by Kacper Omieliańczyk [ 2018-09-1 ]
Ok, but then I have: https://jira.sio2project.mimuw.edu.pl/browse/SIO-2116
Comment by Artur Jamro [ 2018-09-1 ]
I don't have time to investigate it these days, but here's something that can help: https://gerrit.sio2project.mimuw.edu.pl/#/c/2946/ - my first comment explains some of login entry points. Maybe there are more comments like this one in that PR and these ones: https://gerrit.sio2project.mimuw.edu.pl/#/q/status:merged+2fa

I remember it wasn't obvious how I should solve problem with logging in and it required good understanding of the system and testing how different solutions work.




[SIO-2114] Problem-related controllers Created: 2018-08-19  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Right now, on Szkopuł, we can set only one global controller for judging the problems in the problemset (and task archive). The problem is that the problems come from different competitions and we need different controllers for them.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2113] Initial report is not available after the final report is available. Created: 2018-08-19  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bartosz Kostka Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Users cannot see the initial report (with sample tests) after the submission was graded on the final tests.
Ex: https://szkopul.edu.pl/s/822450

 Comments   
Comment by Gerrit Gerrit [ 2018-08-19 ]
Change oioioi~master~I9fe48f37ee6cf9edb35dbb56f1c56073c7a131ea, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3054

(SIO-2113) Make initial reports show up in out-of-contest submissions too

Looks like non-programming submissions don't have initial reports,
so initial reports are only made to be visible by the programs module
in programming contests.
However, they're not made visible in programming problems.

Fix this by overriding filter_visible_reports
in ProgrammingProblemController.

Change-Id: I9fe48f37ee6cf9edb35dbb56f1c56073c7a131ea
Comment by Gerrit Gerrit [ 2019-01-26 ]
Change oioioi~master~I9fe48f37ee6cf9edb35dbb56f1c56073c7a131ea, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3054

(SIO-2113) Make initial reports show up in out-of-contest submissions too

Looks like non-programming submissions don't have initial reports,
so initial reports are only made to be visible by the programs module
in programming contests.
However, they're not made visible in programming problems.

Fix this by overriding filter_visible_reports
in ProgrammingProblemController.

Change-Id: I9fe48f37ee6cf9edb35dbb56f1c56073c7a131ea
Comment by Gerrit Gerrit [ 2019-03-24 ]
Change oioioi~master~I9fe48f37ee6cf9edb35dbb56f1c56073c7a131ea, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3054

(SIO-2113) Make initial reports show up in out-of-contest submissions too

Looks like non-programming submissions don't have initial reports,
so initial reports are only made to be visible by the programs module
in programming contests.
However, they're not made visible in programming problems.

Fix this by overriding filter_visible_reports
in ProgrammingProblemController.

Change-Id: I9fe48f37ee6cf9edb35dbb56f1c56073c7a131ea
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2112] Display menu on mobile view in contests Created: 2018-06-5  Updated: 2019-03-26  Resolved: 2018-06-6

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Olaf Łobożewicz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Contest menu is unavailable on mobile view right now.

 Comments   
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~Id6e3006ac17a80d0e4921a96947a0edb850a2de5, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3043

(SIO-2112) Display menu on mobile view in contests

Contest menu is unavailable on mobile view right now.

Change-Id: Id6e3006ac17a80d0e4921a96947a0edb850a2de5




[SIO-2111] Add python 3 non-blocking tests to tests run on gerrit commit in oioioi Created: 2018-05-29  Updated: 2019-03-26  Resolved: 2018-05-29

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 3

Type: Improvement Priority: Major
Reporter: Norbert Siwek Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2090 Start making changes towards migratin... Closed
TAG Developer: Norbert Siwek

 Comments   
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change oioioi~master~I6f0b7c02a18af61ab421386a408644554af7bb46, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3022

(SIO-2111) Test change

Change-Id: I6f0b7c02a18af61ab421386a408644554af7bb46




[SIO-2110] Make filetracker compression adaptive Created: 2018-05-28  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: Filetracker
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Pavel Senchanka Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Right now, filetracker client and server compress all files, even in cases where this doesn't make sense:
1) for very small files, size after compression may be higher than before
2) for already compressed files (.zip, .gz), compressing them once more on the filetracker level makes no sense

Both client and server should be modified to support both compressed and not compressed files.

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2109] Add python 3 tests to tests run on gerrit commit in sioworkers Created: 2018-05-22  Updated: 2019-03-26  Resolved: 2018-05-29

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 3

Type: Improvement Priority: Major
Reporter: Norbert Siwek Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2090 Start making changes towards migratin... Closed
TAG Developer: Norbert Siwek

 Description   
We want python 3 unit tests to be run on every gerrit commit.

 Comments   
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change sioworkers~master~I1588b1892c101299ae7cfa117fc8766b712b7341, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3021

(SIO-2109) TEST CHANGE

Change-Id: I1588b1892c101299ae7cfa117fc8766b712b7341
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change sioworkers~master~I1588b1892c101299ae7cfa117fc8766b712b7341, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3021

(SIO-2109) TEST CHANGE

Change-Id: I1588b1892c101299ae7cfa117fc8766b712b7341
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change sioworkers~master~Idfc775838955a2f088cced65f5efb8a30a9378cc, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3024

(SIO-2109) Test failing

Change-Id: Idfc775838955a2f088cced65f5efb8a30a9378cc
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change sioworkers~master~Idfc775838955a2f088cced65f5efb8a30a9378cc, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3024

(SIO-2109) Test failing

Change-Id: Idfc775838955a2f088cced65f5efb8a30a9378cc




[SIO-2108] Replace nose with pytest and integrate python 3 tests in sioworkers Created: 2018-05-22  Updated: 2019-03-26  Resolved: 2018-05-29

Status: Closed
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 3

Type: Improvement Priority: Major
Reporter: Norbert Siwek Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2090 Start making changes towards migratin... Closed
TAG Developer: Norbert Siwek

 Description   
Replace nose with pytest as was done here:
https://jira.sio2project.mimuw.edu.pl/browse/SIO-2097

 Comments   
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change sioworkers~master~Id154b05d8fc005a2c3568d9c1091496b634afcd6, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3019

(SIO-2108) Replace nose with pytest and integrate tox

Replaces nose with pytest and made necessary adjustments for code to
work with pytest.

Integrated tox: tests are now run by calling `tox` in main directory.
There are both python2 and python3 tests run.

Change-Id: Id154b05d8fc005a2c3568d9c1091496b634afcd6
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change sioworkers~master~Id154b05d8fc005a2c3568d9c1091496b634afcd6, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3019

(SIO-2108) Replace nose with pytest and integrate tox

Replaces nose with pytest and made necessary adjustments for code to
work with pytest.

Integrated tox: tests are now run by calling `tox` in main directory.
There are both python2 and python3 tests run.

Change-Id: Id154b05d8fc005a2c3568d9c1091496b634afcd6
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change sioworkers~master~Id154b05d8fc005a2c3568d9c1091496b634afcd6, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3019

(SIO-2108) Replace nose with pytest and integrate tox

Replaces nose with pytest and made necessary adjustments for code to
work with pytest.

Integrated tox: tests are now run by calling `tox` in main directory.
There are both python2 and python3 tests run.

Change-Id: Id154b05d8fc005a2c3568d9c1091496b634afcd6
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change sioworkers~master~Idbb94033f3ac82d41d72d784df70d61d1ed62e6b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3020

(SIO-2108) Non-breaking change to ease transition to pytest

This change will smooth integration of pytest to the code base.

Change-Id: Idbb94033f3ac82d41d72d784df70d61d1ed62e6b
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change sioworkers~master~Id154b05d8fc005a2c3568d9c1091496b634afcd6, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3019

(SIO-2108) Replace nose with pytest and integrate tox

Replaces nose with pytest and made necessary adjustments for code to
work with pytest.

Integrated tox: tests can now be run by calling `tox` in main directory.

This change is blocked by
https://gerrit.sio2project.mimuw.edu.pl/#/c/3020/

It is needed that the change above be merged to configure hudson to use
pytest.

Change-Id: Id154b05d8fc005a2c3568d9c1091496b634afcd6
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change sioworkers~master~Id154b05d8fc005a2c3568d9c1091496b634afcd6, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3019

(SIO-2108) Replace nose with pytest and integrate tox

Replaces nose with pytest and made necessary adjustments for code to
work with pytest.

Integrated tox: tests can now be run by calling `tox` in main directory.

TESTING NEW HUDSON SCRIPT

Change-Id: Id154b05d8fc005a2c3568d9c1091496b634afcd6
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change sioworkers~master~Id154b05d8fc005a2c3568d9c1091496b634afcd6, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3019

(SIO-2108) Replace nose with pytest and integrate tox

Replaces nose with pytest and made necessary adjustments for code to
work with pytest.

Integrated tox: tests can now be run by calling `tox` in main directory.

Modified README and done some final touches.

Change-Id: Id154b05d8fc005a2c3568d9c1091496b634afcd6
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change sioworkers~master~Id154b05d8fc005a2c3568d9c1091496b634afcd6, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3019

(SIO-2108) Replace nose with pytest and integrate tox

Replaces nose with pytest and made necessary adjustments for code to
work with pytest.

Integrated tox: tests can now be run by calling `tox` in main directory.

Modified README and done some final touches.

Change-Id: Id154b05d8fc005a2c3568d9c1091496b634afcd6
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change sioworkers~master~Id154b05d8fc005a2c3568d9c1091496b634afcd6, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3019

(SIO-2108) Replace nose with pytest and integrate tox

Replaces nose with pytest and made necessary adjustments for code to
work with pytest.

Integrated tox: tests can now be run by calling `tox` in main directory.

Modified README and done some final touches.

Change-Id: Id154b05d8fc005a2c3568d9c1091496b634afcd6




[SIO-2107] Add multiple language support for News Created: 2018-05-22  Updated: 2019-03-26  Resolved: 2018-06-5

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2017/18 Sprint 2
Fix Version/s: TAG 2017/18 Sprint 2

Type: Improvement Priority: Major
Reporter: Olaf Łobożewicz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Olaf Łobożewicz

 Description   
There should be a possibility to add different title/content versions of a News instance for each language supported by application.

 Comments   
Comment by Gerrit Gerrit [ 2018-05-22 ]
Change oioioi~master~If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3016

SIO-2107 Add multiple language support for News

Adding the possibility to create different title/content versions
of a News instance for each language supported by application.

Change-Id: If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5
Comment by Gerrit Gerrit [ 2018-05-22 ]
Change oioioi~master~If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3016

SIO-2107 Add multiple language support for News

Adding the possibility to create different title/content versions
of a News instance for each language supported by application.

Change-Id: If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5
Comment by Gerrit Gerrit [ 2018-05-24 ]
Change oioioi~master~If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3016

SIO-2107 Add multiple language support for News

Adding the possibility to create different title/content versions
of a News instance for each language supported by application.

Change-Id: If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5
Comment by Gerrit Gerrit [ 2018-05-24 ]
Change oioioi~master~If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3016

SIO-2107 Add multiple language support for News

Adding the possibility to create different title/content versions
of a News instance for each language supported by application.

Change-Id: If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5
Comment by Gerrit Gerrit [ 2018-05-25 ]
Change oioioi~master~If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3016

SIO-2107 Add multiple language support for News

Adding the possibility to create different title/content versions
of a News instance for each language supported by application.

Change-Id: If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5
Comment by Gerrit Gerrit [ 2018-05-25 ]
Change oioioi~master~If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3016

SIO-2107 Add multiple language support for News

Adding the possibility to create different title/content versions
of a News instance for each language supported by application.

Change-Id: If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change oioioi~master~If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3016

SIO-2107 Add multiple language support for News

Adding the possibility to create different title/content versions
of a News instance for each language supported by application.

Change-Id: If72cdae6c5d499114f7bde92dc0ea67ca0c08ae5




[SIO-2106] Config version check seems to have stopped working Created: 2018-05-21  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Radosław Waśko Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Usually if settings.py had wrong config version, manage.py threw a nice message.

However, lately I got:
```
Traceback (most recent call last):
  File "./manage.py", line 14, in <module>
    execute_from_command_line(sys.argv)
  File "/var/lib/sio2/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353,
in execute_from_command_line
    utility.execute()
  File "/var/lib/sio2/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 327,
in execute
    django.setup()
  File "/var/lib/sio2/venv/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/var/lib/sio2/venv/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/var/lib/sio2/venv/local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/var/lib/sio2/oioioi/oioioi/base/models.py", line 11, in <module>
    version_check()
  File "/var/lib/sio2/oioioi/oioioi/base/config_version_check.py", line 22, in version_check
    'href': GITHUB_LINK,
django.core.exceptions.ImproperlyConfigured: <exception str() failed>
```
which doesn't tell much about what happened.

It would be good to investigate if this issue happens on other installations of oioioi (tested on snag) and if that's the case - what causes that.

 Comments   
Comment by Artur Puzio [ 2018-11-14 ]
This doesn't seem to be a case any more. I get a proper error now:

```
django.core.exceptions.ImproperlyConfigured: The 'CONFIG_VERSION' in your custom deployment directory (25) does not match the 'INSTALLATION_CONFIG_VERSION' (26) in 'default_settings.py'. Please consult https://github.com/sio2project/oioioi/blob/master/UPGRADING.rst#changes-in-the-deployment-directory for the list of changes in the deployment directory.
```
or
```
django.core.exceptions.ImproperlyConfigured: The 'CONFIG_VERSION' in your custom deployment directory (asd) does not match the 'INSTALLATION_CONFIG_VERSION' (26) in 'default_settings.py'. Please consult https://github.com/sio2project/oioioi/blob/master/UPGRADING.rst#changes-in-the-deployment-directory for the list of changes in the deployment directory.
```
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2105] Replace 'no child nodes' in portal menu with a return button Created: 2018-05-8  Updated: 2019-03-26  Resolved: 2018-12-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jakub Sieroń Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: easy


 Description   
In portal leaf (node without children) menu shows 'no child nodes'. This space could be used for return button.

 Comments   
Comment by Gerrit Gerrit [ 2018-11-12 ]
Change oioioi~master~Ic51d9bc0cb2e892154ad9d643f280edf0179bd2f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3091

(SIO-2105) Replace 'no child nodes' in menu with 'add menu items' button

Change-Id: Ic51d9bc0cb2e892154ad9d643f280edf0179bd2f
Comment by Gerrit Gerrit [ 2018-11-12 ]
Change oioioi~master~Ief592044b67269da94e468d1e60c60b6edf5ba87, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3092

(SIO-2105) Replace 'no child nodes' with 'add menu items' button, add translation to polish

Change-Id: Ief592044b67269da94e468d1e60c60b6edf5ba87
Comment by Gerrit Gerrit [ 2018-11-18 ]
Change oioioi~master~Ief592044b67269da94e468d1e60c60b6edf5ba87, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3092

(SIO-2105) Replace 'no child nodes' with 'add menu items' button, add translation to polish

Change-Id: Ief592044b67269da94e468d1e60c60b6edf5ba87
Comment by Gerrit Gerrit [ 2018-11-18 ]
Change oioioi~master~Ief592044b67269da94e468d1e60c60b6edf5ba87, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3092

(SIO-2105) Replace 'no child nodes' with 'add menu items' button, add translation to polish

Change-Id: Ief592044b67269da94e468d1e60c60b6edf5ba87
Comment by Gerrit Gerrit [ 2018-11-18 ]
Change oioioi~master~Ief592044b67269da94e468d1e60c60b6edf5ba87, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3092

(SIO-2105) Replace 'no child nodes' with 'add menu items' button, add translation to polish

Change-Id: Ief592044b67269da94e468d1e60c60b6edf5ba87
Comment by Gerrit Gerrit [ 2018-11-19 ]
Change oioioi~master~Ief592044b67269da94e468d1e60c60b6edf5ba87, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3092

(SIO-2105) Replace 'no child nodes' with 'add menu items' button, add translation to polish

Change-Id: Ief592044b67269da94e468d1e60c60b6edf5ba87
Comment by Gerrit Gerrit [ 2018-11-21 ]
Change oioioi~master~Ief592044b67269da94e468d1e60c60b6edf5ba87, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3092

(SIO-2105) Replace 'no child nodes' with 'add menu items' button, add translation to polish

Change-Id: Ief592044b67269da94e468d1e60c60b6edf5ba87
Comment by Gerrit Gerrit [ 2018-11-21 ]
Change oioioi~master~Ief592044b67269da94e468d1e60c60b6edf5ba87, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3092

(SIO-2105) Replace 'no child nodes' with 'add menu items' button, add translation to polish

Change-Id: Ief592044b67269da94e468d1e60c60b6edf5ba87
Comment by Gerrit Gerrit [ 2018-11-21 ]
Change oioioi~master~Ief592044b67269da94e468d1e60c60b6edf5ba87, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3092

(SIO-2105) Replace 'no child nodes' with 'add menu items' button, add translation to polish

Change-Id: Ief592044b67269da94e468d1e60c60b6edf5ba87




[SIO-2104] Fix OI Task Archive Created: 2018-05-8  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jakub Sieroń Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Problems with I OI: most OIs are it's children

 Comments   
Comment by Artur Puzio [ 2018-11-14 ]
To wygląda na naprawione (https://szkopul.edu.pl/p/default/problemset_eng/oi/1). Aczkolwiek możliwe, że należy otworzyć issue: "OI I w Task Archive nie zawiera zadań"
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2103] Adding tag 'quiz' for quizzes Created: 2018-05-8  Updated: 2018-05-15

Status: In Progress
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 2

Type: New Feature Priority: Major
Reporter: Jakub Sieroń Assignee: Anna Wiewiorowska
Resolution: Unresolved Votes: 0
Labels: None

TAG Developer: Anna Wiewiorowska

 Comments   
Comment by Gerrit Gerrit [ 2018-05-12 ]
Change oioioi~master~I739ed454341ae704eba09c0682d634614c222fa5, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3001

SIO-2103 - Adding tag quiz for quizzes

Change-Id: I739ed454341ae704eba09c0682d634614c222fa5
Comment by Gerrit Gerrit [ 2018-05-15 ]
Change oioioi~master~I739ed454341ae704eba09c0682d634614c222fa5, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3001

SIO-2103 - Adding tag quiz for quizzes

Change-Id: I739ed454341ae704eba09c0682d634614c222fa5




[SIO-2102] Quiz preview in problemset Created: 2018-05-8  Updated: 2018-05-14

Status: In Progress
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 3

Type: New Feature Priority: Major
Reporter: Jakub Sieroń Assignee: Anna Wiewiorowska
Resolution: Unresolved Votes: 0
Labels: None

TAG Developer: Anna Wiewiorowska

 Comments   
Comment by Gerrit Gerrit [ 2018-05-14 ]
Change oioioi~master~If88568049f7a276a5d13af87cea9b7c4450fba1a, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3005

(SIO-2102) Quiz preview in problemset

Change-Id: If88568049f7a276a5d13af87cea9b7c4450fba1a
Comment by Gerrit Gerrit [ 2018-05-14 ]
Change oioioi~master~If88568049f7a276a5d13af87cea9b7c4450fba1a, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3005

(SIO-2102) Quiz preview in problemset

Change-Id: If88568049f7a276a5d13af87cea9b7c4450fba1a




[SIO-2101] Create Portal's main page Created: 2018-05-8  Updated: 2019-03-26  Resolved: 2018-06-17

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 2, TAG 2017/18 Sprint 3

Type: New Feature Priority: Major
Reporter: Jakub Sieroń Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Jakub Sieroń

 Description   
Main page for displaying selected (promoted) portals.

 Comments   
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I9d556b9936ead050f65ec971fd1a1d733ff06f09, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3036

SIO-2101 Create Portal's main page

Change-Id: I9d556b9936ead050f65ec971fd1a1d733ff06f09
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-6 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-6 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-6 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-6 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-7 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-11 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-12 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-12 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-12 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-12 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-12 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-12 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-12 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c
Comment by Gerrit Gerrit [ 2018-06-13 ]
Change oioioi~master~I9e79a9da0641c8d6480070f2f821a3f652a9284c, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3039

SIO-2101 Create Portal's main page

Added portals main page
There can be more than one global portal now

Change-Id: I9e79a9da0641c8d6480070f2f821a3f652a9284c




[SIO-2100] MathJax and syntax highlighting support Created: 2018-05-8  Updated: 2019-03-26  Resolved: 2018-06-12

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 3

Type: New Feature Priority: Major
Reporter: Jakub Sieroń Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Jacek Olczyk

 Description   
In the whole of OIOIOI, one can use "$$...$$" to enter displayed math, and "\(...\)" for in-line math. Additionally, anything formatted as code (escaped with "```...```") will have its syntax highlighted (from SIO-2099).

 Comments   
Comment by Gerrit Gerrit [ 2018-05-15 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 Added MathJax parsing to portals

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-15 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 Added MathJax parsing to portals

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-15 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 Added MathJax parsing to portals

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-16 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-22 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-22 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-05-29 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 13
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I0c845ac4d7e458b6194a608a67900d253041adbb, patchset 15
https://gerrit.sio2project.mimuw.edu.pl/3008

SIO-2100 MathJax and syntax highlighting support

Change-Id: I0c845ac4d7e458b6194a608a67900d253041adbb




[SIO-2099] Syntax highlighting in portals Created: 2018-05-8  Updated: 2018-05-16  Resolved: 2018-05-16

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 3

Type: New Feature Priority: Major
Reporter: Jakub Sieroń Assignee: Jacek Olczyk
Resolution: Duplicate Votes: 0
Labels: None

TAG Developer: Jacek Olczyk

 Description   
Add syntax highlighting to portal content.

 Comments   
Comment by Jacek Olczyk [ 2018-05-16 ]
This was moved to SIO-2100.




[SIO-2098] Pass sioworkers tests on both py2 and py3 using six Created: 2018-05-8  Updated: 2019-03-26  Resolved: 2018-05-28

Status: Closed
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 2

Type: Improvement Priority: Major
Reporter: Norbert Siwek Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2090 Start making changes towards migratin... Closed
TAG Developer: Norbert Siwek

 Comments   
Comment by Gerrit Gerrit [ 2018-05-10 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

patch >= 1 Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-12 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-13 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3+
Fixing static and hudson errors.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-13 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3+
Fixing static and hudson errors.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-13 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3-5
Fixing static and hudson errors.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-14 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3-5
Fixing static and hudson errors.

-> Patch 6
Added missing README.md.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-15 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3-5
Fixing static and hudson errors.

-> Patch 6
Added missing README.md.

-> Patch 7
Fixed text formatting in README. Deleted unnecessary dependency 'enum'
when running on python 3. Added changes mentioned in code review.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-15 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3-5
Fixing static and hudson errors.

-> Patch 6
Added missing README.md.

-> Patch 7
Fixed text formatting in README. Deleted unnecessary dependency 'enum'
when running on python 3. Added changes mentioned in code review.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-21 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3-5
Fixing static and hudson errors.

-> Patch 6
Added missing README.md.

-> Patch 7
Fixed text formatting in README. Deleted unnecessary dependency 'enum'
when running on python 3. Added changes mentioned in code review.

-> Patch 9
Rebased. Twisted tests are now passing on both python2 and python3
although trial prints some strange not-test-related errors.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-21 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3-5
Fixing static and hudson errors.

-> Patch 6
Added missing README.md.

-> Patch 7
Fixed text formatting in README. Deleted unnecessary dependency 'enum'
when running on python 3. Added changes mentioned in code review.

-> Patch 9
Rebased. Twisted tests are now passing on both python2 and python3
although trial prints some strange not-test-related errors.

-> Patch 10
Rebased.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-21 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3-5
Fixing static and hudson errors.

-> Patch 6
Added missing README.md.

-> Patch 7
Fixed text formatting in README. Deleted unnecessary dependency 'enum'
when running on python 3. Added changes mentioned in code review.

-> Patch 9
Rebased. Twisted tests are now passing on both python2 and python3
although trial prints some strange not-test-related errors.

-> Patch 10-11
Rebased.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14
Comment by Gerrit Gerrit [ 2018-05-21 ]
Change sioworkers~master~I668861cf1a62e44991697d47ce224baead455e14, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/3000

(SIO-2098) Porting sioworkers to six

The changes were made by running modernize and then making some manual
changes to the code.

-> Patch 1
Nosetests on both python 2 and python 3 pass with sandobex
enabled. Trial twisted tests on python 2 pass. On python 3 twisted
dependency is yet to be resolved.

-> Patch 2
Fixed installation scripts. Added README.md with instructions on
installing and testing on either python 2 and python 3.

-> Patch 3-5
Fixing static and hudson errors.

-> Patch 6
Added missing README.md.

-> Patch 7
Fixed text formatting in README. Deleted unnecessary dependency 'enum'
when running on python 3. Added changes mentioned in code review.

-> Patch 9
Rebased. Twisted tests are now passing on both python2 and python3
although trial prints some strange not-test-related errors.

-> Patch 10-12
Rebased.

Change-Id: I668861cf1a62e44991697d47ce224baead455e14




[SIO-2097] Change testing environment from nose to pytest Created: 2018-05-4  Updated: 2019-03-26  Resolved: 2018-05-27

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI, SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2017/18 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Rafał Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Rafał Pragacz

 Comments   
Comment by Gerrit Gerrit [ 2018-05-4 ]
Change oioioi~master~If7cf5a12fd8baf4ab9cd3cb05cdb6f458ad70e24, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2998

(no-ticket) Minor test fixes.

This is small part of SIO-2097 issue.

Change-Id: If7cf5a12fd8baf4ab9cd3cb05cdb6f458ad70e24
Comment by Gerrit Gerrit [ 2018-05-5 ]
Change oioioi~master~I49b83415934a0d21f70f441d142e9de4496c8409, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2999

(SIO-2097) Replace nose dependency with pytest

Enabled support of tox and pytest and removed nose dependency.
This is slightly related to migration to Python3, which some of nose plugins do not support

Change-Id: I49b83415934a0d21f70f441d142e9de4496c8409
Comment by Gerrit Gerrit [ 2018-05-5 ]
Change oioioi~master~I49b83415934a0d21f70f441d142e9de4496c8409, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2999

(SIO-2097) Replace nose dependency with pytest

Enabled support of tox and pytest and removed nose dependency.
This is slightly related to migration to Python3, which some of nose plugins do not support

Change-Id: I49b83415934a0d21f70f441d142e9de4496c8409
Comment by Gerrit Gerrit [ 2018-05-5 ]
Change oioioi~master~I49b83415934a0d21f70f441d142e9de4496c8409, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2999

(SIO-2097) Replace nose dependency with pytest

Enabled support of tox and pytest and removed nose dependency.
This is slightly related to migration to Python3, which some of nose plugins do not support

Change-Id: I49b83415934a0d21f70f441d142e9de4496c8409
Comment by Gerrit Gerrit [ 2018-05-8 ]
Change oioioi~master~I49b83415934a0d21f70f441d142e9de4496c8409, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/2999

(SIO-2097) Replace nose dependency with pytest

Enabled support of tox and pytest and removed nose dependency.
This is slightly related to migration to Python3, which some of nose plugins do not support

Change-Id: I49b83415934a0d21f70f441d142e9de4496c8409
Comment by Gerrit Gerrit [ 2018-05-10 ]
Change oioioi~master~I49b83415934a0d21f70f441d142e9de4496c8409, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/2999

(SIO-2097) Replace nose dependency with pytest

Enabled support of tox and pytest and removed nose dependency.
This is slightly related to migration to Python3, which some of nose plugins do not support

Change-Id: I49b83415934a0d21f70f441d142e9de4496c8409
Comment by Gerrit Gerrit [ 2018-05-11 ]
Change oioioi~master~I49b83415934a0d21f70f441d142e9de4496c8409, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/2999

(SIO-2097) Replace nose dependency with pytest

Enabled support of tox and pytest and removed nose dependency.
This is slightly related to migration to Python3, which some of nose plugins do not support

Change-Id: I49b83415934a0d21f70f441d142e9de4496c8409




[SIO-2096] Problem instance select is visible when submitting a problem in the problemset Created: 2018-04-24  Updated: 2019-03-26  Resolved: 2018-06-5

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Radosław Waśko Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Radosław Waśko

 Comments   
Comment by Gerrit Gerrit [ 2018-04-24 ]
Change oioioi~master~Ibfff14d530a87337fec5fb8d8c80ab65a872899b, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2992

(SIO-2096) Hide problem instance select when submitting from problemset.

Change-Id: Ibfff14d530a87337fec5fb8d8c80ab65a872899b
Comment by Gerrit Gerrit [ 2018-04-24 ]
Change oioioi~master~Ibfff14d530a87337fec5fb8d8c80ab65a872899b, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2992

(SIO-2096) Hide problem select when submitting from problemset.

Change-Id: Ibfff14d530a87337fec5fb8d8c80ab65a872899b
Comment by Gerrit Gerrit [ 2018-04-24 ]
Change oioioi~master~Ibfff14d530a87337fec5fb8d8c80ab65a872899b, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2992

(SIO-2096) Hide problem select when submitting from problemset.

Change-Id: Ibfff14d530a87337fec5fb8d8c80ab65a872899b
Comment by Gerrit Gerrit [ 2018-04-24 ]
Change oioioi~master~Ibfff14d530a87337fec5fb8d8c80ab65a872899b, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/2992

(SIO-2096) Hide problem select when submitting from problemset.

Change-Id: Ibfff14d530a87337fec5fb8d8c80ab65a872899b




[SIO-2095] Create new Selenium tests Created: 2018-04-23  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 2

Type: Improvement Priority: Major
Reporter: Anna Wiewiorowska Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Anna Wiewiorowska

 Comments   
Comment by Artur Puzio [ 2018-10-24 ]
This seems to be a duplicate of SIO-2016




[SIO-2094] Fix Selenium tests Jenkins build Created: 2018-04-23  Updated: 2021-06-24  Resolved: 2021-06-24

Status: Resolved
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 2

Type: Bug Priority: Major
Reporter: Anna Wiewiorowska Assignee: Wojciech Dubiel
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Anna Wiewiorowska

 Comments   
Comment by Gerrit Gerrit [ 2018-05-14 ]
Change oioioi~master~I5496434b003104d4d2d944b9acf5b35a2921fba8, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3006

(SIO-2094) Fix Selenium tests Jenkins build

Change-Id: I5496434b003104d4d2d944b9acf5b35a2921fba8
Comment by Gerrit Gerrit [ 2018-05-15 ]
Change oioioi~master~I5496434b003104d4d2d944b9acf5b35a2921fba8, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3006

(SIO-2094) Fix Selenium tests Jenkins build

Change-Id: I5496434b003104d4d2d944b9acf5b35a2921fba8




[SIO-2093] Filetracker server doesn't support file deletion Created: 2018-04-17  Updated: 2019-03-26  Resolved: 2018-05-28

Status: Closed
Project: The SIO2 project
Component/s: Filetracker
Affects Version/s: TAG 2017/18 Sprint 2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Pavel Senchanka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Pavel Senchanka

 Description   
Filetracker client sends DELETE requests on `filetracker rm` command, but server doesn't handle them.




[SIO-2092] Naprawić iptables na szkopule Created: 2018-04-17  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: Zzz! / None of the above / I really don't know
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Radosław Waśko Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Aktualne zasady iptables, po włączeniu ich powodują, że szkopuł przestaje działać (502 bad gateway), zapewne są zbyt restrykcyjne / nieaktualne.

W związku z tym internet musi być odblokowany, co warto byłoby zmienić.

Aktualne zasady są opisane w /etc/network/if-up.d/iptables

 Comments   
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2091] Streamline the translation process Created: 2018-04-17  Updated: 2019-03-26  Resolved: 2018-05-16

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: TAG 2017/18 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Jacek Olczyk Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
In the SIO2 Developer's Guide, elaborate on the process of introducing new translation strings and changing the old ones. Possibly also set up new systems for continuous integration of translations. Additionally, fix as many remaining translation errors as possible.

Update 24/04/2018:
Old translations fixed, Jenkins script working, translating guide updated, szkopuł deploy checklist updated

 Comments   
Comment by Gerrit Gerrit [ 2018-04-17 ]
Change oioioi~master~I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2987

SIO-2091 Streamline the translation process

Change-Id: I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a
Comment by Gerrit Gerrit [ 2018-04-19 ]
Change oioioi~master~I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2987

SIO-2091 Streamline the translation process

Change-Id: I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a
Comment by Gerrit Gerrit [ 2018-04-19 ]
Change oioioi~master~I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2987

SIO-2091 Streamline the translation process

Change-Id: I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a
Comment by Gerrit Gerrit [ 2018-04-21 ]
Change oioioi~master~I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/2987

SIO-2091 Streamline the translation process

Change-Id: I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a
Comment by Gerrit Gerrit [ 2018-04-21 ]
Change oioioi~master~I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/2987

SIO-2091 Streamline the translation process

Change-Id: I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a
Comment by Gerrit Gerrit [ 2018-04-22 ]
Change oioioi~master~I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/2987

SIO-2091 Streamline the translation process

Change-Id: I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a
Comment by Gerrit Gerrit [ 2018-04-22 ]
Change oioioi~master~I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/2987

SIO-2091 Streamline the translation process

Change-Id: I004e5f6f4e4ff98d0ec4535aec392f3698bbd40a




[SIO-2090] Start making changes towards migrating to python3 Created: 2018-04-11  Updated: 2019-03-26  Resolved: 2018-05-29

Status: Closed
Project: The SIO2 project
Component/s: Evaluation Engine / Workers
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 2, TAG 2017/18 Sprint 3

Type: Improvement Priority: Major
Reporter: Norbert Siwek Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
is related to SIO-2098 Pass sioworkers tests on both py2 and... Closed
is related to SIO-2108 Replace nose with pytest and integrat... Closed
is related to SIO-2109 Add python 3 tests to tests run on ge... Closed
is related to SIO-2111 Add python 3 non-blocking tests to te... Closed
TAG Developer: Norbert Siwek

 Description   
This tasks requires sioworkers to be changed so as to be able to run it in both python2 and python3. It is possible thanks to the six library (https://pypi.python.org/pypi/six).




[SIO-2089] Investigate feasibility of filetracker compression and deduplication Created: 2018-04-10  Updated: 2019-03-26  Resolved: 2018-06-5

Status: Closed
Project: The SIO2 project
Component/s: Filetracker
Affects Version/s: TAG 2017/18 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Pavel Senchanka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None


 Description   
Investigate possible options of compressing filetracker contents (different compression algorithms, compression/decompression logic, etc.). Also check if Szkopuł filetracker contains a significant number of duplicate files.

 Comments   
Comment by Radosław Waśko [ 2018-04-17 ]
Used tools: https://gist.github.com/radeusgd/6119fa1528fc1fb0b1d26b287bd33db8

Gain (maybe slightly misleading...) is the ratio of size after compression / dedup to the original size - lower is better.

Deduplication (SHA):
('Highest count:', 14794 - there's a file that has 14794 exact instances)
('Total size:', 1101947332565)
('Dedup size:', 638640713188)
('Gain:', 57, '%')

Gzip compression (50% of data analyzed):
('Original size:', 589263912900)
('Compressed size:', 236547224239)
('Gain:', 40, '%')

Xz compression (slower, 30-40% analyzed):
('Original size:', 64855014576)
('Compressed size:', 19607237016)
('Gain:', 30, '%')
Comment by Radosław Waśko [ 2018-04-17 ]
Also it seems that filetracker DELETE doesn't work, so that executables and outputs of user submissions that are not needed are present on the server.

Eval folder takes up about 220GB of space and most likely can be deleted?




[SIO-2088] Add tests to filetracker Created: 2018-04-10  Updated: 2019-03-26  Resolved: 2018-04-17

Status: Closed
Project: The SIO2 project
Component/s: Filetracker
Affects Version/s: TAG 2017/18 Sprint 2
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Pavel Senchanka Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Pavel Senchanka

 Description   
Filetracker should have some tests.




[SIO-2087] Move base module to Six and get the simplest form of website working on Python3 Created: 2018-04-10  Updated: 2019-03-26  Resolved: 2018-05-27

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI, SIO2 Project Website and Infrastructure
Affects Version/s: TAG 2017/18 Sprint 2
Fix Version/s: TAG 2017/18 Sprint 2

Type: Improvement Priority: Major
Reporter: Rafał Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Rafał Pragacz

 Comments   
Comment by Gerrit Gerrit [ 2018-05-14 ]
Change oioioi~master~Ib63c209081c47a72fe15b10a553a9a2a433aec30, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3007

(SIO-2087) Start work on porting oioioi to six.

Ran modernize and made manual changes to preserve python2 stability.
You now can deploy and run oioioi in python3, although a lot more changes need
to be done in order to succesfully deploy it on py3, or even to pass tests.
This serves more as a non-breaking anything change that will allow further
work on this issue.

Change-Id: Ib63c209081c47a72fe15b10a553a9a2a433aec30
Comment by Gerrit Gerrit [ 2018-05-14 ]
Change oioioi~master~Ib63c209081c47a72fe15b10a553a9a2a433aec30, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3007

(SIO-2087) Start work on porting oioioi to six.

Ran modernize and made manual changes to preserve python2 stability.
You now can deploy and run oioioi in python3, although a lot more changes need
to be done in order to succesfully deploy it on py3, or even to pass tests.
This serves more as a non-breaking anything change that will allow further
work on this issue.

Change-Id: Ib63c209081c47a72fe15b10a553a9a2a433aec30
Comment by Gerrit Gerrit [ 2018-05-15 ]
Change oioioi~master~Ib63c209081c47a72fe15b10a553a9a2a433aec30, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3007

(SIO-2087) Start work on porting oioioi to six.

Ran modernize and made manual changes to preserve python2 stability.
You now can deploy and run oioioi in python3, although a lot more changes need
to be done in order to succesfully deploy it on py3, or even to pass tests.
This serves more as a non-breaking anything change that will allow further
work on this issue.

Change-Id: Ib63c209081c47a72fe15b10a553a9a2a433aec30
Comment by Gerrit Gerrit [ 2018-05-16 ]
Change oioioi~master~Ib63c209081c47a72fe15b10a553a9a2a433aec30, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3007

(SIO-2087) Start work on porting oioioi to six.

Ran modernize and made manual changes to preserve python2 stability.
You now can deploy and run oioioi in python3, although a lot more changes need
to be done in order to succesfully deploy it on py3, or even to pass tests.
This serves more as a non-breaking anything change that will allow further
work on this issue.

Change-Id: Ib63c209081c47a72fe15b10a553a9a2a433aec30
Comment by Gerrit Gerrit [ 2018-05-21 ]
Change oioioi~master~Ib63c209081c47a72fe15b10a553a9a2a433aec30, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3007

(SIO-2087) Start work on porting oioioi to six.

Ran modernize and made manual changes to preserve python2 stability.
You now can deploy and run oioioi in python3, although a lot more changes need
to be done in order to succesfully deploy it on py3, or even to pass tests.
This serves more as a non-breaking anything change that will allow further
work on this issue.

Change-Id: Ib63c209081c47a72fe15b10a553a9a2a433aec30
Comment by Gerrit Gerrit [ 2018-05-21 ]
Change oioioi~master~Ib63c209081c47a72fe15b10a553a9a2a433aec30, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3007

(SIO-2087) Start work on porting oioioi to six.

Ran modernize and made manual changes to preserve python2 stability.
You now can deploy and run oioioi in python3, although a lot more changes need
to be done in order to succesfully deploy it on py3, or even to pass tests.
This serves more as a non-breaking anything change that will allow further
work on this issue.

Change-Id: Ib63c209081c47a72fe15b10a553a9a2a433aec30




[SIO-2086] Contest Timeline labels don't display properly Created: 2018-04-10  Updated: 2019-03-26  Resolved: 2018-06-5

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wojciech Dubiel Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Pavel Senchanka

 Description   
In Contest Administration -> Timeline, the text on the labels next to dates doesn't show up. There should be "start of round... ", "end ofrround ...", etc. but instead it's just empty colorful rectangles

 Comments   
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change oioioi~master~Ia1d90ba22a46c8116e271b1d02cd37008fe46961, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3018

(SIO-2086) Fixed date title displaying in timeline view.

Change-Id: Ia1d90ba22a46c8116e271b1d02cd37008fe46961
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change oioioi~master~Ia1d90ba22a46c8116e271b1d02cd37008fe46961, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3018

(SIO-2086) Fixed date title displaying in timeline view.

Change-Id: Ia1d90ba22a46c8116e271b1d02cd37008fe46961
Comment by Gerrit Gerrit [ 2018-05-28 ]
Change oioioi~master~Ia1d90ba22a46c8116e271b1d02cd37008fe46961, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3018

(SIO-2086) Fixed date title displaying in timeline view.

Change-Id: Ia1d90ba22a46c8116e271b1d02cd37008fe46961




[SIO-2085] Add different language version support for portals Created: 2018-03-20  Updated: 2019-03-26  Resolved: 2018-06-13

Status: Closed
Project: The SIO2 project
Component/s: Translations
Affects Version/s: TAG 2017/18 Sprint 1
Fix Version/s: TAG 2017/18 Sprint 3

Type: Improvement Priority: Major
Reporter: Jacek Olczyk Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None
Environment: Szkopuł portals


 Description   
Portal creators need to be able to add different versions for different langugages. This has to be non-mandatory, and the default language for a portal should be the language selected by the portal creator.

 Comments   
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-5 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-13 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296
Comment by Gerrit Gerrit [ 2018-06-13 ]
Change oioioi~master~I7913bcfd8ab9674ab037f115e7d6584e21882296, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/3037

(SIO-2085) Add different language version support for portals

Portal creators need to be able to add different versions for
different langugages. This has to be non-mandatory, and the
default language for a portal should be the language selected
by the portal creator.

Change-Id: I7913bcfd8ab9674ab037f115e7d6584e21882296




[SIO-2084] Add test for vagrant file validity Created: 2018-03-15  Updated: 2020-04-27  Resolved: 2020-04-27

Status: Resolved
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Artur Jamro Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None


 Description   
Sometimes we update Vagrantfile, so it works, but later someone forgets to update it alongside with his/her change, so I wanted to suggest a nightly test which does vagrant up from scratch[1] and after a while checks some simple scenarios[2].
[1] Deletes previous VM and creates a new one installing everything
[2] User registration, contest creation, submitting some code, etc and checking the HTTP answers if it is really what we want and not some 500s errors.

 Comments   
Comment by Gerrit Gerrit [ 2018-11-24 ]
Change oioioi~master~Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/3104

(SIO-2084) Add test for checking whether oioioi is up and running

The test adds a contest, submits a problem and checks whether it is
checked correctly.

Change-Id: Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71
Comment by Gerrit Gerrit [ 2018-11-28 ]
Change oioioi~master~Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/3104

(SIO-2084) Add test for checking whether oioioi is up and running

The test adds a contest, submits a problem and checks whether it is
checked correctly.

Change-Id: Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71
Comment by Gerrit Gerrit [ 2018-11-28 ]
Change oioioi~master~Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/3104

(SIO-2084) Add test for checking whether oioioi is up and running

The test adds a contest, submits a problem and checks whether it is
checked correctly.

Change-Id: Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71
Comment by Gerrit Gerrit [ 2018-11-28 ]
Change oioioi~master~Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3104

(SIO-2084) Add test for checking whether oioioi is up and running

The test adds a contest, submits a problem and checks whether it is
checked correctly.

Change-Id: Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71
Comment by Gerrit Gerrit [ 2018-11-28 ]
Change oioioi~master~Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/3104

(SIO-2084) Add test for checking whether oioioi is up and running

The test adds a contest, submits a problem and checks whether it is
checked correctly.

Change-Id: Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71
Comment by Gerrit Gerrit [ 2018-11-28 ]
Change oioioi~master~Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/3104

(SIO-2084) Add test for checking whether oioioi is up and running

The test adds a contest, submits a problem and checks whether it is
checked correctly.

Change-Id: Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71
Comment by Gerrit Gerrit [ 2018-11-28 ]
Change oioioi~master~Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/3104

(SIO-2084) Add test for checking whether oioioi is up and running

The test adds a contest, submits a problem and checks whether it is
checked correctly.

Change-Id: Ie78f48bd0b2f2dbeb050fb5f9724073ac5f7ac71
Comment by Szymon Acedański [ 2020-04-27 ]
This issue has been automatically closed as Obsolete due to no activity for 365 days.

Feel free to reopen it or create a new one if it's still relevant.




[SIO-2083] Displaying PDF files on site Created: 2018-03-13  Updated: 2019-03-26  Resolved: 2018-04-17

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 1

Type: Improvement Priority: Major
Reporter: Rafał Pragacz Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2072 Redesign mainpage and portals Closed
TAG Developer: Rafał Pragacz

 Description   
Embed PDF files in html instead of placing link to the file.

 Comments   
Comment by Gerrit Gerrit [ 2018-03-14 ]
Change oioioi~master~I1efc261c8e89a4429a5903a610e668d47c75c587, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2957

SIO-2083 Displaying PDF files on site

Added displaying of PDF files and providing the link only if browser cannot display the file.

Change-Id: I1efc261c8e89a4429a5903a610e668d47c75c587
Comment by Gerrit Gerrit [ 2018-03-20 ]
Change oioioi~master~I1efc261c8e89a4429a5903a610e668d47c75c587, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2957

SIO-2083 Displaying PDF files on site

Added displaying of PDF files along with a link to open it.

Change-Id: I1efc261c8e89a4429a5903a610e668d47c75c587
Comment by Gerrit Gerrit [ 2018-03-20 ]
Change oioioi~master~I1efc261c8e89a4429a5903a610e668d47c75c587, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2957

SIO-2083 Displaying PDF files on site

Added displaying of PDF files along with a link to open it.

Change-Id: I1efc261c8e89a4429a5903a610e668d47c75c587
Comment by Gerrit Gerrit [ 2018-03-27 ]
Change oioioi~master~I1efc261c8e89a4429a5903a610e668d47c75c587, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/2957

SIO-2083 Displaying PDF files on site

Added displaying of PDF files along with a link to open it.

Change-Id: I1efc261c8e89a4429a5903a610e668d47c75c587




[SIO-2082] Add breadcrumbs Created: 2018-03-13  Updated: 2019-03-26  Resolved: 2018-04-17

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 1

Type: Improvement Priority: Major
Reporter: Norbert Siwek Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2072 Redesign mainpage and portals Closed
TAG Developer: Norbert Siwek

 Description   
Change clunky left navigation bar to breadcrumbs navigation.

 Comments   
Comment by Gerrit Gerrit [ 2018-03-30 ]
Change oioioi~master~I322c286915e1fe0755b56c6918f430d14a4565a1, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2974

(SIO-2082) Improved portal navigation

I have added breadcrumbs and modified left menu navigation and navbar
menu nabigation on portals both on small and large devices.

Change-Id: I322c286915e1fe0755b56c6918f430d14a4565a1
Comment by Gerrit Gerrit [ 2018-04-3 ]
Change oioioi~master~I322c286915e1fe0755b56c6918f430d14a4565a1, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2974

(SIO-2082) Improved portal navigation

I have added breadcrumbs and modified left menu navigation and navbar
menu nabigation on portals both on small and large devices.

Change-Id: I322c286915e1fe0755b56c6918f430d14a4565a1
Comment by Gerrit Gerrit [ 2018-04-10 ]
Change oioioi~master~I322c286915e1fe0755b56c6918f430d14a4565a1, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2974

(SIO-2082) Improved portal navigation

I have added breadcrumbs and modified left menu navigation and navbar
menu nabigation on portals both on small and large devices.

Change-Id: I322c286915e1fe0755b56c6918f430d14a4565a1




[SIO-2081] Problemset update Created: 2018-03-13  Updated: 2019-03-26  Resolved: 2018-06-17

Status: Closed
Project: The SIO2 project
Component/s: SIO2 Project Website and Infrastructure
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 1

Type: Improvement Priority: Major
Reporter: Norbert Siwek Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SIO-2072 Redesign mainpage and portals Closed

 Description   
1. Make tags clickable.
2. Add adding date column.
3. Add sorting through columns.
4. Default sorting: tag, date.

 Comments   
Comment by Gerrit Gerrit [ 2018-04-10 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update THIS IS NOT FINAL COMMIT - just for code review Tags are now clickable Added search features

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-04-16 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update THIS IS NOT FINAL COMMIT - just for code review Tags are now clickable Added search features Added ascii_name to model Problems for improved searching Edited tests (still problems with them) Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-04-16 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update THIS IS NOT FINAL COMMIT - just for code review Tags are now clickable Added search features Added ascii_name to model Problems for improved searching Edited tests (still problems with them) Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-04-17 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update THIS IS NOT FINAL COMMIT - just for code review Tags are now clickable Added search features Added ascii_name to model Problems for improved searching Edited tests (still problems with them) Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-04-17 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update THIS IS NOT FINAL COMMIT - just for code review Tags are now clickable Added search features Added ascii_name to model Problems for improved searching Edited tests (still problems with them) Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-04-19 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update Tags are now clickable Added search features Added ascii_name to model Problems for improved searching Added tests Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-04-24 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update Tags are now clickable Added search features Added ascii_name to model Problems for improved searching Added tests Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-04-24 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update Tags are now clickable Added search features Added ascii_name to model Problems for improved searching Added tests Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-05-7 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update Tags are now clickable Added search features Added ascii_name to model Problems for improved searching Added tests Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-05-8 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update: Tags are now clickable, Added search features, Added ascii_name to model Problems for improved searching, Added tests Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f
Comment by Gerrit Gerrit [ 2018-05-8 ]
Change oioioi~master~Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/2980

SIO-2081 Problemset update: Tags are now clickable, Added search features, Added ascii_name to model Problems for improved searching, Added tests Added new library (unidecode)

Change-Id: Ifed19f25d79ce5b6b21603dc4d4cba4e7fb14b2f




[SIO-2080] Uploading multiple-choice problem from text file Created: 2018-03-13  Updated: 2019-03-26  Resolved: 2018-10-24

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 1

Type: New Feature Priority: Major
Reporter: Anna Wiewiorowska Assignee: Szymon Acedański
Resolution: Obsolete Votes: 0
Labels: None

TAG Developer: Anna Wiewiorowska
TAG Reviewer: Radosław Waśko




[SIO-2079] Creating multiple-choice problem in teacher panel Created: 2018-03-13  Updated: 2019-03-26  Resolved: 2018-04-17

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 1

Type: New Feature Priority: Major
Reporter: Anna Wiewiorowska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Radosław Waśko
TAG Reviewer: Anna Wiewiorowska

 Comments   
Comment by Gerrit Gerrit [ 2018-04-4 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

THIS IS WORK IN PROGRESS - a basic prototype that barely works

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-5 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-6 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-6 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-6 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-6 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-6 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-6 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-9 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-9 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-9 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 11
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-10 ]
Change oioioi~master~Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4, patchset 12
https://gerrit.sio2project.mimuw.edu.pl/2975

(SIO-2079) Adding quizzes to admin panel

Change-Id: Id17489b92ecef7ae1ee2506fdc0c7fc4b09e51b4
Comment by Gerrit Gerrit [ 2018-04-17 ]
Change oioioi~master~I84213987da62d29e7fee1fe85f2a90c291c7d6dd, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2985

(SIO-2079) Fix non-superadmins not being able to edit quiz questions.

Change-Id: I84213987da62d29e7fee1fe85f2a90c291c7d6dd
Comment by Gerrit Gerrit [ 2018-04-17 ]
Change oioioi~master~I84213987da62d29e7fee1fe85f2a90c291c7d6dd, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2985

(SIO-2079) Fix non-superadmins not being able to edit quiz questions.

Change-Id: I84213987da62d29e7fee1fe85f2a90c291c7d6dd
Comment by Gerrit Gerrit [ 2018-04-17 ]
Change oioioi~master~I84213987da62d29e7fee1fe85f2a90c291c7d6dd, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2985

(SIO-2079) Fix non-superadmins not being able to edit quiz questions.

Change-Id: I84213987da62d29e7fee1fe85f2a90c291c7d6dd




[SIO-2078] Multiple-choice tests score calculation and report view Created: 2018-03-13  Updated: 2019-03-26  Resolved: 2018-04-23

Status: Closed
Project: The SIO2 project
Component/s: OIOIOI
Affects Version/s: Current Version
Fix Version/s: TAG 2017/18 Sprint 1

Type: New Feature Priority: Major
Reporter: Anna Wiewiorowska Assignee: Szymon Acedański
Resolution: Fixed Votes: 0
Labels: None

TAG Developer: Anna Wiewiorowska
TAG Reviewer: Radosław Waśko

 Comments   
Comment by Gerrit Gerrit [ 2018-04-6 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 1
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-9 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 2
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-9 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 3
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-9 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-12 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 5
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-12 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 6
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-12 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 7
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-16 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 8
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-17 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 9
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3
Comment by Gerrit Gerrit [ 2018-04-17 ]
Change oioioi~master~I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3, patchset 10
https://gerrit.sio2project.mimuw.edu.pl/2977

SIO-2078 Multiple-choice tests score calculation and report view

Change-Id: I9901cb74a21145fffbdf5a216fba5c8ee3f0aca3