убирание джсон запакованных полей у баг репортов
This commit is contained in:
2025-03-27 15:31:26 +03:00
parent dcdbaa83cf
commit 7178ecbc9c
19 changed files with 43 additions and 189 deletions

View File

@@ -19,7 +19,6 @@ import _VisualDVM.Passes.All.ZipFolderPass;
import _VisualDVM.ProjectData.LanguageName;
import _VisualDVM.Repository.EmailMessage;
import _VisualDVM.Repository.Server.RepositoryServer;
import _VisualDVM.TestingSystem.DVM.DVMConfigurationTest.DVMConfigurationTest;
import _VisualDVM.Utils;
import javafx.util.Pair;
import org.apache.commons.io.FileUtils;
@@ -67,24 +66,24 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
}
@Override
protected void afterPublishAction(DBObject object) throws Exception {
if (object instanceof BugReport){
if (object instanceof BugReport) {
BugReport bugReport = (BugReport) object;
if (bugReport.settings!=null){
for (BugReportSetting setting: bugReport.settings){
setting.bugreport_id=bugReport.id;
if (bugReport.settings != null) {
for (BugReportSetting setting : bugReport.settings) {
setting.bugreport_id = bugReport.id;
db.Insert(setting);
}
}
if (bugReport.recipients!=null){
if (bugReport.recipients != null) {
db.saveBugreportRecipients(bugReport);
}
}
}
@Override
protected void afterEditAction(DBObject object) throws Exception {
if (object instanceof BugReport){
if (object instanceof BugReport) {
BugReport bugReport = (BugReport) object;
if (bugReport.recipients!=null){
if (bugReport.recipients != null) {
db.bugReportRecipients.ActualizeData(
db.getVectorByFK(bugReport, BugReportRecipient.class),
bugReport.recipients);
@@ -379,9 +378,4 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
throw new RepositoryRefuseException("Неподдерживаемый код: " + code);
}
}
@Override
public void StartAction() throws Exception {
super.StartAction();
db.Patch();
}
}