Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7be47f9
FR-4073 part of classes moved to Hub and Data projects, still working.
jokerosky Aug 5, 2016
e0dfce2
Merge remote-tracking branch 'origin/dev' into FR-4073
jokerosky Aug 5, 2016
59824ea
FR-4073 build fixed
jokerosky Aug 5, 2016
913ceb5
FR-4073 moved stuff to Hub project
jokerosky Aug 5, 2016
716b6ef
FR-4073 transfer data classes to Data folder, fixed SelfHosted factor…
jokerosky Aug 5, 2016
d756822
FR-4073 move classes from Data back to Services.PlanDirectory
jokerosky Aug 5, 2016
669b983
FR-4073 FE crutch for publish/unpublish buttons, + classes refactroing.
jokerosky Aug 5, 2016
fa75471
FR-4073 structureMap bootstrapping one more try.
jokerosky Aug 5, 2016
a07e0bf
FR-4073 tests bootstrapper fixed (i hope)
jokerosky Aug 5, 2016
6e0fb39
Merge remote-tracking branch 'origin/dev' into FR-4073
jokerosky Aug 5, 2016
15acf1b
FR-4073 why i cant reproduce this errors locally?
jokerosky Aug 5, 2016
5eb6616
Merge remote-tracking branch 'origin/dev' into FR-4073
jokerosky Aug 5, 2016
c42ed27
FR-4073
jokerosky Aug 5, 2016
fed047a
FR-4073
jokerosky Aug 5, 2016
0e04210
FR-4073 rerun tests
jokerosky Aug 5, 2016
b4bfce4
Merge remote-tracking branch 'origin/dev' into FR-4073
jokerosky Aug 6, 2016
741fc89
FR-4073
jokerosky Aug 6, 2016
88adf04
FR-4073
jokerosky Aug 6, 2016
2476f8f
FR-4073 private settings updated for HM
jokerosky Aug 6, 2016
f683586
FR-4073 configs updated
jokerosky Aug 6, 2016
49ffb2b
FR-4073 PlanDirectory_CreatePlan Ignored !!!
jokerosky Aug 6, 2016
c0653b6
FR-4073 test fixed
jokerosky Aug 6, 2016
594eed2
FR-4073
jokerosky Aug 6, 2016
6cf4b1b
FR-4073 and FR-5070 fixed
jokerosky Aug 6, 2016
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
52 changes: 0 additions & 52 deletions CategoryPages/basecamp2.html

This file was deleted.

55 changes: 0 additions & 55 deletions CategoryPages/built-in services-slack.html

This file was deleted.

52 changes: 0 additions & 52 deletions CategoryPages/built-in services.html

This file was deleted.

58 changes: 0 additions & 58 deletions CategoryPages/slack.html

This file was deleted.

2 changes: 2 additions & 0 deletions Content/css/plan-directory.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ header#site-header:after {

/*Search Bar Container*/
.search-bar-container {
width: 100%;
text-align: center;
display: inline-block;
padding: 0 1em;
Expand Down Expand Up @@ -138,6 +139,7 @@ header#site-header:after {
text-align: center;
padding: 0 1em;
display: inline-block;
width: 100%;
}

.result-container .base-block-white {
Expand Down
3 changes: 3 additions & 0 deletions Controllers/Api/AuthenticationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using HubWeb.Infrastructure_HubWeb;
using System.Web.Http.Description;
using Fr8.Infrastructure;
using Fr8.Infrastructure.Utilities.Logging;
using Hub.Services;
using Newtonsoft.Json;
using Swashbuckle.Swagger.Annotations;
Expand Down Expand Up @@ -127,6 +128,7 @@ public IHttpActionResult Login([FromUri]string username, [FromUri]string passwor
{
if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))
{
Logger.GetLogger().Warn($"Username or password is not specified");
return BadRequest("Username or password is not specified");
}

Expand All @@ -151,6 +153,7 @@ public IHttpActionResult Login([FromUri]string username, [FromUri]string passwor
}
}
}
Logger.GetLogger().Warn($"Loging failed for {username}");
return StatusCode(HttpStatusCode.Forbidden);
}

Expand Down
3 changes: 2 additions & 1 deletion Controllers/Api/PageGenerationController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Threading.Tasks;
using System.Web.Http;
using HubWeb.Infrastructure_PD.Interfaces;
using Hub.Enums;
using Hub.Interfaces;
using StructureMap;

