Records unhandled in-game bug reports in a DB table and loads the reports from it for the next round (#30710)

* initial table setup

* adds helpers to get full byond versions as numbers and adds those to the table as well

* reorder bug report new() proc and init bug_report_data as empty list instead of null

* more table changes. move adding the metadata to its own proc

* record unsent bug reports into the DB table

* refers to the correct index in the bug report data for the commit

* flip user and server byond versions

* jsonify bug report contents and metadata

* makes a bug report subsystem and moves recording to it

* Implements loading bug reports from the DB at shift start. Also removes handled bug reports from the DB directly

* Update SSbugreports.dm

* Update SSbugreports.dm

* scopes the bug report recording proc to the subsystem
This commit is contained in:
Migratingcocofruit
2025-11-01 16:06:34 +02:00
committed by GitHub
parent 32f4db8ab2
commit 1b2883e92e
8 changed files with 125 additions and 27 deletions
+1 -1
View File
@@ -937,7 +937,7 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
for(var/datum/tgui_bug_report_form/report in GLOB.bug_reports)
bug_report_selection["[report.initial_key] - [report.bug_report_data["title"]]"] = report
var/datum/tgui_bug_report_form/form = bug_report_selection[tgui_input_list(usr, "Select a report to view:", "Bug Reports", bug_report_selection)]
if(!form.assign_approver(usr))
if(!form?.assign_approver(usr))
return
form.ui_interact(usr)
return