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

Release/12.2.6.3 #4120

Merged
merged 4 commits into from
Oct 1, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void CopyDBAcrossServersTest()
{
string clientCode = "DHS";
string appCode = "CSET";
DbManager manager = new DbManager(new Version("12.2.6.2"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.3"), clientCode, appCode);
//TODO finish this.
//manager.CopyDBAcrossServers();
}
Expand All @@ -42,7 +42,7 @@ public void CopyDBFromInstallationSource()
//setup a destination file
string clientCode = "DHS";
string appCode = "CSET";
DbManager manager = new DbManager(new Version("12.2.6.2"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.3"), clientCode, appCode);
//run the same test twice and make sure that the number increment works
string mdf = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}\\CSETWebTest.mdf";
string ldf = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}\\CSETWebTest_log.ldf";
Expand All @@ -68,7 +68,7 @@ public void TestUpgrade()
//setup a destination file
string clientCode = "Test";
string appCode = "Test";
DbManager manager = new DbManager(new Version("12.2.6.2"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.3"), clientCode, appCode);

//manager.ForceCloseAndDetach(DbManager.localdb2019_ConnectionString, "TestWeb");
//manager.AttachTest("TestWeb", testdb, testlog);
Expand All @@ -81,7 +81,7 @@ public void TestUpgrade()

manager.SetupDb();

upgrader.UpgradeOnly(new Version("12.2.6.2"), "data source=(localdb)\\inllocaldb2022;initial catalog=TestWeb;persist security info=True;Integrated Security=SSPI;MultipleActiveResultSets=True");
upgrader.UpgradeOnly(new Version("12.2.6.3"), "data source=(localdb)\\inllocaldb2022;initial catalog=TestWeb;persist security info=True;Integrated Security=SSPI;MultipleActiveResultSets=True");


}
Expand All @@ -94,7 +94,7 @@ public void TestSetup()
//setup a destination file
string clientCode = "DHS";
string appCode = "CSET";
DbManager manager = new DbManager(new Version("12.2.6.2"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.3"), clientCode, appCode);
manager.SetupDb();
}

Expand All @@ -106,7 +106,7 @@ public void CopyDBFromInstallationSourceTest2()
string mdf = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}\\CSETWebTest.mdf";
string ldf = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}\\CSETWebTest_log.ldf";

DbManager manager = new DbManager(new Version("12.2.6.2"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.3"), clientCode, appCode);
//run the same test twice and make sure that the number increment works
string conString = "Server=(localdb)\\inllocaldb2022;Integrated Security=true;AttachDbFileName=" + mdf;
using (SqlConnection conn = new SqlConnection(conString))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AssemblyVersion>12.2.6.2</AssemblyVersion>
<AssemblyVersion>12.2.6.3</AssemblyVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
ο»Ώ////////////////////////////////
//
// Copyright 2024 Battelle Energy Alliance, LLC
//
//
////////////////////////////////
using System;
using Microsoft.Data.SqlClient;
using System.IO;
namespace UpgradeLibrary.Upgrade
{
internal class ConvertDatabase12263 : ConvertSqlDatabase
{
public ConvertDatabase12263(string path) : base(path)
{
myVersion = new Version("12.2.6.3");
}

/// <summary>
/// Runs the database update script
/// </summary>
/// <param name="conn"></param>F
public override void Execute(SqlConnection conn)
{
try
{
this.UpgradeToVersionLocalDB(conn, myVersion);
}
catch (Exception e)
{
throw new DatabaseUpgradeException("Error in upgrading database version 12.2.6.2 to 12.2.6.3: " + e.Message);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public VersionUpgrader(string path)
converters.Add("12.2.5.0", new ConvertDatabase12260(path));
converters.Add("12.2.6.0", new ConvertDatabase12261(path));
converters.Add("12.2.6.1", new ConvertDatabase12262(path));
converters.Add("12.2.6.2", new ConvertDatabase12263(path));

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AssemblyVersion>12.2.6.2</AssemblyVersion>
<AssemblyVersion>12.2.6.3</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(RunConfiguration)' == 'CSETWeb_ApiCore' " />
Expand Down
6 changes: 3 additions & 3 deletions CSETWebNg/main-electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function createWindow() {
height: 800,
webPreferences: { nodeIntegration: true, webSecurity: false },
icon: path.join(__dirname, 'dist/favicon_' + installationMode.toLowerCase() + '.ico'),
title: appName === 'ACET' ? 'TOOLBOX' : appName
title: appName === appName
});

// Default Electron application menu is immutable; have to create new one and modify from there
Expand Down Expand Up @@ -208,7 +208,7 @@ function createWindow() {
rootDir = path.dirname(app.getPath('exe'));
}

log.info('Root Directory of ' + appName === 'ACET' ? 'TOOLBOX' : appName + ' Electron app: ' + rootDir);
log.info('Root Directory of ' + appName + ' Electron app: ' + rootDir);

if (app.isPackaged) {

Expand Down Expand Up @@ -334,7 +334,7 @@ function createWindow() {
overrideBrowserWindowOptions: {
parent: mainWindow,
icon: path.join(__dirname, 'dist/favicon_' + installationMode.toLowerCase() + '.ico'),
title: details.frameName === 'csetweb-ng' || '_blank' ? `${appName === 'ACET' ? 'TOOLBOX' : appName}` : details.frameName
title: details.frameName === 'csetweb-ng' || '_blank' ? `${appName}` : details.frameName
}
};
})
Expand Down
2 changes: 1 addition & 1 deletion CSETWebNg/src/app/services/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export class ConfigService {
link.href = 'assets/icons/favicon_acet.ico?app=acet1';

var title = this.document.querySelector('title');
title.innerText = 'TOOLBOX';
title.innerText = 'ACET';
}
break;
case 'TSA':
Expand Down
2 changes: 1 addition & 1 deletion CSETWebNg/src/assets/settings/config.ACET.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"installationMode": "ACET",
"galleryLayout": "ACET",
"behaviors": {
"defaultTitle": "TOOLBOX",
"defaultTitle": "ACET",
"showModuleBuilder": true,
"showAssessmentDocuments": false,
"showAggregation": true,
Expand Down
4 changes: 2 additions & 2 deletions CSETWebNg/src/assets/splashACET.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
style="position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<div style="text-align: center; margin-top: -100px;">
<div style="display: flex; align-items: center;">
<img src="images/NCUA/logo.svg" alt="Toolbox logo" style="margin-right: 1rem;">
<img src="images/NCUA/logo.svg" alt="ACET logo" style="margin-right: 1rem;">
</div>
<p class="font-family-roboto">v12.2.6.2</p>
<p class="font-family-roboto">v12.2.6.3</p>
<div class="spinner-container"
style="margin-top: 30px; display: flex; flex-direction: column; align-items: center;">
<div class="spinner-size-50"></div>
Expand Down
Loading