Reopens 31014 - Changes to bug reporting storage and handling (#31763)

* initial work on migration to DB

* another step

* update report on submission

* syntax corrections

* syntax fix

* uses 2 bits to record rejections differently and makes the verb only create one bug report datum

* uses the correct value for the index this time

* fixes reading a specific bug report

* updates sql version

* oops

* changes the update file

* Update 71-72.sql

* adds detail to the comment in the update file

* remakes the bug report table instead of altering it

* change time2text for current time to SQL time

* selects columns explicitly

* change sql version in the code

* renamed load_to_db to save_to_db for clarity

* schema formatting and rounds can no longer be null

* messages all relevant roles when a bug report is made and also

* Prevents bug reports from being modified or handled by more than one person at a time

* Update tgui.bundle.js

* uses span macros in bug_report

* replaces usr with client var in bug report view proc

* Update debug.dm

* bundle rebuild, rest of reviews

---------

Co-authored-by: Migratingcocofruit <guycxz@gmail.com>
This commit is contained in:
Miles
2026-03-23 17:26:55 +00:00
committed by GitHub
co-authored by Migratingcocofruit
parent 6802e164a2
commit 1395883465
13 changed files with 202 additions and 135 deletions
+11 -8
View File
@@ -672,11 +672,14 @@ CREATE TABLE `json_datum_saves` (
--
DROP TABLE IF EXISTS `bug_reports`;
CREATE TABLE `bug_reports` (
`db_uid` BIGINT(32) NOT NULL,
`author_ckey` varchar(32) NOT NULL,
`title` MEDIUMTEXT COLLATE 'utf8mb4_general_ci',
`round_id` int(11),
`contents_json` LONGTEXT,
CONSTRAINT bug_key PRIMARY KEY (`db_uid`,`author_ckey`) USING BTREE
) COLLATE = 'utf8mb4_general_ci' ENGINE = INNODB;
`id` INT NOT NULL AUTO_INCREMENT,
`filetime` DATETIME NOT NULL DEFAULT NOW(),
`author_ckey` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_general_ci',
`title` MEDIUMTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`round_id` INT(11) NOT NULL DEFAULT 0,
`contents_json` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`submitted` BIT(2) NOT NULL DEFAULT 0,
`approver_ckey` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_general_ci',
PRIMARY KEY (`id`),
INDEX `submitted` (`submitted`)
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;