-
Notifications
You must be signed in to change notification settings - Fork 45
Download buttons #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download buttons #970
Conversation
3e6e6e9 to
4a18694
Compare
comments from Adrien 06/28/2023pd - public_datask - starting_kit
New PR\Issue
|
|
Hi @bbearce, I am testing this PR. I can see the download buttons for starting kit and public data even if I am not logged in the platform nor registered for the competition. As a reminder:
|
|
Let me take a look. |
|
@bbearce That is great! Thank you for the detailed screenshots. I'll review it as soon as possible. |
|
EDIT: seems good after restarting the containers. It is working fine. However, I see this in the logs, which seems to be related to the changes: django.db.utils.ProgrammingError: column competitions_phase.public_data_id does not existStrangely, when I tried to run the migrations, no changes were detected. More logs: codabench-site_worker-1 | [2023-07-25 09:05:20,223: ERROR/ForkPoolWorker-3] Task competitions.tasks.submission_status_cleanup[3a1d70b5-8fb2-48b2-8bda-817340ebeb68] raised unexpected: ProgrammingError('column competitions_phase.public_data_id does not exist\nLINE 1: ...r_person", "competitions_phase"."leaderboard_id", "competiti...\n ^\n')
codabench-site_worker-1 | Traceback (most recent call last):
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
codabench-site_worker-1 | return self.cursor.execute(sql, params)
codabench-site_worker-1 | psycopg2.errors.UndefinedColumn: column competitions_phase.public_data_id does not exist
codabench-site_worker-1 | LINE 1: ...r_person", "competitions_phase"."leaderboard_id", "competiti...codabench-site_worker-1 | Traceback (most recent call last):
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 382, in trace_task
codabench-site_worker-1 | R = retval = fun(*args, **kwargs)
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 641, in __protected_call__
codabench-site_worker-1 | return self.run(*args, **kwargs)
codabench-site_worker-1 | File "/app/src/apps/competitions/tasks.py", line 754, in submission_status_cleanup
codabench-site_worker-1 | for sub in submissions:
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 274, in __iter__
codabench-site_worker-1 | self._fetch_all()
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1242, in _fetch_all
codabench-site_worker-1 | self._result_cache = list(self._iterable_class(self))
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 55, in __iter__
codabench-site_worker-1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql
codabench-site_worker-1 | cursor.execute(sql, params)
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 67, in execute
codabench-site_worker-1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
codabench-site_worker-1 | return executor(sql, params, many, context)
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
codabench-site_worker-1 | return self.cursor.execute(sql, params)
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 89, in __exit__
codabench-site_worker-1 | raise dj_exc_value.with_traceback(traceback) from exc_value
codabench-site_worker-1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
codabench-site_worker-1 | return self.cursor.execute(sql, params)
codabench-site_worker-1 | django.db.utils.ProgrammingError: column competitions_phase.public_data_id does not exist
codabench-site_worker-1 | LINE 1: ...r_person", "competitions_phase"."leaderboard_id", "competiti... |
|
What is the YAML syntax for starting kit and public data? We need to update the documentation |
|
I added the remaining TODOs in #764 ("second PR") |
|
Bah! Ok. Working on the Solution and No Files Yet issue. |
* do not show hidden column in leaderboard, unpacker v1 to handle hidden column * LEADERBOARD_V1 data updated with hidden attribute * filter: hidden condition removed * analytics download fixed * default profile avatar changed * Detailed results displayed for each task on leaderboard (#967) * Detailed results displayed for each task on leaderboard * more explanation added to detailed result fetching. url commented * detailed results removed from factsheets * Download buttons (#970) * download_buttons progress 06_03_2023 * List the Files on Files Tab * download buttons update * dataset download added to UI. * 06_24_2023 progress * unpackers, polishing and fixing test errors * last bit of test fixes. * flake issues * pytest errors * single select and final touches * flake and fixing tests * remove dev docker-compose file * hide all but public_startingkit data for no admin * Don't show non-registered\unlogged-in participants * Improve display --------- Co-authored-by: didayolo <adrien.pavao@gmail.com> --------- Co-authored-by: Ihsan Ullah <ihsan2131@gmail.com> Co-authored-by: Benjamin Bearce <bbearce@gmail.com>







@ mention of reviewers
@Didayolo
@ihsaan-ullah
A brief description of the purpose of the changes contained in this PR.
Adding the ability to add/edit public_data and starting_kit in phase.
Status:
DISCLAIMER NOT DONE --> separated PR
Issues this PR resolves
A checklist for hand testing
Make competition upload bundle
Make manual competition
Edit pre-existing competition
Double Check
Any relevant files for testing
...I can make a variation on classify wheat seeds for this testing
Checklist