Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 10.aug.2016 1 #400

Open
wants to merge 517 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
517 commits
Select commit Hold shift + click to select a range
c0653b6
FR-4073 test fixed
jokerosky Aug 6, 2016
5ecc6b8
Converted terminal related ids to Guid, also converted MTData id to guid
bahadirbb Aug 6, 2016
594eed2
FR-4073
jokerosky Aug 6, 2016
e6f3fd5
DB related updates
bahadirbb Aug 6, 2016
6cf4b1b
FR-4073 and FR-5070 fixed
jokerosky Aug 6, 2016
af7f245
Completed TerminalId migration file
bahadirbb Aug 6, 2016
00c8d32
Merge pull request #332 from Fr8org/FR-4073
jokerosky Aug 6, 2016
958a31a
Merge branch 'dev' into FR-3948
omerhanci Aug 6, 2016
fff142c
Merge pull request #339 from Fr8org/FR-3948
omerhanci Aug 6, 2016
3fe85f1
Discovery logic refactored, Terminal mgmt UI enhanced
alexavrutin Aug 7, 2016
ef76e5f
Found problem cause, another try to fix e2e tests.
Aug 7, 2016
4e96736
FR-5100
jokerosky Aug 7, 2016
5216ee7
Merge pull request #342 from Fr8org/FR-5100
jokerosky Aug 7, 2016
d4ee810
FR-4073 world without PD (project removed from solution)
jokerosky Aug 7, 2016
cb14870
FR-4073 private settings fot HM updated
jokerosky Aug 7, 2016
b58ef6a
Merge dev
alexavrutin Aug 7, 2016
3eca14d
Update Home.md
alexed1 Aug 7, 2016
d07d8d3
Create TerminalAuthentication.md
alexed1 Aug 7, 2016
5e6caad
Merge pull request #344 from Fr8org/docs-FR-5136
alexed1 Aug 7, 2016
ab1a7e4
statx unit tests
makigjuro Aug 7, 2016
faf47c5
Merge branch 'dev' of https://github.com/Fr8org/Fr8Core into FR-4987
makigjuro Aug 7, 2016
b04bd80
Fixes
alexavrutin Aug 7, 2016
1fca1d7
Merge pull request #345 from Fr8org/FR-4987
makigjuro Aug 7, 2016
b7b702e
UI finished, UI validation (incl. server-side), unit tests fixed.
alexavrutin Aug 8, 2016
723b7c1
Terminal table column renamed
alexavrutin Aug 8, 2016
9ddad02
Added ProdUrl to migrations
alexavrutin Aug 8, 2016
dfed3d8
Merge remote-tracking branch 'origin/dev' into FR-4943
Aug 8, 2016
1d71e9e
Merge remote-tracking branch 'origin/dev' into FR-4073
jokerosky Aug 8, 2016
b9089a1
FR-4073 FE bug for plan title editing fixed.
jokerosky Aug 8, 2016
fef6848
Merge pull request #343 from Fr8org/FR-4073
jokerosky Aug 8, 2016
618543a
Converted MtData id to guid
bahadirbb Aug 8, 2016
25e9681
Created ObjectId Index on ObjectRolePermissions
bahadirbb Aug 8, 2016
ed6512b
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-5025
bahadirbb Aug 8, 2016
53484ed
Fixed front-end code, manually tested.
Aug 8, 2016
a7b9f64
Fixed unit tests
bahadirbb Aug 8, 2016
e725450
Changed ActivityCategory registration logic during discovery process.
Aug 8, 2016
eee76cc
action picker is made disable when plan is active
omerhanci Aug 8, 2016
e6ab797
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-4754-v2
omerhanci Aug 8, 2016
f710941
Fixed assembly test.
Aug 8, 2016
20a7b29
Merge pull request #346 from Fr8org/FR-4754-v2
omerhanci Aug 8, 2016
0c62418
Merge branch 'dev'
alexavrutin Aug 8, 2016
7e930b0
Merge remote-tracking branch 'origin/dev' into FR-4943
Aug 8, 2016
2212f89
Merge remote-tracking branch 'origin/dev' into FR-4943
Aug 8, 2016
68de0aa
Another attempt to fix TDR test failure.
Aug 8, 2016
c3f61e0
Another fix.
Aug 8, 2016
8f39511
PowerShell script added
alexavrutin Aug 8, 2016
970b94a
redirecting loged users from Login Page
jarekrzdbk Aug 8, 2016
9ddd68f
Better logging for discovery + terminalInstagram fix
alexavrutin Aug 8, 2016
20c41ed
terminalAsana configuration fix
alexavrutin Aug 8, 2016
ed3a3b6
Migration updated, the test Query_DocuSign_Into_Google_Sheet_End_To_E…
alexavrutin Aug 8, 2016
7d4faa8
Initial commit for internal authentication demo account
alpgurtan Aug 8, 2016
0bc29ac
fixed model
jarekrzdbk Aug 8, 2016
78975b3
Merge branch 'dev' into FR-4575
davidvand1115 Aug 8, 2016
f2c5bee
Migration updated
alexavrutin Aug 8, 2016
743de7b
Merge pull request #348 from Fr8org/FR-4880
jarekrzdbk Aug 8, 2016
59dd582
Merge branch 'dev' into FR-4945
alexavrutin Aug 8, 2016
84219f6
Merge branch 'dev' into FR-4575
davidvand1115 Aug 8, 2016
21b11fb
description propert is added to the ActivityTemplateDTO
omerhanci Aug 8, 2016
a70c365
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-4908
omerhanci Aug 8, 2016
6aa340b
disabled Build Query activity
jarekrzdbk Aug 8, 2016
46630f1
Text update
alexavrutin Aug 8, 2016
b26ccc1
Merge branch 'FR-4945' of https://github.com/Fr8org/Fr8Core.git
alexavrutin Aug 8, 2016
6d433f0
Merge pull request #350 from Fr8org/FR-4945
alexavrutin Aug 8, 2016
d2274f1
Merge branch 'dev' into FR-4908
omerhanci Aug 8, 2016
f37cac2
Merge remote-tracking branch 'refs/remotes/origin/dev'
davidvand1115 Aug 8, 2016
6b32967
Merge branch 'FR-4575' of https://github.com/Fr8org/Fr8Core.git
davidvand1115 Aug 8, 2016
af659af
Conflicting terminal URL error handling
alexavrutin Aug 8, 2016
9792bff
FR-4575 : setting auto height of activity window on app builder with …
davidvand1115 Aug 8, 2016
97ce43b
IsFr8OwnTerminal fix
alexavrutin Aug 8, 2016
28a80ea
Merge branch 'dev' into FR-4945
alexavrutin Aug 8, 2016
d2af46a
FR-4942: changing the title of index and welcome pages
davidvand1115 Aug 8, 2016
105d08b
Update Home.md
alexed1 Aug 8, 2016
cc318ba
Update Home.md
alexed1 Aug 8, 2016
cc47017
Update Home.md
alexed1 Aug 8, 2016
0609dd4
Merge pull request #357 from Fr8org/docs-11
alexed1 Aug 8, 2016
e7e1635
Update Home.md
alexed1 Aug 8, 2016
fcd0baf
Merge pull request #356 from Fr8org/FR-4945
alexavrutin Aug 8, 2016
b42b310
Update ActivityTemplates.md
alexed1 Aug 8, 2016
36e5399
Create ActivityCategories.md
alexed1 Aug 8, 2016
7b4bbc2
Update ActivityTemplates.md
alexed1 Aug 8, 2016
df41d52
Updates to MTData and ObjectRolePermission table
bahadirbb Aug 8, 2016
c5d8abf
Update ActivityCategories.md
alexed1 Aug 8, 2016
49d39ad
Merge branch 'dev' into docs-11
alexed1 Aug 8, 2016
fb8e091
Merge pull request #359 from Fr8org/docs-11
alexed1 Aug 8, 2016
d1faef4
Update Tagging.md
alexed1 Aug 8, 2016
8d065d8
Update Activities.md
alexed1 Aug 8, 2016
e2abe3a
Update Activities.md
alexed1 Aug 8, 2016
7e604db
Update Signalling.md
alexed1 Aug 8, 2016
38e18c6
Update Signalling.md
alexed1 Aug 8, 2016
087a927
Update Activities.md
alexed1 Aug 8, 2016
ef0e5aa
Update ActivitiesLibrary.md
alexed1 Aug 8, 2016
1a46935
Update Branching.md
alexed1 Aug 8, 2016
6bc543c
Update Activities.md
alexed1 Aug 8, 2016
ad3383f
Update Activities.md
alexed1 Aug 8, 2016
f3824bd
Merge branch 'dev' into docs-11
alexed1 Aug 8, 2016
b69b2df
Merge pull request #361 from Fr8org/docs-11
alexed1 Aug 8, 2016
af4855a
Update GettingDeployed.md
alexed1 Aug 8, 2016
2573edb
Update GettingDeployed.md
alexed1 Aug 8, 2016
1702e99
Add files via upload
alexed1 Aug 8, 2016
90ad0b8
Update GettingDeployed.md
alexed1 Aug 8, 2016
f69937a
Update GettingDeployed.md
alexed1 Aug 8, 2016
799f6a0
Update GettingDeployed.md
alexed1 Aug 8, 2016
8dbbf2f
Merge pull request #362 from Fr8org/docs-11
alexed1 Aug 8, 2016
f68187f
Update Controls.md
alexed1 Aug 8, 2016
dde4258
Merge branch 'dev' into FR-4575
davidvand1115 Aug 8, 2016
1272f01
Update Controls.md
alexed1 Aug 8, 2016
d90eda1
Merge pull request #363 from Fr8org/docs-11
alexed1 Aug 8, 2016
e1bbc37
Merge branch 'dev' into FR-4575
davidvand1115 Aug 8, 2016
a21a6ac
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-5025
bahadirbb Aug 8, 2016
d2982b1
Fixed unit tests
bahadirbb Aug 8, 2016
c4fc28b
Remove old migrations
bahadirbb Aug 8, 2016
01f48e4
Added missing sample data factories and created int test for Swagger
Aug 8, 2016
1e0dbf8
Added back migrations
bahadirbb Aug 9, 2016
b2de8d8
Rebuild
bahadirbb Aug 9, 2016
33864b4
Merge branch 'dev' into FR-4942
davidvand1115 Aug 9, 2016
175b854
Minor query update
bahadirbb Aug 9, 2016
0f4cf9f
Merge pull request #358 from Fr8org/FR-4942
davidvand1115 Aug 9, 2016
4191c88
Merge branch 'dev' into FR-5025
bahadirbb Aug 9, 2016
156c020
Merge branch 'dev' into FR-4575
davidvand1115 Aug 9, 2016
bb6b639
Merge remote-tracking branch 'refs/remotes/origin/dev'
davidvand1115 Aug 9, 2016
bb14f5a
FR-4575: adding some files for merging to dev
davidvand1115 Aug 9, 2016
1ced340
* Added TerminalDO#OperationalState
alexavrutin Aug 9, 2016
0cabf8f
Merge branch 'dev'
alexavrutin Aug 9, 2016
00fbf24
Merge pull request #349 from Fr8org/FR-4575
davidvand1115 Aug 9, 2016
2bc3058
Undo fix.
Aug 9, 2016
4bcd0e8
Merge remote-tracking branch 'origin/dev' into FR-4943
Aug 9, 2016
abcc206
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-5040
alpgurtan Aug 9, 2016
ef9a3fc
Package versions are updated to 221
alpgurtan Aug 9, 2016
96cb851
Merged migrations.
Aug 9, 2016
d5403e6
Merge pull request #354 from Fr8org/FR-5040
alpgurtan Aug 9, 2016
1273fb8
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-4456-V3
alpgurtan Aug 9, 2016
e0228c5
Wildcards are removed from test user email
alpgurtan Aug 9, 2016
32288ee
Code cleanup.
Aug 9, 2016
6c5338d
Merge branch 'dev' into FR-4943
Aug 9, 2016
8c3ae93
Merge pull request #285 from Fr8org/FR-4456-V3
alpgurtan Aug 9, 2016
5350d7b
Merge branch 'dev' into FR-4943
Aug 9, 2016
f4c2ec6
Merge branch 'dev' into FR-4908
omerhanci Aug 9, 2016
70e5064
new specs are added for e2e tests
emrevarisli Aug 9, 2016
2450b87
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-3263
emrevarisli Aug 9, 2016
64f13fd
Merge pull request #289 from Fr8org/FR-4943
Aug 9, 2016
69fb048
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-4908
omerhanci Aug 9, 2016
9a39672
Merge branch 'FR-4908' of https://github.com/Fr8org/Fr8Core into FR-4908
omerhanci Aug 9, 2016
f9c95c0
Fixing dev build
alpgurtan Aug 9, 2016
8e588e0
Wildcard bug is found
alpgurtan Aug 9, 2016
17425cf
Merge pull request #352 from Fr8org/FR-4908
omerhanci Aug 9, 2016
cc4f9fc
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-4456-V4
alpgurtan Aug 9, 2016
759a631
registration e2e test fixed
emrevarisli Aug 9, 2016
d15f23a
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-3263
emrevarisli Aug 9, 2016
21535b8
Merge pull request #366 from Fr8org/FR-4456-V4
alpgurtan Aug 9, 2016
052f9c9
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-3263
emrevarisli Aug 9, 2016
1c5d590
Merge pull request #367 from Fr8org/FR-3263
emrevarisli Aug 9, 2016
4b8d529
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-2987
emrevarisli Aug 9, 2016
924ab9b
fixed discover test
jarekrzdbk Aug 9, 2016
cf692cd
Merge branch 'dev' into FR-4768
jarekrzdbk Aug 9, 2016
50f5f2b
FixUp_Migration_2
Aug 9, 2016
151a0f1
ActivityCategories Get, Monitor and Forward are renamed as Get Data, …
omerhanci Aug 9, 2016
e030fa3
Updated MTData table create query with newid identifier
bahadirbb Aug 9, 2016
c24ebb3
Merge branch 'FR-5025' of https://github.com/Fr8org/Fr8Core into FR-5025
bahadirbb Aug 9, 2016
a6c4809
Fixed e2e tests.
Aug 9, 2016
7142e2d
Merge pull request #370 from Fr8org/FR-4943-2
Aug 9, 2016
b8207ba
Merge branch 'dev' into FR-4768
jarekrzdbk Aug 9, 2016
d8e2165
FR-5196: added radio css
davidvand1115 Aug 9, 2016
20d70cd
Merge branch 'dev' into FR-5196
davidvand1115 Aug 9, 2016
9f288b2
Merge branch 'dev' into FR-5182
omerhanci Aug 9, 2016
7ec1730
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-5025
bahadirbb Aug 9, 2016
04334da
test fail because of renaming is fixed
omerhanci Aug 9, 2016
bf3cb7d
Fixed migrations
bahadirbb Aug 9, 2016
cf5e802
Merge pull request #371 from Fr8org/FR-5182
omerhanci Aug 9, 2016
3780357
Merge branch 'dev' into FR-5025
bahadirbb Aug 9, 2016
a6874bf
Login redirection after session timeout is fixed
alpgurtan Aug 9, 2016
1ccc191
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-4582
alpgurtan Aug 9, 2016
de1e39e
FR-4859 fixed
alpgurtan Aug 9, 2016
52d88a5
Made swagger test to be skipped locally but work during dev build
Aug 9, 2016
fbad6cf
Merge remote-tracking branch 'origin/dev' into FR-5179
Aug 9, 2016
7bb0718
Disabled automatic migrations
Aug 9, 2016
058aebb
some activity specs are updated
emrevarisli Aug 9, 2016
63cb643
Merge pull request #360 from Fr8org/FR-5025
bahadirbb Aug 9, 2016
4177e9d
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-4582
alpgurtan Aug 9, 2016
68f7282
Merge branch 'dev' into FR-5179
Aug 9, 2016
00bce0a
Unit test fix
alexavrutin Aug 9, 2016
dee317f
Merge dev
alexavrutin Aug 9, 2016
ef34240
Merge pull request #374 from Fr8org/FR-4582
alpgurtan Aug 9, 2016
817ca6f
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-5182
omerhanci Aug 9, 2016
1f3c976
Merge branch 'dev' into FR-5196
davidvand1115 Aug 9, 2016
a38cdcb
migrations are added for renaming the activity categories
omerhanci Aug 9, 2016
52ca6d9
Merge branch 'dev' into FR-5179
Aug 9, 2016
d9e1def
Rebuild
alexavrutin Aug 9, 2016
5a7d506
Merge pull request #373 from Fr8org/FR-5196
davidvand1115 Aug 9, 2016
3c92b34
Merge branch 'dev' into FR-4945
alexavrutin Aug 9, 2016
dfc4ad0
Merge branch 'dev' into FR-5182
omerhanci Aug 9, 2016
f921187
Merge branch 'dev' into FR-5179
Aug 9, 2016
4f1c9dc
conf.js updated
emrevarisli Aug 9, 2016
9a68ec7
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-2987
emrevarisli Aug 9, 2016
3a406e7
Merge pull request #375 from Fr8org/FR-5182
omerhanci Aug 9, 2016
b2b7c08
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-2987
emrevarisli Aug 9, 2016
f23d7d9
Merge branch 'dev' into FR-5179
Aug 9, 2016
ff70af4
Merge dev
alexavrutin Aug 9, 2016
47556b5
Merge branch 'dev' into FR-4973
jarekrzdbk Aug 9, 2016
825e72b
Merge dev
alexavrutin Aug 9, 2016
61552f3
Rebuild
alexavrutin Aug 9, 2016
340a657
Rebuild
alexavrutin Aug 9, 2016
468986a
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-5182
omerhanci Aug 9, 2016
e543343
deleted unnecessary migration
omerhanci Aug 9, 2016
97b75e0
Moved swagger sample factories into Fr8Infrastructure.NET in order to…
Aug 9, 2016
d18961a
Added more checks to make error message more clear
Aug 9, 2016
e998239
Added missing reference
Aug 9, 2016
cf49898
Merge pull request #380 from Fr8org/FR-5182
omerhanci Aug 9, 2016
162f9ab
Fixed issue with child project documentation
Aug 9, 2016
b085a18
Merge remote-tracking branch 'origin/dev' into FR-5179
Aug 9, 2016
4df1005
Merge branch 'dev' into FR-4973
jarekrzdbk Aug 9, 2016
7a4d2ca
Merge pull request #347 from Fr8org/FR-4973
jarekrzdbk Aug 9, 2016
67a4a8d
refreshing controls on every configure
makigjuro Aug 9, 2016
d359e9c
Merge branch 'dev' of https://github.com/Fr8org/Fr8Core into FR-5053
makigjuro Aug 9, 2016
06cad9b
Merge branch 'dev' into FR-5179
Aug 9, 2016
405b51b
Merge branch 'dev' into FR-4768
jarekrzdbk Aug 9, 2016
53870d9
fix refresh
makigjuro Aug 9, 2016
52ab860
Merge pull request #364 from Fr8org/FR-5179
Aug 9, 2016
60947d6
bug fix
makigjuro Aug 9, 2016
9fa7390
Merge branch 'dev' into FR-4768
jarekrzdbk Aug 9, 2016
46be7ea
Merge pull request #353 from Fr8org/FR-4768
jarekrzdbk Aug 9, 2016
b2b748b
Merge Dev
alexavrutin Aug 9, 2016
822f4dc
refresh fix
makigjuro Aug 9, 2016
efcec14
Merge branch 'dev' of https://github.com/Fr8org/Fr8Core into FR-5053
makigjuro Aug 9, 2016
675fbc1
Merge pull request #395 from Fr8org/FR-5053
makigjuro Aug 9, 2016
f3ca914
Merge remote-tracking branch 'refs/remotes/origin/dev' into FR-2987
emrevarisli Aug 9, 2016
a35ffec
remove title and notes in refresh
makigjuro Aug 9, 2016
2bcedb6
Merge pull request #376 from Fr8org/FR-2987
emrevarisli Aug 9, 2016
8e37ce4
Merge branch 'dev' of https://github.com/Fr8org/Fr8Core into FR-5053-v2
makigjuro Aug 9, 2016
24a0a9b
Done FR-5072
alexavrutin Aug 9, 2016
4af167a
Merge branch 'dev' into FR-4945
alexavrutin Aug 9, 2016
678d59e
RedirecLogedUser is applied to every method except Logoff instead of …
blazingmind Aug 9, 2016
fe4a5ef
Merge branch 'dev' into FR-5267
blazingmind Aug 9, 2016
270a1ae
Merge pull request #397 from Fr8org/FR-5053-v2
makigjuro Aug 9, 2016
5e31878
Migration fix, Dockyard naming removed from DockyardDbMigration.cs.
alexavrutin Aug 9, 2016
228c471
Merge branch 'FR-4945' of https://github.com/Fr8org/Fr8Core.git
alexavrutin Aug 9, 2016
a018e93
Merge branch 'dev' into FR-5267
blazingmind Aug 9, 2016
4495f91
Merge branch 'dev' into FR-4945
alexavrutin Aug 9, 2016
5ba36fa
Merge pull request #396 from Fr8org/FR-5267
blazingmind Aug 9, 2016
5dc23f8
Merge pull request #365 from Fr8org/FR-4945
alexavrutin Aug 9, 2016
2831150
Added quotation marks around terminalId
alexavrutin Aug 9, 2016
3fe36ad
Merge pull request #399 from Fr8org/FR-5282
alexavrutin Aug 9, 2016
cda86ff
Merge branch 'master' into Release_10.Aug.2016_1
alexavrutin Aug 10, 2016
ed42175
Fix FR-5301
alexavrutin Aug 10, 2016
edda56c
* Fixed saving of Sectet to Terminals table
alexavrutin Aug 10, 2016
df7a7b0
Merge branch 'Release_10.Aug.2016_1' of https://github.com/Fr8org/Fr8…
alexavrutin Aug 10, 2016
8244d74
Added the -edition argument to CloneDatabase.ps1
alexavrutin Aug 10, 2016
8e1f1a4
Fix
alexavrutin Aug 10, 2016
9dba711
Changed long migration.
Aug 10, 2016
aeec37b
Commented out SQL UPDATE statement from migration.
Aug 10, 2016
b685a52
Removed migration comments
bahadirbb Aug 10, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions App_Start/AutoMapperBootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Linq;
using AutoMapper;
using Data.Entities;
using Data.States;
using Fr8.Infrastructure.Data.DataTransferObjects;
using Hub.Interfaces;
using HubWeb.ViewModels;
Expand All @@ -20,6 +21,7 @@ public AutoMapperBootStrapper(ITerminal terminal, IActivityTemplate activityTemp
_terminal = terminal;
_activityTemplate = activityTemplate;
}


