++
убирание джсон запакованных полей у баг репортов
This commit is contained in:
@@ -58,52 +58,5 @@ public class BugReportsDatabase extends SQLiteDatabase {
|
||||
}
|
||||
}
|
||||
public void Patch() throws Exception {
|
||||
/*
|
||||
Vector<BugReportSetting> settings = new Vector<>();
|
||||
//--
|
||||
for (BugReport bugReport : bugReports.Data.values()) {
|
||||
//--
|
||||
if (!bugReport.project_version.isEmpty()) {
|
||||
if (bugReport.visualiser_version < 1134) {
|
||||
VisualiserSettingsJson visualiserSettingsJson = bugReport.getSettingsJson();
|
||||
for (VisualiserSettingJson visualiserSettingJson : visualiserSettingsJson.array) {
|
||||
BugReportSetting bugReportSetting = new BugReportSetting();
|
||||
bugReportSetting.bugreport_id = bugReport.id;
|
||||
bugReportSetting.name = visualiserSettingJson.name;
|
||||
bugReportSetting.value = visualiserSettingJson.value;
|
||||
settings.add(bugReportSetting);
|
||||
}
|
||||
} else {
|
||||
SapforProperties sapforProperties = bugReport.getPropertiesJson();
|
||||
Vector<BugReportSetting> settings_= sapforProperties.toBugReportSettings();
|
||||
for (BugReportSetting bugReportSetting: settings_)
|
||||
bugReportSetting.bugreport_id = bugReport.id;
|
||||
settings.addAll(settings_);
|
||||
}
|
||||
}
|
||||
//--
|
||||
}
|
||||
BeginTransaction();
|
||||
for (BugReportSetting bugReportSetting : settings)
|
||||
Insert(bugReportSetting);
|
||||
Commit();
|
||||
*/
|
||||
//---
|
||||
/*
|
||||
Vector<BugReportRecipient> recipients = new Vector<>();
|
||||
for (BugReport bugReport: bugReports.Data.values()){
|
||||
RecipientsJson recipientsJson = Utils_.gson.fromJson(bugReport.packedRecipientsJson, RecipientsJson.class);
|
||||
for (RecipientJson recipientJson: recipientsJson.array){
|
||||
recipients.add(new BugReportRecipient(bugReport, recipientJson.address));
|
||||
}
|
||||
}
|
||||
|
||||
//-
|
||||
BeginTransaction();
|
||||
for (BugReportRecipient recipient: recipients){
|
||||
Insert(recipient);
|
||||
}
|
||||
Commit();
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user