Skip to content
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

Improve bug reports #1476

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 122 additions & 8 deletions locale/fi/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ msgid "Search by user's first name, last name or reservation units name"
msgstr "Etsi käyttäjän etu- tai sukunimellä tai varausyksikön nimellä"

#: tilavarauspalvelu/admin/application/admin.py
#: tilavarauspalvelu/admin/bug_report/admin.py
#: tilavarauspalvelu/admin/reservation/admin.py
#: tilavarauspalvelu/admin/reservation/form.py
msgid "Created at"
Expand Down Expand Up @@ -415,6 +416,7 @@ msgstr ""

#: tilavarauspalvelu/admin/application_round/form.py
#: tilavarauspalvelu/admin/application_section/form.py
#: tilavarauspalvelu/admin/bug_report/admin.py
#: tilavarauspalvelu/admin/city/admin.py
#: tilavarauspalvelu/admin/organisation/admin.py
#: tilavarauspalvelu/admin/reservation/form.py
Expand Down Expand Up @@ -802,8 +804,122 @@ msgstr ""
"aktiivisia."

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Search by name or description"
msgstr "Etsi nimellä tai kuvauksella"
#: tilavarauspalvelu/admin/reservation/form.py
#: tilavarauspalvelu/admin/reservation_unit/form.py
msgid "Description"
msgstr "Kuvaus"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "GitHub release"
msgstr "GitHub julkaisu"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Jira ticket URL"
msgstr "Jira tiketin osoite"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "GitHub PR URL"
msgstr "GitHub PR osoite"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Target application"
msgstr "Kohde sovellus"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Fix priority"
msgstr "Korjauksen prioriteetti"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Fix strategy"
msgstr "Korjauksen strategia"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Phase"
msgstr "Vaihe"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Real issue?"
msgstr "Oikea ongelma?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Found by"
msgstr "Löytäjä"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Found at"
msgstr "Löydetty"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Fixed by"
msgstr "Korjaaja"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Fixed at"
msgstr "Korjattu"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Updated at"
msgstr "Päivitetty"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Name of the bug report"
msgstr "Virheilmoituksen nimi"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Description for the bug report"
msgstr "Virheilmoituksen kuvaus"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "GitHub release tag"
msgstr "GitHub julkaisun tagi"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Which application was the bug found in?"
msgstr "Missä sovelluksessa virhe löydettiin?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "How urgently should this bug be fixed?"
msgstr "Kuinka pian virhe tulisi korjata?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "In which way could this bug have been caught?"
msgstr "Millä tavalla tämän virhe olisi voinut saada kiinni?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Phase in which the bug was found"
msgstr "Vaihe jossa virhe löydettiin"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Was this a real issue or e.g. broken test?"
msgstr "Oliko virhe oikea, vai esim. rikkinäisen testin aiheuttama?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Who found the bug?"
msgstr "Kuka löysi virheen?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "When was the bug found?"
msgstr "Milloin virhe löydettiin?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Who fixed the bug?"
msgstr "Kuka korjasi virheen?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "When was the bug fixed?"
msgstr "Milloin virhe korjattiin?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "When was the bug report created?"
msgstr "Milloin virheilmoitus tehtiin?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "When was the bug report updated?"
msgstr "Milloin virheilmoitusta muokattiin viimeksi?"

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Search by name, description, Jira ticket URL or GitHub PR URL"
msgstr "Hae nimen, kuvauksen, jiratiketin osoitteen tai GitHub PR:n osoitteen avulla"

#: tilavarauspalvelu/admin/city/admin.py
msgid "Municipality"
Expand Down Expand Up @@ -1207,11 +1323,6 @@ msgstr "Maksullinen varaus"
msgid "SKU"
msgstr "SKU"

#: tilavarauspalvelu/admin/reservation/form.py
#: tilavarauspalvelu/admin/reservation_unit/form.py
msgid "Description"
msgstr "Kuvaus"

#: tilavarauspalvelu/admin/reservation/form.py
msgid "State"
msgstr "Tila"
Expand Down Expand Up @@ -2940,7 +3051,6 @@ msgid "Your seasonal booking has been cancelled"
msgstr "Kausivarauksesi on peruttu"

#: tilavarauspalvelu/integrations/email/template_context/application.py
#: tilavarauspalvelu/integrations/email/template_context/reservation.py
msgctxt "Email"
msgid ""
"All space reservations included in your seasonal booking have been cancelled"
Expand Down Expand Up @@ -3394,6 +3504,10 @@ msgstr ""
msgid "Someone else, who?"
msgstr "Joku muu, kuka?"

#: tilavarauspalvelu/models/bug_report/model.py
msgid "Something else, what?"
msgstr "Jokin muu, mikä?"

#: tilavarauspalvelu/models/bug_report/model.py
msgid "bug report"
msgstr "virheilmoitus"
Expand Down
128 changes: 121 additions & 7 deletions locale/sv/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ msgid "Search by user's first name, last name or reservation units name"
msgstr ""

#: tilavarauspalvelu/admin/application/admin.py
#: tilavarauspalvelu/admin/bug_report/admin.py
#: tilavarauspalvelu/admin/reservation/admin.py
#: tilavarauspalvelu/admin/reservation/form.py
msgid "Created at"
Expand Down Expand Up @@ -404,6 +405,7 @@ msgstr ""

#: tilavarauspalvelu/admin/application_round/form.py
#: tilavarauspalvelu/admin/application_section/form.py
#: tilavarauspalvelu/admin/bug_report/admin.py
#: tilavarauspalvelu/admin/city/admin.py
#: tilavarauspalvelu/admin/organisation/admin.py
#: tilavarauspalvelu/admin/reservation/form.py
Expand Down Expand Up @@ -769,7 +771,121 @@ msgid ""
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Search by name or description"
#: tilavarauspalvelu/admin/reservation/form.py
#: tilavarauspalvelu/admin/reservation_unit/form.py
msgid "Description"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "GitHub release"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Jira ticket URL"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "GitHub PR URL"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Target application"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Fix priority"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Fix strategy"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Phase"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Real issue?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Found by"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Found at"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Fixed by"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Fixed at"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Updated at"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Name of the bug report"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Description for the bug report"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "GitHub release tag"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Which application was the bug found in?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "How urgently should this bug be fixed?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "In which way could this bug have been caught?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Phase in which the bug was found"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Was this a real issue or e.g. broken test?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Who found the bug?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "When was the bug found?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Who fixed the bug?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "When was the bug fixed?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "When was the bug report created?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "When was the bug report updated?"
msgstr ""

#: tilavarauspalvelu/admin/bug_report/admin.py
msgid "Search by name, description, Jira ticket URL or GitHub PR URL"
msgstr ""

#: tilavarauspalvelu/admin/city/admin.py
Expand Down Expand Up @@ -1164,11 +1280,6 @@ msgstr ""
msgid "SKU"
msgstr ""

#: tilavarauspalvelu/admin/reservation/form.py
#: tilavarauspalvelu/admin/reservation_unit/form.py
msgid "Description"
msgstr ""

#: tilavarauspalvelu/admin/reservation/form.py
msgid "State"
msgstr ""
Expand Down Expand Up @@ -2876,7 +2987,6 @@ msgid "Your seasonal booking has been cancelled"
msgstr "Din säsongsbokning har avbokats"

#: tilavarauspalvelu/integrations/email/template_context/application.py
#: tilavarauspalvelu/integrations/email/template_context/reservation.py
msgctxt "Email"
msgid ""
"All space reservations included in your seasonal booking have been cancelled"
Expand Down Expand Up @@ -3323,6 +3433,10 @@ msgstr ""
msgid "Someone else, who?"
msgstr ""

#: tilavarauspalvelu/models/bug_report/model.py
msgid "Something else, what?"
msgstr ""

#: tilavarauspalvelu/models/bug_report/model.py
msgid "bug report"
msgstr ""
Expand Down
11 changes: 9 additions & 2 deletions tests/test_admin/test_django_admin_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@

from tilavarauspalvelu.enums import EmailType
from tilavarauspalvelu.models import BugReport, RequestLog, Reservation, SQLLog
from tilavarauspalvelu.models.bug_report.model import BugReportPhaseChoice, BugReportUserChoice
from tilavarauspalvelu.models.bug_report.model import (
BugReportPhaseChoice,
BugReportPriorityChoice,
BugReportTargetChoice,
BugReportUserChoice,
)
from tilavarauspalvelu.tasks import create_or_update_reservation_statistics
from tilavarauspalvelu.utils.verkkokauppa.verkkokauppa_api_client import VerkkokauppaAPIClient
from utils.date_utils import local_datetime
Expand Down Expand Up @@ -50,7 +55,9 @@ def create_all_models():
)
BugReport.objects.create(
name="Example",
phase=BugReportPhaseChoice.PULL_REQUEST,
target=BugReportTargetChoice.BACKEND,
priority=BugReportPriorityChoice.THIS_SPRINT,
found_in_phase=BugReportPhaseChoice.PULL_REQUEST,
found_by=BugReportUserChoice.MATTI,
found_at=local_datetime(),
)
Expand Down
Loading
Loading