Skip to content

Commit

Permalink
Merge pull request #4045 from cisagov/release/12.2.6.2
Browse files Browse the repository at this point in the history
Release for ISE 12.2.6.2
  • Loading branch information
randywoods authored Sep 11, 2024
2 parents d6eda7a + 324d6d3 commit a997ecd
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 16 deletions.
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.1"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.2"), 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.1"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.2"), 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.1"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.2"), 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.1"), "data source=(localdb)\\inllocaldb2022;initial catalog=TestWeb;persist security info=True;Integrated Security=SSPI;MultipleActiveResultSets=True");
upgrader.UpgradeOnly(new Version("12.2.6.2"), "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.1"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.2"), 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.1"), clientCode, appCode);
DbManager manager = new DbManager(new Version("12.2.6.2"), 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.1</AssemblyVersion>
<AssemblyVersion>12.2.6.2</AssemblyVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class ConvertDatabase12261 : ConvertSqlDatabase
{
public ConvertDatabase12261(string path) : base(path)
{
myVersion = new Version("12.2.6.0");
myVersion = new Version("12.2.6.1");
}

/// <summary>
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 ConvertDatabase12262 : ConvertSqlDatabase
{
public ConvertDatabase12262(string path) : base(path)
{
myVersion = new Version("12.2.6.2");
}

/// <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.1 to 12.2.6.2: " + e.Message);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ BEGIN TRANSACTION
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO
IF OBJECT_ID('[dbo].[usp_GetMaturityAnswerTotals]') IS NOT NULL
BEGIN
DROP PROCEDURE [dbo].[usp_GetMaturityAnswerTotals]
END
PRINT N'Creating [dbo].[usp_GetMaturityAnswerTotals]'
GO

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public VersionUpgrader(string path)
converters.Add("12.2.4.0", new ConvertDatabase12250(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));

}

public void UpgradeOnly(Version currentVersion, string tempConnect)
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.1</AssemblyVersion>
<AssemblyVersion>12.2.6.2</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(RunConfiguration)' == 'CSETWeb_ApiCore' " />
Expand Down
8 changes: 4 additions & 4 deletions CSETWebNg/main-electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let appName;
switch (installationMode) {
case 'ACET':
clientCode = 'NCUA';
appName = 'TOOLBOX';
appName = 'ACET';
break;
case 'TSA':
clientCode = 'TSA';
Expand Down 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
title: appName === 'ACET' ? 'TOOLBOX' : 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 + ' Electron app: ' + rootDir);
log.info('Root Directory of ' + appName === 'ACET' ? 'TOOLBOX' : 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}` : details.frameName
title: details.frameName === 'csetweb-ng' || '_blank' ? `${appName === 'ACET' ? 'TOOLBOX' : 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 @@ -334,7 +334,7 @@ export class ConfigService {
link.href = 'assets/icons/favicon_acet.ico?app=acet1';

var title = this.document.querySelector('title');
title.innerText = 'ACET';
title.innerText = 'TOOLBOX';
}
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 @@ -8,7 +8,7 @@
"showAggregation": true,
"showAnalytics": false,
"showAnalyticsAtTheEnd": false,
"showMenuLanguagePicker": true,
"showMenuLanguagePicker": false,
"showAnalyticsColumnOnLanding": false,
"splashPageHTML": "dist/assets/splashACET.html",
"showFacilityName": false,
Expand Down
2 changes: 1 addition & 1 deletion CSETWebNg/src/assets/splashACET.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<div style="display: flex; align-items: center;">
<img src="images/NCUA/logo.svg" alt="Toolbox logo" style="margin-right: 1rem;">
</div>
<p class="font-family-roboto">v12.2.6.1</p>
<p class="font-family-roboto">v12.2.6.2</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

0 comments on commit a997ecd

Please sign in to comment.