public void ConfigureAutoMapper()
{
Expand All @@ -28,7 +30,7 @@ public void ConfigureAutoMapper()
.ForMember(a => a.Description, opts => opts.ResolveUsing(ad => ad.Description))
.ForMember(a => a.LastUpdated, opts => opts.ResolveUsing(ad => ad.LastUpdated))
.ForMember(a => a.Name, opts => opts.ResolveUsing(ad => ad.Name))
.ForMember(a => a.PlanState, opts => opts.ResolveUsing(ad => ad.PlanState))
.ForMember(a => a.PlanState, opts => opts.ResolveUsing(ad => PlanState.IntToString(ad.PlanState)))
.ForMember(a => a.StartingSubPlanId, opts => opts.ResolveUsing(ad => ad.StartingSubPlanId))
.ForMember(a => a.Tag, opts => opts.ResolveUsing(ad => ad.Tag))
.ForMember(a => a.Visibility, opts => opts.ResolveUsing(ad => new PlanVisibilityDTO() { Hidden = ad.Visibility.BooleanValue() }));
Expand All @@ -38,15 +40,14 @@ public void ConfigureAutoMapper()
.ForMember(a => a.Description, opts => opts.ResolveUsing(ad => ad.Description))
.ForMember(a => a.LastUpdated, opts => opts.ResolveUsing(ad => ad.LastUpdated))
.ForMember(a => a.Name, opts => opts.ResolveUsing(ad => ad.Name))
.ForMember(a => a.PlanState, opts => opts.ResolveUsing(ad => ad.PlanState))
.ForMember(a => a.PlanState, opts => opts.ResolveUsing(ad => PlanState.StringToInt(ad.PlanState)))
.ForMember(a => a.StartingSubPlanId, opts => opts.ResolveUsing(ad => ad.StartingSubPlanId))
.ForMember(a => a.Tag, opts => opts.ResolveUsing(ad => ad.Tag))
.ForMember(a => a.Visibility, opts => opts.ResolveUsing(ad => ad.Visibility?.PlanVisibilityValue()));

Mapper.CreateMap<ActivityDO, ActivityDTO>().ForMember(a => a.Id, opts => opts.ResolveUsing(ad => ad.Id))
.ForMember(a => a.RootPlanNodeId, opts => opts.ResolveUsing(ad => ad.RootPlanNodeId))
.ForMember(a => a.ParentPlanNodeId, opts => opts.ResolveUsing(ad => ad.ParentPlanNodeId))
.ForMember(a => a.CurrentView, opts => opts.ResolveUsing(ad => ad.currentView))
.ForMember(a => a.ChildrenActivities, opts => opts.ResolveUsing(ad => ad.ChildNodes.OfType<ActivityDO>().OrderBy(da => da.Ordering)))
.ForMember(a => a.ActivityTemplate, opts => opts.ResolveUsing(GetActivityTemplate))
.ForMember(a => a.AuthToken, opts => opts.ResolveUsing(ad => ad.AuthorizationToken));
Expand All @@ -57,7 +58,6 @@ public void ConfigureAutoMapper()
//.ForMember(a => a.ActivityTemplate, opts => opts.Ignore())
.ForMember(a => a.ActivityTemplateId, opts => opts.ResolveUsing(GetActivityTemplateId))
//.ForMember(a => a.CrateStorage, opts => opts.ResolveUsing(ad => Newtonsoft.Json.JsonConvert.SerializeObject(ad.CrateStorage)))
.ForMember(a => a.currentView, opts => opts.ResolveUsing(ad => ad.CurrentView))
.ForMember(a => a.ChildNodes, opts => opts.ResolveUsing(ad => MapActivities(ad.ChildrenActivities)))
.ForMember(a => a.AuthorizationTokenId, opts => opts.ResolveUsing(ad => ad.AuthToken != null && ad.AuthToken.Id != null ? new Guid(ad.AuthToken.Id) : (Guid?)null));

Expand Down
6 changes: 6 additions & 0 deletions App_Start/RouteConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public static void RegisterRoutes(RouteCollection routes)
defaults: new { controller = "Redirect", action = "TwilioSMS" }
);

