Skip to content

Notify users if they have submitted a text answer but sent no description#1421

Open
michalstanik1 wants to merge 4 commits intomasterfrom
susi-notifications
Open

Notify users if they have submitted a text answer but sent no description#1421
michalstanik1 wants to merge 4 commits intomasterfrom
susi-notifications

Conversation

@michalstanik1
Copy link
Copy Markdown
Contributor

…tion

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 21, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.39%. Comparing base (2e3ab36) to head (87cbf60).
⚠️ Report is 52 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1421      +/-   ##
==========================================
+ Coverage   74.29%   74.39%   +0.10%     
==========================================
  Files         138      138              
  Lines        6482     6492      +10     
  Branches      822      824       +2     
==========================================
+ Hits         4816     4830      +14     
+ Misses       1520     1518       -2     
+ Partials      146      144       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@gardenerik gardenerik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zabezpečme, prosím, nech ak by sa ďalšia súťaž rozhodla mať textové submity, nech im to tam automaticky nesvieti.

msgstr "Zahrnúť všetky semináre"

msgid "You have submitted a text answer but have not submitted a description. This may lead to point deduction."
msgstr "Máš odovzdanú textovú odpoveď, ale žiaden popis. Toto môže viesť k strate bodov." No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
msgstr "Máš odovzdanú textovú odpoveď, ale žiaden popis. Toto môže viesť k strate bodov."
msgstr "Máš odovzdanú textovú odpoveď, ale žiaden popis. Toto môže viesť k strate bodov."

and task.round.can_submit
and user_submits.filter(task=task, submit_type=SUBMIT_TYPE_TEXT, points__gt=0)
and not user_submits.filter(task=task, submit_type=SUBMIT_TYPE_DESCRIPTION)
):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toto má potenciál spraviť pomerne veľké množstvo dotazov na databázu.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Máš nejaký návrh, ako to spraviť lepšie? Ak to bude iba 1 query a toto finálne filtrovanie sa urobí čisto v Pythone, pomôže to alebo sa to zhorší?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gardenerik Vieš sa, prosím, vyjadriť k tomuto? Ako zefektívniť ten dotaz na databázu?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

asi by som si vybral všetky submity, ktoré ťa zaujímajú a potom cez nejaký dict zisťovať, či pre danú úlohu (ne)existujú oba

@michalstanik1
Copy link
Copy Markdown
Contributor Author

Takže navrhuješ tam pridať podmienku typu "a zároveň súťaž je suši"?

Rozmýšľal som nad tým a je rovnako možné, že ďalšia súťaž s textovými submitmi bude tiež chcieť nejaké dôkazy/popisy, ako že nebude chcieť.

@gardenerik
Copy link
Copy Markdown
Contributor

V tomto stave ideálne asi ako konštanta v pravidlách súťaže? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants