|
1 | | -using CMS.ContentEngine; |
2 | 1 | using CMS.ContentEngine.Internal; |
3 | 2 | using CMS.DataEngine; |
4 | 3 | using CMS.Websites; |
5 | 4 | using CMS.Websites.Internal; |
6 | 5 | using Kentico.Xperience.UMT.Model; |
7 | 6 | using Kentico.Xperience.UMT.Services; |
8 | 7 | using MediatR; |
9 | | - |
10 | | -using Microsoft.Data.SqlClient; |
11 | 8 | using Microsoft.Extensions.Logging; |
12 | 9 |
|
13 | 10 | using Migration.Tool.Common; |
14 | 11 | using Migration.Tool.Common.Abstractions; |
15 | | -using Migration.Tool.Common.Helpers; |
16 | 12 | using Migration.Tool.Common.MigrationProtocol; |
17 | 13 | using Migration.Tool.KXP.Api; |
18 | 14 | using Migration.Tool.Source.Contexts; |
19 | | -using Migration.Tool.Source.Helpers; |
20 | 15 | using Migration.Tool.Source.Model; |
21 | 16 | using Migration.Tool.Source.Providers; |
22 | 17 | using Migration.Tool.Source.Services; |
@@ -136,19 +131,19 @@ private async Task MigratePageScopes() |
136 | 131 | continue; |
137 | 132 | } |
138 | 133 | var ksSite = ksSitesById.GetValueOrDefault(ksScope.ScopeSiteID!.Value); |
139 | | - if (ksSite is null) |
140 | | - { |
| 134 | + if (ksSite is null) |
| 135 | + { |
141 | 136 | logger.LogError("Scope GUID='{ScopeGUID}' not migrated. Scope site of ID='{ScopeSiteID}' not found in source instance", ksScope.ScopeGUID, ksScope.ScopeSiteID); |
142 | | - continue; |
143 | | - } |
| 137 | + continue; |
| 138 | + } |
144 | 139 | var kxWebsiteChannel = WebsiteChannelInfo.Provider.Get(ksSite.SiteGUID); |
145 | | - if (kxWebsiteChannel is null) |
146 | | - { |
| 140 | + if (kxWebsiteChannel is null) |
| 141 | + { |
147 | 142 | logger.LogError("Scope GUID='{ScopeGUID}' not migrated. Website channel of GUID='{WebsiteChannelGUID}', matching the source scope site, not found", ksScope.ScopeGUID, ksSite.SiteGUID); |
148 | | - continue; |
| 143 | + continue; |
149 | 144 | } |
150 | | - |
151 | | - Guid? kxWebPageItemGuid; |
| 145 | + |
| 146 | + Guid? kxWebPageItemGuid; |
152 | 147 | if (ksScope.ScopePath.Equals("/", StringComparison.InvariantCultureIgnoreCase)) |
153 | 148 | { |
154 | 149 | kxWebPageItemGuid = null; |
|
0 commit comments