routes.MapRoute(
name: "Plan_Directory",
url: "plan_directory",
defaults: new { controller = "PlanDirectory", action = "Index" }
);

routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
Expand Down
64 changes: 44 additions & 20 deletions App_Start/StartupMigration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
using Fr8.Infrastructure.Utilities;
using Newtonsoft.Json;
using System.Linq;
using AutoMapper;
using Data.Repositories.Encryption;
using Fr8.Infrastructure.Data.Control;
using Fr8.Infrastructure.Data.Crates;
using Fr8.Infrastructure.Data.DataTransferObjects;
using Fr8.Infrastructure.Data.Managers;
using Fr8.Infrastructure.Data.Manifests;

namespace HubWeb.App_Start
{
Expand All @@ -13,42 +20,59 @@ public static void CreateSystemUser()
{
using (var uow = ObjectFactory.GetInstance<IUnitOfWork>())
{
var configRepository = ObjectFactory.GetInstance<IConfigRepository>();
var configRepository = ObjectFactory.GetInstance<IConfigRepository>();
string userEmail = configRepository.Get("SystemUserEmail");
string curPassword = configRepository.Get("SystemUserPassword");

var user = uow.UserRepository.GetOrCreateUser(userEmail);
uow.UserRepository.UpdateUserCredentials(userEmail, userEmail, curPassword);
uow.AspNetUserRolesRepository.AssignRoleToUser(Roles.Admin, user.Id);
user.TestAccount = false;

uow.SaveChanges();
}
}

//Prior to FR-3683 Salesforce refresh tokens were stored in nonsecure part of database
//This method is intended to save them into key vault
//This method is not a part of Seed method because at that point of time key vault is not yet configured
//TODO: delete this method after this is deployed to prod
public static void MoveSalesforceRefreshTokensIntoKeyVault()
//TODO: this method is a one-time update of transitions inside ContainerTransition control and should be removed after it is deployed to prod
public static void UpdateTransitionNames()
{
using (var uow = ObjectFactory.GetInstance<IUnitOfWork>())
{
var terminalId = uow.TerminalRepository.GetQuery().Where(x => x.Name == "terminalSalesforce").Select(x => x.Id).FirstOrDefault();
if (terminalId == 0)
{
return;
}
var tokens = uow.AuthorizationTokenRepository.GetPublicDataQuery().Where(x => x.TerminalID == terminalId && x.AdditionalAttributes.StartsWith("refresh_token"));
foreach (var token in tokens)
var encryptionService = ObjectFactory.GetInstance<IEncryptionService>();
foreach (var activity in uow.PlanRepository
.GetActivityQueryUncached()
.Where(x => x.ActivityTemplate.Name == "Make_a_Decision" && x.ActivityTemplate.Version == "1"))
{
var actualToken = uow.AuthorizationTokenRepository.FindTokenById(token.Id);
var refreshTokenFirstIndex = actualToken.AdditionalAttributes.IndexOf('=') + 1;
var refreshTokenLastIndex = actualToken.AdditionalAttributes.IndexOf(';');
actualToken.Token = JsonConvert.SerializeObject(new { AccessToken = actualToken.Token, RefreshToken = actualToken.AdditionalAttributes.Substring(refreshTokenFirstIndex, refreshTokenLastIndex - refreshTokenFirstIndex) });
actualToken.AdditionalAttributes = actualToken.AdditionalAttributes.Substring(refreshTokenLastIndex + 1);

var storage = activity.EncryptedCrateStorage == null || activity.EncryptedCrateStorage.Length == 0
? activity.CrateStorage
: encryptionService.DecryptString(activity.Fr8AccountId, activity.EncryptedCrateStorage);
if (string.IsNullOrEmpty(storage))
{
continue;
}
var crateStorageDto = JsonConvert.DeserializeObject<CrateStorageDTO>(storage);
var crateStorage = CrateStorageSerializer.Default.ConvertFromDto(crateStorageDto);
var controls = crateStorage.FirstCrateOrDefault<StandardConfigurationControlsCM>()?.Content;
if (controls == null)
{
continue;
}
var transitionList = controls.Controls.OfType<ContainerTransition>().First();
for (var i = 0; i < transitionList.Transitions.Count; i++)
{
var transition = transitionList.Transitions[i];
transition.Name = $"transition_{i}";
}
crateStorageDto = CrateStorageSerializer.Default.ConvertToDto(crateStorage);
storage = JsonConvert.SerializeObject(crateStorageDto, Formatting.Indented);
if (!string.IsNullOrEmpty(activity.CrateStorage))
{
activity.CrateStorage = storage;
}
activity.EncryptedCrateStorage = encryptionService.EncryptData(activity.Fr8AccountId, storage);
uow.SaveChanges();
}
uow.SaveChanges();
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion App_Start/SwaggerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using HubWeb;
using Swashbuckle.Application;
using System.Linq;
using Fr8.Infrastructure.Documentation.Swagger;
using HubWeb.Documentation.Swagger;
using HubWeb.Documentation.Swagger.OperationFilters;
using Swashbuckle.Swagger;

[assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")]
Expand Down Expand Up @@ -180,6 +180,7 @@ public static void Register()
//Removing duplicates filter
c.DocumentFilter<RemoveDuplicatesDocumentFilter>();
c.DocumentFilter<AddDefaultValuesDocumentFilter>();
c.DocumentFilter<AddHubDefaultValuesDocumentFilter>();

// In contrast to WebApi, Swagger 2.0 does not include the query string component when mapping a URL
// to an action. As a result, Swashbuckle will raise an exception if it encounters multiple actions
Expand Down
Binary file removed BuildUtils/xcopy.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
</div>
</div>
<div class="container">
<p style="font-size: 30px">Plan Directory - basecamp2.html</p>
<p style="font-size: 30px">Plan Directory - asana.html</p>
<div class="icons">
<img class="web-service-icon" src="../Content/icons/web_services/basecamp2-icon-64x64.png"/>
<img class="web-service-icon" src="../Content/icons/web_services/asana-icon-64x64.png"/>

</div>
<br/>
Expand All @@ -40,9 +40,9 @@
<tbody>
<tr>
<th scope="row">1</th>
<td>Basecamp</td>
<td>Basecamp</td>
<td><a href="http://localhost:30643/dashboard/plans/1568cb57-58ff-4258-a412-dff852565d9f/builder?viewMode=plan">Create</a></td>
<td>UgaChaga</td>
<td>UgaChaga</td>
<td><a href="http://localhost:30643/dashboard/plans/a4bb1bab-fba7-494f-b838-4b0390a1b577/builder?viewMode=plan">Create</a></td>
</tr>

</tbody>
Expand Down
4 changes: 4 additions & 0 deletions Config/HubWeb/Settings.config.readme
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ exclude them from .gitignore.
<!-- Plan Directory connection. This secret must match the secret specified
in the PlanDirectory configuration file.-->
<add key="PlanDirectorySecret" value="" />

<add key="AzureSearchServiceName" value="" />
<add key="AzureSearchApiKey" value="" />
<add key="AzureSearchIndexName" value="" />

<!-- System user account -->
<add key="SystemUserEmail" value="[email protected]" />
Expand Down
29 changes: 29 additions & 0 deletions Content/css/dockyard.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@
padding: 5px 0px 0px 0px
}

.black-radio .md-off , .black-radio.md-checked .md-off{
border-color: black !important;
}
//checked
.black-radio .md-on, .black-radio.md-checked .md-on{
background-color: black !important;
}

.design-header-title-editField {
display: none;
font-size: 22px;
Expand Down Expand Up @@ -484,10 +492,21 @@ div.action-header {
right: -66px;
}

.jumptarget{
display: inline-block;
height: 50px;
margin-top: 84px;
max-width:500px;
}

.action-add-button-link {
padding: 25px 0 15px 0;
}

.action-add-button-disabled {
background: #dcdcdc !important;
}

.action-add-button {
background: #fCfCfC;
border-radius: 50%;
Expand Down Expand Up @@ -1541,6 +1560,16 @@ md-radio-button .md-on{
border-radius:50% !important;
}



.black-radio.md-checked .md-off, .black-radio .md-off {
border-color: rgba(0,0,0,0.87) !important;
}
.black-radio.md-checked .md-on, .black-radio .md-on{
background-color: rgba(0,0,0,0.87) !important;
}


md-checkbox.md-checked.green .md-icon {
background-color: rgb(38, 166, 154);
}
Expand Down
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
File renamed without changes
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ var Layout = function () {
});

// hold mega menu content open on click/tap.
$(document).on('click', '.mega-menu-dropdown .dropdown-menu, .classic-menu-dropdown .dropdown-menu', function (e) {
e.stopPropagation();
});
//$(document).on('click', '.mega-menu-dropdown .dropdown-menu, .classic-menu-dropdown .dropdown-menu', function (e) {
// e.stopPropagation();
//});

// handle fixed mega menu(minimized)
$(window).scroll(function() {
Expand Down
14 changes: 5 additions & 9 deletions Controllers/Api/ActivitiesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public async Task<IHttpActionResult> Create(Guid activityTemplateId, string labe
{
using (var uow = _uowFactory.Create())
{
if (parentNodeId != null && _planService.GetPlanState(uow, parentNodeId.Value) == PlanState.Running)
if (parentNodeId != null && _planService.IsPlanActiveOrExecuting(parentNodeId.Value))
{
return new LockedHttpActionResult();
}
Expand All @@ -77,12 +77,11 @@ public async Task<IHttpActionResult> Create(Guid activityTemplateId, string labe
[SwaggerResponse((HttpStatusCode)423, "Specified plan is in running state and 'force' flag is not set so activity can't be configured")]
public async Task<IHttpActionResult> Configure(ActivityDTO curActionDesignDTO, [FromUri]bool force = false)
{
curActionDesignDTO.CurrentView = null;
ActivityDO curActivityDO = Mapper.Map<ActivityDO>(curActionDesignDTO);
var userId = User.Identity.GetUserId();
using (var uow = _uowFactory.Create())
{
if (_planService.GetPlanState(uow, curActionDesignDTO.Id) == PlanState.Running && !force)
if (_planService.IsPlanActiveOrExecuting(curActionDesignDTO.Id) && !force)
{
return new LockedHttpActionResult();
}
Expand Down Expand Up @@ -130,12 +129,9 @@ public IHttpActionResult Get(Guid id)
[SwaggerResponseRemoveDefaults]
public async Task<IHttpActionResult> Delete([FromUri] Guid id, [FromUri(Name = "delete_child_nodes")] bool deleteChildNodes = false)
{
using (var uow = _uowFactory.Create())
if (_planService.IsPlanActiveOrExecuting(id))
{
if (_planService.GetPlanState(uow, id) == PlanState.Running)
{
return new LockedHttpActionResult();
}
return new LockedHttpActionResult();
}
if (deleteChildNodes)
{
Expand All @@ -162,7 +158,7 @@ public async Task<IHttpActionResult> Save(ActivityDTO curActionDTO, [FromUri]boo
{
using (var uow = _uowFactory.Create())
{
if (_planService.GetPlanState(uow, curActionDTO.Id) == PlanState.Running && !force)
if (_planService.IsPlanActiveOrExecuting(curActionDTO.Id) && !force)
{
return new LockedHttpActionResult();
}
Expand Down
3 changes: 3 additions & 0 deletions Controllers/Api/ActivityTemplatesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public IHttpActionResult Get()
var categoriesWithActivities = _activity.GetAvailableActivityGroups();
return Ok(categoriesWithActivities);
}


//TODO inspect this - why do we have 2 different methods returning different responses by similar names?
/// <summary>
/// Retreives all available activity templates grouped by category
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Controllers/Api/AlarmsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ private static async Task<bool> RenewAuthToken(PollingDataDTO pollingData, strin
using (var uow = ObjectFactory.GetInstance<IUnitOfWork>())
{
var terminalDO = await ObjectFactory.GetInstance<ITerminal>().GetByToken(terminalToken);
if (terminalDO == null)
{
throw new Exception("No terminal was found with token: "+terminalToken);
}
var token = uow.AuthorizationTokenRepository.FindTokenByExternalAccount(pollingData.ExternalAccountId, terminalDO.Id, pollingData.Fr8AccountId);
if (token != null)
{
Expand Down
Loading