Move uRelease and adjust uRelease namespaces to be correct
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ dependencies/Marketplace*
|
||||
[Bb]in
|
||||
[Db]ebug*/
|
||||
obj/
|
||||
[Rr]elease*/
|
||||
[Bb]in/[Rr]elease*/
|
||||
_ReSharper*/
|
||||
*.ncrunchsolution
|
||||
*.ncrunchsolution.user
|
||||
|
||||
@@ -4734,10 +4734,6 @@
|
||||
<Project>{547c2d0d-1b55-493b-ae0b-e031a5b8ee77}</Project>
|
||||
<Name>uForum</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\uRelease\uRelease.csproj">
|
||||
<Project>{c5b74e6a-abce-4a9a-896d-89c33fdafcd8}</Project>
|
||||
<Name>uRelease</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\migrations\" />
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@using OurUmbraco.Release
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
|
||||
@{
|
||||
@@ -15,7 +16,7 @@
|
||||
}
|
||||
|
||||
var majorVersionGroups = sortedVersions.GroupBy(x => x.Key.Major).OrderByDescending(x => x.Key);
|
||||
var allVersions = new uRelease.Versions();
|
||||
var allVersions = new Versions();
|
||||
var youTrackVersions = allVersions.GetAggregateVersionsFromFile();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>
|
||||
<%@ Import Namespace="uRelease" %>
|
||||
<%@ Import Namespace="OurUmbraco.Release" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>
|
||||
<%@ Import Namespace="Umbraco.Web" %>
|
||||
<%@ Import Namespace="uRelease" %>
|
||||
<%@ Import Namespace="OurUmbraco.Release" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderId="Head" runat="server">
|
||||
</asp:Content>
|
||||
@@ -24,7 +24,7 @@
|
||||
</umbraco:Macro>
|
||||
<%
|
||||
var currentPage = UmbracoContext.Current.PublishedContentRequest.PublishedContent;
|
||||
var allReleases = uRelease.Release.GetAllReleaseFromFile();
|
||||
var allReleases = Release.GetAllReleaseFromFile();
|
||||
var release = allReleases.First(x => x.version == currentPage.Name);
|
||||
var completedIssues = release.issues.Count(x => x.state == "Fixed");
|
||||
var totalIssues = release.issues.Count();
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>
|
||||
|
||||
<%@ Import Namespace="OurUmbraco.Release" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderId="Head" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderId="Main" runat="server">
|
||||
<%
|
||||
var allReleases = uRelease.Release.GetAllReleaseFromFile();
|
||||
var allReleases = Release.GetAllReleaseFromFile();
|
||||
%>
|
||||
<div class="has-sidebar"><!-- Apply to body -->
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>
|
||||
<%@ Import Namespace="OurUmbraco.Release" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">
|
||||
<%
|
||||
var allReleases = uRelease.Release.GetAllReleaseFromFile();
|
||||
var allReleases = Release.GetAllReleaseFromFile();
|
||||
var inProgress = allReleases.Where(x => x.inProgressRelease).ToList();
|
||||
%>
|
||||
<div class="has-sidebar">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>
|
||||
<%@ Import Namespace="OurUmbraco.Release" %>
|
||||
<asp:Content ContentPlaceHolderID="Head" runat="server">
|
||||
<% if (Request.Url.AbsolutePath.ToLowerInvariant() == "/roadmap/" || Request.Url.AbsolutePath.ToLowerInvariant() == "/roadmap")
|
||||
{
|
||||
@@ -29,7 +30,7 @@
|
||||
<h2>Planned Releases:</h2>
|
||||
|
||||
</div>
|
||||
<% var roadmap = uRelease.Roadmap.GetRoadmapReleasesFromFile(); %>
|
||||
<% var roadmap = Roadmap.GetRoadmapReleasesFromFile(); %>
|
||||
<% foreach (var release in roadmap.OrderBy(x => x.version))
|
||||
{
|
||||
var completedIssues = release.issues.Count(x => x.state == "Fixed");
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.UserControl" %>
|
||||
<%@ Import Namespace="OurUmbraco.Release" %>
|
||||
|
||||
<script runat="server">
|
||||
|
||||
@@ -13,7 +14,7 @@
|
||||
|
||||
void GetYouTrackButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
var import = new uRelease.Import();
|
||||
var import = new Import();
|
||||
var result = import.SaveAllToFile();
|
||||
Status = result;
|
||||
}
|
||||
|
||||
@@ -65,6 +65,10 @@
|
||||
<HintPath>..\packages\xmlrpcnet.2.5.0\lib\net20\CookComputing.XmlRpcV2.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="EasyHttp, Version=1.6.29.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EasyHttp.1.6.29.0\lib\net40\EasyHttp.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Examine, Version=0.1.65.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Examine.0.1.65.0\lib\Examine.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
@@ -89,6 +93,10 @@
|
||||
<HintPath>..\packages\UmbracoCms.Core.7.2.8-build103\lib\interfaces.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="JsonFx, Version=2.0.1209.2802, Culture=neutral, PublicKeyToken=315052dd637f8a52, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\JsonFx.2.0.1209.2802\lib\net40\JsonFx.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="log4net, Version=1.2.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\UmbracoCms.Core.7.2.8-build103\lib\log4net.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
@@ -231,6 +239,10 @@
|
||||
<HintPath>..\packages\UmbracoCms.Core.7.2.8-build103\lib\UrlRewritingNet.UrlRewriter.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="YouTrackSharp, Version=2.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\YouTrackSharp.2.0.11.0\lib\net40\YouTrackSharp.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Documentation\Busineslogic\ConventionExtensions.cs" />
|
||||
@@ -259,6 +271,20 @@
|
||||
<Compile Include="Powers\Library\Utils.cs" />
|
||||
<Compile Include="Powers\Library\xslt.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Release\App_Start\ControllerRouting.cs" />
|
||||
<Compile Include="Release\Controllers\NodeExtensions.cs" />
|
||||
<Compile Include="Release\Download.cs" />
|
||||
<Compile Include="Release\Extensions.cs" />
|
||||
<Compile Include="Release\Import.cs" />
|
||||
<Compile Include="Release\Models\AggregateView.cs" />
|
||||
<Compile Include="Release\Models\Comment.cs" />
|
||||
<Compile Include="Release\Models\Version.cs" />
|
||||
<Compile Include="Release\Models\YouTrackComment.cs" />
|
||||
<Compile Include="Release\Models\YouTrackField.cs" />
|
||||
<Compile Include="Release\Models\YouTrackIssue.cs" />
|
||||
<Compile Include="Release\Release.cs" />
|
||||
<Compile Include="Release\Roadmap.cs" />
|
||||
<Compile Include="Release\Versions.cs" />
|
||||
<Compile Include="Repository\Project.cs" />
|
||||
<Compile Include="Repository\Projects.cs" />
|
||||
<Compile Include="Repository\RepoStartupHandler.cs" />
|
||||
@@ -301,6 +327,7 @@
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Forum\" />
|
||||
<Folder Include="Repository\webservices\App_Data\" />
|
||||
<Folder Include="Wiki\usercontrols\scripts\" />
|
||||
</ItemGroup>
|
||||
|
||||
+19
-19
@@ -1,20 +1,20 @@
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
using uRelease;
|
||||
|
||||
[assembly: PreApplicationStartMethod(typeof(ControllerRouting), "Setup")]
|
||||
namespace uRelease
|
||||
{
|
||||
public class ControllerRouting
|
||||
{
|
||||
public static void Setup()
|
||||
{
|
||||
RouteTable.Routes.MapRoute(
|
||||
"ApiRoute", // Route name
|
||||
"api/{action}/{ids}", // URL with parameters
|
||||
new { controller = "Api", action = "Aggregate", ids = UrlParameter.Optional } // Parameter defaults
|
||||
);
|
||||
}
|
||||
}
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
using OurUmbraco.Release.App_Start;
|
||||
|
||||
[assembly: PreApplicationStartMethod(typeof(ControllerRouting), "Setup")]
|
||||
namespace OurUmbraco.Release.App_Start
|
||||
{
|
||||
public class ControllerRouting
|
||||
{
|
||||
public static void Setup()
|
||||
{
|
||||
RouteTable.Routes.MapRoute(
|
||||
"ApiRoute", // Route name
|
||||
"api/{action}/{ids}", // URL with parameters
|
||||
new { controller = "Api", action = "Aggregate", ids = UrlParameter.Optional } // Parameter defaults
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -1,7 +1,6 @@
|
||||
using System.Linq;
|
||||
using umbraco.interfaces;
|
||||
using umbraco.interfaces;
|
||||
|
||||
namespace uRelease.Controllers
|
||||
namespace OurUmbraco.Release.Controllers
|
||||
{
|
||||
public static class NodeExtensions
|
||||
{
|
||||
@@ -3,10 +3,9 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Script.Serialization;
|
||||
using uRelease.Controllers;
|
||||
using uRelease.Models;
|
||||
using OurUmbraco.Release.Models;
|
||||
|
||||
namespace uRelease
|
||||
namespace OurUmbraco.Release
|
||||
{
|
||||
public static class Download
|
||||
{
|
||||
@@ -1,70 +1,69 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using uRelease.Models;
|
||||
using Version = System.Version;
|
||||
|
||||
namespace uRelease
|
||||
{
|
||||
public static class Extensions
|
||||
{
|
||||
public static DateTime JavaTimeStampToDateTime(double javaTimeStamp)
|
||||
{
|
||||
// Java timestamp is millisecods past epoch
|
||||
var dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0);
|
||||
dtDateTime = dtDateTime.AddSeconds(Math.Round(javaTimeStamp / 1000)).ToLocalTime();
|
||||
return dtDateTime;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the version number as a int to deal with minor versions with single digits
|
||||
/// </summary>
|
||||
/// <param name="ver"></param>
|
||||
/// <returns></returns>
|
||||
public static Version AsFullVersion(this string ver)
|
||||
{
|
||||
return new Version(ver);
|
||||
}
|
||||
|
||||
public static string GetFieldValue(this YouTrackIssue issue, string fieldName)
|
||||
{
|
||||
var findField = issue.Field.FirstOrDefault(x => x.Name == fieldName);
|
||||
return findField != null ? findField.Value.ToString().Replace("[", string.Empty).Replace("]", string.Empty).Replace("\"", string.Empty).Trim() : string.Empty;
|
||||
}
|
||||
|
||||
public static DateTime ConvertFromUnixDate(this long date)
|
||||
{
|
||||
return new DateTime(1970, 1, 1).AddMilliseconds(date);
|
||||
}
|
||||
|
||||
public static string StateIcon(this IssueView issue)
|
||||
{
|
||||
switch (issue.state.ToLowerInvariant().Replace(" ", "").Replace("'", ""))
|
||||
{
|
||||
case "submitted":
|
||||
return "icon-Checkbox-dotted";
|
||||
case "open":
|
||||
return "icon-Checkbox-empty";
|
||||
case "inprogress":
|
||||
return "icon-Paper-plane-alt";
|
||||
case "fixed":
|
||||
return "icon-Check";
|
||||
case "duplicate":
|
||||
return "icon-Multiple-windows";
|
||||
case "cantreproduce":
|
||||
return "icon-Enter";
|
||||
case "obsolete":
|
||||
return "icon-Scull";
|
||||
case "closed":
|
||||
return "icon-Stop-alt";
|
||||
case "reopened":
|
||||
return "icon-Undo";
|
||||
case "workaroundposted":
|
||||
return "icon-Redo";
|
||||
case "resolved":
|
||||
return "icon-Check";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Linq;
|
||||
using OurUmbraco.Release.Models;
|
||||
|
||||
namespace OurUmbraco.Release
|
||||
{
|
||||
public static class Extensions
|
||||
{
|
||||
public static DateTime JavaTimeStampToDateTime(double javaTimeStamp)
|
||||
{
|
||||
// Java timestamp is millisecods past epoch
|
||||
var dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0);
|
||||
dtDateTime = dtDateTime.AddSeconds(Math.Round(javaTimeStamp / 1000)).ToLocalTime();
|
||||
return dtDateTime;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the version number as a int to deal with minor versions with single digits
|
||||
/// </summary>
|
||||
/// <param name="ver"></param>
|
||||
/// <returns></returns>
|
||||
public static System.Version AsFullVersion(this string ver)
|
||||
{
|
||||
return new System.Version(ver);
|
||||
}
|
||||
|
||||
public static string GetFieldValue(this YouTrackIssue issue, string fieldName)
|
||||
{
|
||||
var findField = issue.Field.FirstOrDefault(x => x.Name == fieldName);
|
||||
return findField != null ? findField.Value.ToString().Replace("[", string.Empty).Replace("]", string.Empty).Replace("\"", string.Empty).Trim() : string.Empty;
|
||||
}
|
||||
|
||||
public static DateTime ConvertFromUnixDate(this long date)
|
||||
{
|
||||
return new DateTime(1970, 1, 1).AddMilliseconds(date);
|
||||
}
|
||||
|
||||
public static string StateIcon(this IssueView issue)
|
||||
{
|
||||
switch (issue.state.ToLowerInvariant().Replace(" ", "").Replace("'", ""))
|
||||
{
|
||||
case "submitted":
|
||||
return "icon-Checkbox-dotted";
|
||||
case "open":
|
||||
return "icon-Checkbox-empty";
|
||||
case "inprogress":
|
||||
return "icon-Paper-plane-alt";
|
||||
case "fixed":
|
||||
return "icon-Check";
|
||||
case "duplicate":
|
||||
return "icon-Multiple-windows";
|
||||
case "cantreproduce":
|
||||
return "icon-Enter";
|
||||
case "obsolete":
|
||||
return "icon-Scull";
|
||||
case "closed":
|
||||
return "icon-Stop-alt";
|
||||
case "reopened":
|
||||
return "icon-Undo";
|
||||
case "workaroundposted":
|
||||
return "icon-Redo";
|
||||
case "resolved":
|
||||
return "icon-Check";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,21 +8,18 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Mail;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using System.Web.Hosting;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Script.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using OurUmbraco.Release.Models;
|
||||
using RestSharp;
|
||||
using umbraco.NodeFactory;
|
||||
using uRelease.Controllers;
|
||||
using uRelease.Models;
|
||||
using Umbraco.Core.Logging;
|
||||
using YouTrackSharp.Infrastructure;
|
||||
using Version = uRelease.Models.Version;
|
||||
|
||||
namespace uRelease
|
||||
namespace OurUmbraco.Release
|
||||
{
|
||||
public class Import
|
||||
{
|
||||
@@ -45,7 +42,7 @@ namespace uRelease
|
||||
// For each version in the bundle, go get the issues
|
||||
var toReturn = new List<AggregateView>();
|
||||
|
||||
Version[] orderedVersions;
|
||||
Models.Version[] orderedVersions;
|
||||
|
||||
if (cached == false)
|
||||
{
|
||||
@@ -57,12 +54,12 @@ namespace uRelease
|
||||
}
|
||||
else
|
||||
{
|
||||
orderedVersions = ids.Split(',').Select(versionId => new Version { Value = versionId }).ToArray();
|
||||
orderedVersions = ids.Split(',').Select(versionId => new Models.Version { Value = versionId }).ToArray();
|
||||
}
|
||||
|
||||
var currentReleases = new List<Version>();
|
||||
var plannedReleases = new List<Version>();
|
||||
var inProgressReleases = new List<Version>();
|
||||
var currentReleases = new List<Models.Version>();
|
||||
var plannedReleases = new List<Models.Version>();
|
||||
var inProgressReleases = new List<Models.Version>();
|
||||
|
||||
var releasesNode = new Node(_releasesPageNodeId);
|
||||
|
||||
@@ -1,122 +1,119 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace uRelease.Models
|
||||
{
|
||||
using System.Diagnostics;
|
||||
|
||||
public class AggregateView
|
||||
{
|
||||
public string version { get; set; }
|
||||
|
||||
public bool released { get; set; }
|
||||
|
||||
public bool latestRelease { get; set; }
|
||||
|
||||
public bool inProgressRelease { get; set; }
|
||||
|
||||
public bool isPatch { get; set; }
|
||||
|
||||
public string releaseDate { get; set; }
|
||||
|
||||
public string releaseStatus { get; set; }
|
||||
|
||||
public string releaseDescription { get; set; }
|
||||
|
||||
public IEnumerable<IssueView> issues { get; set; }
|
||||
|
||||
public IEnumerable<ActivityView> activities { get; set; }
|
||||
|
||||
public bool currentRelease { get; set; }
|
||||
|
||||
public bool plannedRelease { get; set; }
|
||||
}
|
||||
|
||||
public class IssuesWrapper
|
||||
{
|
||||
public List<Issue> Issues { get; set; }
|
||||
}
|
||||
|
||||
[DebuggerDisplay("Issue: {Id}")]
|
||||
public class Issue
|
||||
{
|
||||
public string Id { get; set; }
|
||||
//public string Id { get; set; }
|
||||
|
||||
//public List<Field> Field { get; set; }
|
||||
public List<Field> Fields { get; set; }
|
||||
}
|
||||
|
||||
[DebuggerDisplay("Field: {Name} {Value}")]
|
||||
public class Field
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
||||
public class Changes : List<Change>
|
||||
{
|
||||
//public List<Change> Change { get; set; }
|
||||
public Issue Issue { get; set; }
|
||||
}
|
||||
|
||||
public class Change
|
||||
{
|
||||
public List<Field> Fields { get; set; }
|
||||
|
||||
//public string Name { get; set; }
|
||||
//public string Value { get; set; }
|
||||
//public string NewValue { get; set; }
|
||||
//public string OldValue { get; set; }
|
||||
//public List<ChangedField> Fields { get; set; }
|
||||
|
||||
public class Field
|
||||
{
|
||||
public string name { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Value { get; set; }
|
||||
public string NewValue { get; set; }
|
||||
public string OldValue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class IssueView
|
||||
{
|
||||
public string id { get; set; }
|
||||
|
||||
public string title { get; set; }
|
||||
|
||||
public string state { get; set; }
|
||||
|
||||
public string type { get; set; }
|
||||
|
||||
public Boolean breaking { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ActivityView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the issue id for the activity
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
public string id { get; set; }
|
||||
|
||||
public string username { get; set; }
|
||||
|
||||
public long date { get; set; }
|
||||
|
||||
public IEnumerable<ChangeView> changes { get; set; }
|
||||
}
|
||||
|
||||
public class ChangeView
|
||||
{
|
||||
public string fieldName { get; set; }
|
||||
public string oldValue { get; set; }
|
||||
public string newValue { get; set; }
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace OurUmbraco.Release.Models
|
||||
{
|
||||
public class AggregateView
|
||||
{
|
||||
public string version { get; set; }
|
||||
|
||||
public bool released { get; set; }
|
||||
|
||||
public bool latestRelease { get; set; }
|
||||
|
||||
public bool inProgressRelease { get; set; }
|
||||
|
||||
public bool isPatch { get; set; }
|
||||
|
||||
public string releaseDate { get; set; }
|
||||
|
||||
public string releaseStatus { get; set; }
|
||||
|
||||
public string releaseDescription { get; set; }
|
||||
|
||||
public IEnumerable<IssueView> issues { get; set; }
|
||||
|
||||
public IEnumerable<ActivityView> activities { get; set; }
|
||||
|
||||
public bool currentRelease { get; set; }
|
||||
|
||||
public bool plannedRelease { get; set; }
|
||||
}
|
||||
|
||||
public class IssuesWrapper
|
||||
{
|
||||
public List<Issue> Issues { get; set; }
|
||||
}
|
||||
|
||||
[DebuggerDisplay("Issue: {Id}")]
|
||||
public class Issue
|
||||
{
|
||||
public string Id { get; set; }
|
||||
//public string Id { get; set; }
|
||||
|
||||
//public List<Field> Field { get; set; }
|
||||
public List<Field> Fields { get; set; }
|
||||
}
|
||||
|
||||
[DebuggerDisplay("Field: {Name} {Value}")]
|
||||
public class Field
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
||||
public class Changes : List<Change>
|
||||
{
|
||||
//public List<Change> Change { get; set; }
|
||||
public Issue Issue { get; set; }
|
||||
}
|
||||
|
||||
public class Change
|
||||
{
|
||||
public List<Field> Fields { get; set; }
|
||||
|
||||
//public string Name { get; set; }
|
||||
//public string Value { get; set; }
|
||||
//public string NewValue { get; set; }
|
||||
//public string OldValue { get; set; }
|
||||
//public List<ChangedField> Fields { get; set; }
|
||||
|
||||
public class Field
|
||||
{
|
||||
public string name { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Value { get; set; }
|
||||
public string NewValue { get; set; }
|
||||
public string OldValue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class IssueView
|
||||
{
|
||||
public string id { get; set; }
|
||||
|
||||
public string title { get; set; }
|
||||
|
||||
public string state { get; set; }
|
||||
|
||||
public string type { get; set; }
|
||||
|
||||
public Boolean breaking { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ActivityView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the issue id for the activity
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
public string id { get; set; }
|
||||
|
||||
public string username { get; set; }
|
||||
|
||||
public long date { get; set; }
|
||||
|
||||
public IEnumerable<ChangeView> changes { get; set; }
|
||||
}
|
||||
|
||||
public class ChangeView
|
||||
{
|
||||
public string fieldName { get; set; }
|
||||
public string oldValue { get; set; }
|
||||
public string newValue { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace uRelease.Models
|
||||
namespace OurUmbraco.Release.Models
|
||||
{
|
||||
public class Comment
|
||||
{
|
||||
@@ -1,41 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace uRelease.Models
|
||||
{
|
||||
public class Version
|
||||
{
|
||||
public bool Released { get; set; }
|
||||
|
||||
public bool Archived { get; set; }
|
||||
|
||||
public bool LatestRelease { get; set; }
|
||||
|
||||
public bool InProgressRelease { get; set; }
|
||||
|
||||
public long ReleaseDate { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public DateTime GetReleaseDate()
|
||||
{
|
||||
return Extensions.JavaTimeStampToDateTime(ReleaseDate);
|
||||
}
|
||||
|
||||
public string Value { get; set; }
|
||||
|
||||
public string ReleaseStatus { get; set; }
|
||||
}
|
||||
|
||||
public class CustomField
|
||||
{
|
||||
public string bundle { get; set; }
|
||||
}
|
||||
|
||||
public class VersionBundle
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public List<Version> Versions { get; set; }
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace OurUmbraco.Release.Models
|
||||
{
|
||||
public class Version
|
||||
{
|
||||
public bool Released { get; set; }
|
||||
|
||||
public bool Archived { get; set; }
|
||||
|
||||
public bool LatestRelease { get; set; }
|
||||
|
||||
public bool InProgressRelease { get; set; }
|
||||
|
||||
public long ReleaseDate { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public DateTime GetReleaseDate()
|
||||
{
|
||||
return Extensions.JavaTimeStampToDateTime(ReleaseDate);
|
||||
}
|
||||
|
||||
public string Value { get; set; }
|
||||
|
||||
public string ReleaseStatus { get; set; }
|
||||
}
|
||||
|
||||
public class CustomField
|
||||
{
|
||||
public string bundle { get; set; }
|
||||
}
|
||||
|
||||
public class VersionBundle
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public List<Version> Versions { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace uRelease.Models
|
||||
namespace OurUmbraco.Release.Models
|
||||
{
|
||||
public class YouTrackComment
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace uRelease.Models
|
||||
namespace OurUmbraco.Release.Models
|
||||
{
|
||||
public class YouTrackField
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace uRelease.Models
|
||||
namespace OurUmbraco.Release.Models
|
||||
{
|
||||
public class YouTrackIssue
|
||||
{
|
||||
@@ -2,9 +2,9 @@
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
using System.Web.Script.Serialization;
|
||||
using uRelease.Models;
|
||||
using OurUmbraco.Release.Models;
|
||||
|
||||
namespace uRelease
|
||||
namespace OurUmbraco.Release
|
||||
{
|
||||
public class Release
|
||||
{
|
||||
@@ -3,9 +3,9 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Script.Serialization;
|
||||
using uRelease.Models;
|
||||
using OurUmbraco.Release.Models;
|
||||
|
||||
namespace uRelease
|
||||
namespace OurUmbraco.Release
|
||||
{
|
||||
public static class Roadmap
|
||||
{
|
||||
@@ -2,9 +2,9 @@
|
||||
using System.IO;
|
||||
using System.Web.Hosting;
|
||||
using System.Web.Script.Serialization;
|
||||
using uRelease.Models;
|
||||
using OurUmbraco.Release.Models;
|
||||
|
||||
namespace uRelease
|
||||
namespace OurUmbraco.Release
|
||||
{
|
||||
public class Versions
|
||||
{
|
||||
@@ -3,10 +3,12 @@
|
||||
<package id="AutoMapper" version="3.0.0" targetFramework="net451" />
|
||||
<package id="ClientDependency" version="1.8.4" targetFramework="net451" />
|
||||
<package id="ClientDependency-Mvc" version="1.8.0.0" targetFramework="net451" />
|
||||
<package id="EasyHttp" version="1.6.29.0" targetFramework="net451" />
|
||||
<package id="Examine" version="0.1.65.0" targetFramework="net451" />
|
||||
<package id="HtmlAgilityPack" version="1.4.6" targetFramework="net451" />
|
||||
<package id="ImageProcessor" version="2.2.7.0" targetFramework="net451" />
|
||||
<package id="ImageProcessor.Web" version="4.3.5.0" targetFramework="net451" />
|
||||
<package id="JsonFx" version="2.0.1209.2802" targetFramework="net451" />
|
||||
<package id="Lucene.Net" version="2.9.4.1" targetFramework="net451" />
|
||||
<package id="MarkdownDeep.NET" version="1.5" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.Mvc" version="4.0.30506.0" targetFramework="net451" />
|
||||
@@ -26,4 +28,5 @@
|
||||
<package id="SharpZipLib" version="0.86.0" targetFramework="net451" />
|
||||
<package id="UmbracoCms.Core" version="7.2.8-build103" targetFramework="net451" />
|
||||
<package id="xmlrpcnet" version="2.5.0" targetFramework="net451" />
|
||||
<package id="YouTrackSharp" version="2.0.11.0" targetFramework="net451" />
|
||||
</packages>
|
||||
@@ -26,8 +26,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{F3A30E
|
||||
.nuget\NuGet.targets = .nuget\NuGet.targets
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "uRelease", "uRelease\uRelease.csproj", "{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "uProject", "Marketplace\uProject.csproj", "{6A2B659E-8BAE-4CD5-8764-851DFBE95FBF}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OurUmbraco", "OurUmbraco\OurUmbraco.csproj", "{A8E5C936-ECAB-45B3-BFDA-D12F680EB2A6}"
|
||||
@@ -92,16 +90,6 @@ Global
|
||||
{6CF53D68-BD81-47BB-8F56-350A1B04F114}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{6CF53D68-BD81-47BB-8F56-350A1B04F114}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{6CF53D68-BD81-47BB-8F56-350A1B04F114}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{C5B74E6A-ABCE-4A9A-896D-89C33FDAFCD8}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{6A2B659E-8BAE-4CD5-8764-851DFBE95FBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6A2B659E-8BAE-4CD5-8764-851DFBE95FBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6A2B659E-8BAE-4CD5-8764-851DFBE95FBF}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using uRelease;
|
||||
using OurUmbraco.Release;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Logging;
|
||||
|
||||
|
||||
@@ -426,10 +426,6 @@
|
||||
<Project>{547C2D0D-1B55-493B-AE0B-E031A5B8EE77}</Project>
|
||||
<Name>uForum</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\uRelease\uRelease.csproj">
|
||||
<Project>{c5b74e6a-abce-4a9a-896d-89c33fdafcd8}</Project>
|
||||
<Name>uRelease</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="usercontrols\EventEditor.ascx">
|
||||
|
||||
@@ -246,21 +246,7 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App_Start\ControllerRouting.cs" />
|
||||
<Compile Include="Download.cs" />
|
||||
<Compile Include="Controllers\NodeExtensions.cs" />
|
||||
<Compile Include="Extensions.cs" />
|
||||
<Compile Include="Import.cs" />
|
||||
<Compile Include="Models\AggregateView.cs" />
|
||||
<Compile Include="Models\Comment.cs" />
|
||||
<Compile Include="Models\Version.cs" />
|
||||
<Compile Include="Models\YouTrackComment.cs" />
|
||||
<Compile Include="Models\YouTrackField.cs" />
|
||||
<Compile Include="Models\YouTrackIssue.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Release.cs" />
|
||||
<Compile Include="Roadmap.cs" />
|
||||
<Compile Include="Versions.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
|
||||
Reference in New Issue
Block a user