updated db schema def

This commit is contained in:
2025-07-22 11:34:56 -04:00
parent a6f4a89b47
commit 3c35e7f60c
515 changed files with 272693 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
namespace CCNetWrapper
{
public class BuildLog
{
public string ProjectName { get; set; }
public string BuildNumber { get; set; }
public string Comment { get; set; }
public string ReleaseNote { get; set; } = string.Empty;
public List<string> ModifiedFiles { get; set; }
public string User { get; set; }
public DateTime Date { get; set; }
public string Fogbugz { get; set; }
public FogbugzWrapper.FBEvent.FBStatuses FBStatus { get; set; }
public BuildLog()
{
}
public BuildLog(string projectName, string buildNumber, string comment, string user, string date, string fogbugz, List<string> modifiedFiles)
{
ProjectName = projectName;
BuildNumber = buildNumber;
Comment = comment;
User = user;
Date = DateTime.Parse(date);
Fogbugz = fogbugz;
ModifiedFiles = modifiedFiles;
}
public int GetMinorBuildNumber()
{
return int.Parse(BuildNumber.Split('.')[2]);
}
}
}

View File

@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2E9CAA4F-8D10-4F53-8F3E-ACD0B9BA9441}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CCNetWrapper</RootNamespace>
<AssemblyName>CCNetWrapper</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BuildLog.cs" />
<Compile Include="ProjectLog.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FogbugzWrapper\FogbugzWrapper.csproj">
<Project>{4a6b9d30-da78-4bfe-b7cd-38774be0508f}</Project>
<Name>FogbugzWrapper</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,43 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace CCNetWrapper
{
public class ProjectLog
{
public List<BuildLog> BuildLogs { get; set; }
public ProjectLog()
{ BuildLogs = new List<BuildLog>(); }
public int GetCommitsPerUser(string userName)
{
return BuildLogs.Select(x => x.User == userName).ToArray().Count();
}
public void SortByMinorBuild()
{
BuildLogs = BuildLogs.OrderByDescending(x => x.GetMinorBuildNumber()).ToList();
}
private FogbugzWrapper.FogbugzClient _fBClient;
public void SetFBClient(FogbugzWrapper.FogbugzClient fogbugzClient, ref long progTotal, ref long progCurrent)
{
_fBClient = fogbugzClient;
progTotal = BuildLogs.Count;
progCurrent = 0;
foreach (var bl in BuildLogs)
{
bl.FBStatus = (string.IsNullOrEmpty(bl.Fogbugz) || _fBClient == null)
? FogbugzWrapper.FBEvent.FBStatuses.UNKNOWN
: _fBClient.GetStatus(int.Parse(bl.Fogbugz));
bl.ReleaseNote = (string.IsNullOrEmpty(bl.Fogbugz) || _fBClient == null)
? string.Empty
: _fBClient.GetReleaseNote(int.Parse(bl.Fogbugz));
Interlocked.Increment(ref progCurrent);
}
}
}
}

View File

@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CCNetWrapper")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CCNetWrapper")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2e9caa4f-8d10-4f53-8f3e-acd0b9ba9441")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5.2", FrameworkDisplayName = "")]

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View File

@@ -0,0 +1,9 @@
C:\DTS\Code\CCNetLogReader\CCNetWrapper\bin\Debug\CCNetWrapper.dll
C:\DTS\Code\CCNetLogReader\CCNetWrapper\bin\Debug\CCNetWrapper.pdb
C:\DTS\Code\CCNetLogReader\CCNetWrapper\bin\Debug\FogbugzWrapper.dll
C:\DTS\Code\CCNetLogReader\CCNetWrapper\bin\Debug\FogbugzWrapper.pdb
C:\DTS\Code\CCNetLogReader\CCNetWrapper\obj\Debug\CCNetWrapper.csproj.AssemblyReference.cache
C:\DTS\Code\CCNetLogReader\CCNetWrapper\obj\Debug\CCNetWrapper.csproj.CoreCompileInputs.cache
C:\DTS\Code\CCNetLogReader\CCNetWrapper\obj\Debug\CCNetWrapper.csproj.CopyComplete
C:\DTS\Code\CCNetLogReader\CCNetWrapper\obj\Debug\CCNetWrapper.dll
C:\DTS\Code\CCNetLogReader\CCNetWrapper\obj\Debug\CCNetWrapper.pdb