-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into develop_umb_8
# Conflicts: # src/DeployCmsData.UmbracoCms.UnitTest/Builders/DocumentTypeTestBuilder.cs
- Loading branch information
Showing
14 changed files
with
217 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/DeployCmsData.UpgradeScripts.7.0/UpgradeScripts/DocTypeInheritance.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using DeployCmsData.Core.Attributes; | ||
using DeployCmsData.Core.Interfaces; | ||
using DeployCmsData.UmbracoCms.Builders; | ||
using System.Linq; | ||
using Validation; | ||
|
||
namespace DeployCmsData.UpgradeScripts_7.UpgradeScripts | ||
{ | ||
[DoNotAutoRun] | ||
public class DocTypeInheritance : IUpgradeScript | ||
{ | ||
public bool RunScript() | ||
{ | ||
var builder1 = new DocumentTypeBuilder("websiteRoot"); | ||
builder1.AddField("Title") | ||
.Tab("Website Root"); | ||
builder1.Update(); | ||
|
||
var builder2 = new DocumentTypeBuilder("website2"); | ||
builder2.AddField("Title 2") | ||
.Tab("Web Site 2"); | ||
builder2.BuildWithParent("websiteRoot"); | ||
|
||
var builder3 = new DocumentTypeBuilder("website3"); | ||
builder3.AddField("Title 3") | ||
.Tab("Web Site 3"); | ||
builder3.BuildWithParent("website2"); | ||
|
||
var docType = new DocumentTypeBuilder("inheritedDocTypeTest"). | ||
BuildWithParent("website3"); | ||
|
||
Verify.Operation(docType.CompositionAliases().Count() == 3, "We should have 3 composition aliases"); | ||
|
||
return true; | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
src/DeployCmsData.UpgradeScripts.7.0/UpgradeScripts/GridRowConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using DeployCmsData.Core.Attributes; | ||
using DeployCmsData.Core.Interfaces; | ||
using DeployCmsData.UmbracoCms.Builders; | ||
using System; | ||
|
||
namespace DeployCmsData.UpgradeScripts_7.UpgradeScripts | ||
{ | ||
[DoNotAutoRun] | ||
public class GridRowConfiguration : IUpgradeScript | ||
{ | ||
public bool RunScript() | ||
{ | ||
new GridDataTypeBuilder(new Guid("{B0F71D78-745E-4BE5-925E-FA087D44C919}")) | ||
.AddAreaToRow("row 1", 2) | ||
.AddAreaToRow("row 1", 4) | ||
.AddAreaToRow("row 1", 6) | ||
.Build(); | ||
|
||
new GridDataTypeBuilder(new Guid("{9447F9CF-2112-45CD-933B-6F8F6411EF65}")) | ||
.AddRow("row 1", 2, 4) | ||
.AddAreaToRow("row 1", 6) | ||
.Build(); | ||
|
||
new GridDataTypeBuilder(new Guid("{D35416BC-58FC-4DB3-B67E-B7111BDA8CAA}")) | ||
.AddAreaToRow("row 1", 2, 10) | ||
.AddAreaToRow("row 1", 4, 20) | ||
.AddAreaToRow("row 1", 6, 30) | ||
.Build(); | ||
|
||
new GridDataTypeBuilder(new Guid("{4E3F4D54-3900-43A7-B37F-ABDA1802631E}")) | ||
.AddAreaToRow("row 1", 2, 10, "rte", "headline", "image") | ||
.AddAreaToRow("row 1", 4, 20, "image") | ||
.AddAreaToRow("row 1", 6, 30, "headline", "rte") | ||
.Build(); | ||
|
||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/DeployCmsData.UpgradeScripts.8.0/UpgradeScripts/DocTypeInheritance.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using DeployCmsData.Core.Attributes; | ||
using DeployCmsData.Core.Interfaces; | ||
using DeployCmsData.UmbracoCms.Builders; | ||
|
||
namespace DeployCmsData.UpgradeScripts_8.UpgradeScripts | ||
{ | ||
[DoNotAutoRun] | ||
public class DocTypeInheritance : IUpgradeScript | ||
{ | ||
public bool RunScript() | ||
{ | ||
var builder1 = new DocumentTypeBuilder("websiteRoot"); | ||
|
||
builder1.AddField("Title") | ||
.Tab("Website Root"); | ||
|
||
builder1.Update(); | ||
|
||
var builder2 = new DocumentTypeBuilder("website2"); | ||
|
||
builder2.AddField("Title 2") | ||
.Tab("Web Site 2"); | ||
|
||
builder2.BuildWithParent("websiteRoot"); | ||
|
||
var builder3 = new DocumentTypeBuilder("website3"); | ||
|
||
builder3.AddField("Title 3") | ||
.Tab("Web Site 3"); | ||
|
||
builder3.BuildWithParent("website2"); | ||
|
||
new DocumentTypeBuilder("inheritedDocTypeTest"). | ||
BuildWithParent("website3"); | ||
|
||
return true; | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
src/DeployCmsData.UpgradeScripts.8.0/UpgradeScripts/GridRowConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using DeployCmsData.Core.Attributes; | ||
using DeployCmsData.Core.Interfaces; | ||
using DeployCmsData.UmbracoCms.Builders; | ||
using System; | ||
|
||
namespace DeployCmsData.UpgradeScripts._8._0.UpgradeScripts | ||
{ | ||
[DoNotAutoRun] | ||
public class GridRowConfiguration : IUpgradeScript | ||
{ | ||
public bool RunScript() | ||
{ | ||
new GridDataTypeBuilder(new Guid("{B0F71D78-745E-4BE5-925E-FA087D44C919}")) | ||
.AddAreaToRow("row 1", 2) | ||
.AddAreaToRow("row 1", 4) | ||
.AddAreaToRow("row 1", 6) | ||
.Build(); | ||
|
||
new GridDataTypeBuilder(new Guid("{9447F9CF-2112-45CD-933B-6F8F6411EF65}")) | ||
.AddRow("row 1", 2, 4) | ||
.AddAreaToRow("row 1", 6) | ||
.Build(); | ||
|
||
new GridDataTypeBuilder(new Guid("{D35416BC-58FC-4DB3-B67E-B7111BDA8CAA}")) | ||
.AddAreaToRow("row 1", 2, 10) | ||
.AddAreaToRow("row 1", 4, 20) | ||
.AddAreaToRow("row 1", 6, 30) | ||
.Build(); | ||
|
||
new GridDataTypeBuilder(new Guid("{4E3F4D54-3900-43A7-B37F-ABDA1802631E}")) | ||
.AddAreaToRow("row 1", 2, 10, "rte", "headline", "image") | ||
.AddAreaToRow("row 1", 4, 20, "image") | ||
.AddAreaToRow("row 1", 6, 30, "headline", "rte") | ||
.Build(); | ||
|
||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.