namespace HubWeb.Controllers.Api
Expand Down
6 changes: 1 addition & 5 deletions Controllers/Api/PlanTemplatesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
using System.Threading.Tasks;
using System.Web.Http;
using Fr8.Infrastructure.Data.DataTransferObjects;
using Fr8.Infrastructure.Data.DataTransferObjects.PlanDirectory;
using Fr8.Infrastructure.Utilities.Configuration;
using Hub.Infrastructure;
using Hub.Interfaces;
using HubWeb.Infrastructure_PD.Interfaces;
using log4net;
using Microsoft.AspNet.Identity;
using PlanDirectory.Infrastructure;
Expand Down Expand Up @@ -37,7 +37,6 @@ public PlanTemplatesController()

[HttpPost]
[Fr8ApiAuthorize]
[PlanDirectoryHMACAuthenticate]
public async Task<IHttpActionResult> Post(PublishPlanTemplateDTO dto)
{
var fr8AccountId = User.Identity.GetUserId();
Expand All @@ -49,7 +48,6 @@ public async Task<IHttpActionResult> Post(PublishPlanTemplateDTO dto)

[HttpDelete]
[Fr8ApiAuthorize]
[PlanDirectoryHMACAuthenticate]
public async Task<IHttpActionResult> Delete(Guid id)
{
var identity = User.Identity as ClaimsIdentity;
Expand All @@ -73,7 +71,6 @@ public async Task<IHttpActionResult> Delete(Guid id)

[HttpGet]
[Fr8ApiAuthorize]
[PlanDirectoryHMACAuthenticate]
public async Task<IHttpActionResult> Get(Guid id)
{
var fr8AccountId = User.Identity.GetUserId();
Expand All @@ -100,7 +97,6 @@ public async Task<IHttpActionResult> Search(

[HttpPost]
[Fr8ApiAuthorize]
[PlanDirectoryHMACAuthenticate]
public async Task<IHttpActionResult> CreatePlan(Guid id)
{
try
Expand Down
6 changes: 5 additions & 1 deletion Controllers/Api/PlansController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Claims;
using System.Web.Http;
using System.Web.Http.Description;
using AutoMapper;
Expand Down Expand Up @@ -448,7 +449,10 @@ public async Task<IHttpActionResult> Share(Guid planId)
[SwaggerResponseRemoveDefaults]
public async Task<IHttpActionResult> Unpublish(Guid planId)
{
await _planDirectoryService.Unpublish(planId, User.Identity.GetUserId());
var identity = User.Identity as ClaimsIdentity;
var privileged = identity.HasClaim(ClaimsIdentity.DefaultRoleClaimType, "Admin");

await _planDirectoryService.Unpublish(planId, User.Identity.GetUserId(), privileged);
return Ok();
}
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HubWeb.Infrastructure_PD.Interfaces
namespace Fr8.Infrastructure.Data.DataTransferObjects.PlanDirectory
{
public class CreatePlanDTO
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace HubWeb.Infrastructure_PD.Interfaces
namespace Fr8.Infrastructure.Data.DataTransferObjects.PlanDirectory
{
public class SearchItemDTO
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HubWeb.Infrastructure_PD.Interfaces
namespace Fr8.Infrastructure.Data.DataTransferObjects.PlanDirectory
{
public class SearchRequestDTO
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace HubWeb.Infrastructure_PD.Interfaces
namespace Fr8.Infrastructure.Data.DataTransferObjects.PlanDirectory
{
public class SearchResultDTO
{
Expand Down
4 changes: 4 additions & 0 deletions Fr8Infrastructure.NET/Fr8Infrastructure.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@
<Compile Include="Data\DataTransferObjects\PayloadDTO.cs" />
<Compile Include="Data\DataTransferObjects\PermissionDTO.cs" />
<Compile Include="Data\DataTransferObjects\PhoneNumberCredentialsDTO.cs" />
<Compile Include="Data\DataTransferObjects\PlanDirectory\CreatePlanDTO.cs" />
<Compile Include="Data\DataTransferObjects\PlanDirectory\SearchItemDTO.cs" />
<Compile Include="Data\DataTransferObjects\PlanDirectory\SearchRequestDTO.cs" />
<Compile Include="Data\DataTransferObjects\PlanDirectory\SearchResultDTO.cs" />
<Compile Include="Data\DataTransferObjects\PlanDTO.cs" />
<Compile Include="Data\DataTransferObjects\PlanNoChildrenDTO.cs" />
<Compile Include="Data\DataTransferObjects\PlanFullDTO.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HubWeb.Infrastructure_PD.Interfaces
namespace Hub.Enums
{
public enum GenerateMode
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace HubWeb.Infrastructure_PD.Exceptions
namespace Hub.Exceptions
{
public class ManifestGenerationException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HubWeb.Infrastructure_PD.Exceptions
namespace Hub.Exceptions
{
public class ManifestNotFoundException : ManifestGenerationException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HubWeb.Infrastructure_PD.Exceptions
namespace Hub.Exceptions
{
public class ManifestPageNotFoundException : ManifestGenerationException
{
Expand Down
Loading