Skip to content

Commit 400bbb9

Browse files
authored
Merge pull request #42 from microting/master
Updates
2 parents 6a5cc73 + affce8b commit 400bbb9

File tree

45 files changed

+882
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+882
-192
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ script:
3232
- cd eform-client && npm install
3333
- npm start &
3434
- sleep 40
35-
- dotnet run --project ../eFormAPI/eFormAPI.Web/eFormAPI.Web.csproj &
35+
- dotnet run --project ../eFormAPI/eFormAPI.Web/eFormAPI.Web.csproj > dotnet_log 2>&1 &
3636
- sleep 40
3737
- npm run testheadless
38-
- sleep 30
39-
- dotnet run --project ../eFormAPI/eFormAPI.Web/eFormAPI.Web.csproj &
38+
- sleep 40
39+
- dotnet run --project ../eFormAPI/eFormAPI.Web/eFormAPI.Web.csproj > dotnet_log 2>&1 &
4040
- sleep 40
4141
- npm run testheadless2
4242
after_success:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# eform-angular-frontend
22
build status
3-
[![Build Status](https://travis-ci.org/microting/eform-angular-frontend.svg?branch=netcore)](https://travis-ci.org/microting/eform-angular-frontend)
3+
[![Build Status](https://travis-ci.org/microting/eform-angular-frontend.svg?branch=master)](https://travis-ci.org/microting/eform-angular-frontend)
44

55
An Angular (6.1.10) Frontend for integrating with the Microting eForm API v1.
66

eFormAPI/Installation/CustomActions/CustomAction.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,20 @@ public static ActionResult UpdateCA(Session session)
440440
try
441441
{
442442
BackupPluginSettings(session, uiIisDir);
443+
}
444+
catch (Exception ex)
445+
{
446+
MessageBox.Show("We got an exception trying to do backup " + ex.Message);
447+
}
448+
449+
try
450+
{
443451
DeleteDirectory(Path.Combine(uiIisDir, "src"));
444452
}
445-
catch { }
453+
catch (Exception ex)
454+
{
455+
MessageBox.Show("We got an exception trying to delete folder src " + ex.Message);
456+
}
446457

447458
session.Log("Set proper names to folders");
448459

eFormAPI/eFormAPI.Web.Integration.Tests/eFormAPI.Web.Integration.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<ItemGroup>
99
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
10-
<PackageReference Include="Microting.eForm" Version="3.0.114" />
10+
<PackageReference Include="Microting.eForm" Version="3.0.125" />
1111
<PackageReference Include="NUnit" Version="3.11.0" />
1212
<PackageReference Include="NUnit3TestAdapter" Version="3.12.0" />
1313
</ItemGroup>

eFormAPI/eFormAPI.Web.Tests/eFormAPI.Web.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
<ItemGroup>
99
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
10-
<PackageReference Include="Microting.eForm" Version="3.0.114" />
10+
<PackageReference Include="Microting.eForm" Version="3.0.125" />
1111
<PackageReference Include="NUnit" Version="3.11.0" />
1212
<PackageReference Include="NUnit3TestAdapter" Version="3.12.0" />
13-
<PackageReference Include="Microting.eFormApi.BasePn" Version="1.1.81" />
13+
<PackageReference Include="Microting.eFormApi.BasePn" Version="1.1.85" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,37 +23,44 @@ public static class PluginHelper
2323
public static List<IEformPlugin> GetPlugins(IConfiguration configuration)
2424
{
2525
// Load info from database
26-
List<EformPlugin> eformPlugins;
26+
List<EformPlugin> eformPlugins = null;
2727
var newPlugins = new List<EformPlugin>();
2828
var contextFactory = new BaseDbContextFactory();
2929
using (var dbContext = contextFactory.CreateDbContext(new[] {configuration.MyConnectionString()}))
3030
{
31-
eformPlugins = dbContext.EformPlugins
32-
.AsNoTracking()
33-
.ToList();
31+
try
32+
{
33+
eformPlugins = dbContext.EformPlugins
34+
.AsNoTracking()
35+
.ToList();
36+
} catch {}
3437
}
3538
var plugins = new List<IEformPlugin>();
3639
// create plugin loaders
37-
foreach (var plugin in GetAllPlugins())
40+
if (eformPlugins != null)
3841
{
39-
var eformPlugin = eformPlugins.FirstOrDefault(x => x.PluginId == plugin.PluginId);
40-
if (eformPlugin != null)
42+
foreach (var plugin in GetAllPlugins())
4143
{
42-
if (eformPlugin.Status == (int) PluginStatus.Enabled)
44+
var eformPlugin = eformPlugins.FirstOrDefault(x => x.PluginId == plugin.PluginId);
45+
if (eformPlugin != null)
4346
{
44-
plugins.Add(plugin);
47+
if (eformPlugin.Status == (int) PluginStatus.Enabled)
48+
{
49+
plugins.Add(plugin);
50+
}
4551
}
46-
}
47-
else
48-
{
49-
newPlugins.Add(new EformPlugin()
52+
else
5053
{
51-
PluginId = plugin.PluginId,
52-
ConnectionString = "...",
53-
Status = (int) PluginStatus.Disabled
54-
});
54+
newPlugins.Add(new EformPlugin()
55+
{
56+
PluginId = plugin.PluginId,
57+
ConnectionString = "...",
58+
Status = (int) PluginStatus.Disabled
59+
});
60+
}
5561
}
5662
}
63+
5764

5865
using (var dbContext = contextFactory.CreateDbContext(new[] {configuration.MyConnectionString()}))
5966
{

eFormAPI/eFormAPI.Web/Migrations/20180916221611_Init.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eFormAPI/eFormAPI.Web/Migrations/20181023124217_AddSecurityGroupsTables.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eFormAPI/eFormAPI.Web/Migrations/20181023124217_AddSecurityGroupsTables.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
1717
if (migrationBuilder.ActiveProvider == "Pomelo.EntityFrameworkCore.MySql")
1818
{
1919
DbConfig.IsMySQL = true;
20-
autoIDGenStrategy = "MySQL:ValueGeneratedOnAdd";
21-
autoIDGenStrategyValue = true;
20+
autoIDGenStrategy = "MySql:ValueGenerationStrategy";
21+
autoIDGenStrategyValue = MySqlValueGenerationStrategy.IdentityColumn;
2222
}
2323
migrationBuilder.CreateTable(
2424
name: "SecurityGroups",

eFormAPI/eFormAPI.Web/Migrations/20181026150448_AddPermissionsTables.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)