changed terminology from Comparison to Change Detection for Site Group Type

This commit is contained in:
sbwalker
2026-02-17 09:49:24 -05:00
parent 3af03d308e
commit 3e0b5bfa09
5 changed files with 11 additions and 11 deletions

View File

@@ -480,11 +480,11 @@
</div> </div>
</div> </div>
<div class="row mb-1 align-items-center"> <div class="row mb-1 align-items-center">
<Label Class="col-sm-3" For="grouptype" HelpText="The site group type (ie. synchronization, comparison, localization)" ResourceKey="GroupType">Type: </Label> <Label Class="col-sm-3" For="grouptype" HelpText="Defines the specific behavior of the site group" ResourceKey="GroupType">Type: </Label>
<div class="col-sm-9"> <div class="col-sm-9">
<select id="grouptype" class="form-select" @bind="@_groupType"> <select id="grouptype" class="form-select" @bind="@_groupType">
<option value="@SiteGroupTypes.Synchronization">@Localizer[@SiteGroupTypes.Synchronization]</option> <option value="@SiteGroupTypes.Synchronization">@Localizer[@SiteGroupTypes.Synchronization]</option>
<option value="@SiteGroupTypes.Comparison">@Localizer[@SiteGroupTypes.Comparison]</option> <option value="@SiteGroupTypes.ChangeDetection">@Localizer[@SiteGroupTypes.ChangeDetection]</option>
<option value="@SiteGroupTypes.Localization">@Localizer[SiteGroupTypes.Localization]</option> <option value="@SiteGroupTypes.Localization">@Localizer[SiteGroupTypes.Localization]</option>
</select> </select>
</div> </div>
@@ -526,7 +526,7 @@
</select> </select>
</div> </div>
</div> </div>
@if (_primary == "False" && (_groupType == SiteGroupTypes.Synchronization || _groupType == SiteGroupTypes.Comparison)) @if (_primary == "False" && (_groupType == SiteGroupTypes.Synchronization || _groupType == SiteGroupTypes.ChangeDetection))
{ {
<div class="row mb-1 align-items-center"> <div class="row mb-1 align-items-center">
<Label Class="col-sm-3" For="synchronized" HelpText="The date/time when the site was last synchronized" ResourceKey="Synchronized">Synchronized: </Label> <Label Class="col-sm-3" For="synchronized" HelpText="The date/time when the site was last synchronized" ResourceKey="Synchronized">Synchronized: </Label>

View File

@@ -553,7 +553,7 @@
<value>Type:</value> <value>Type:</value>
</data> </data>
<data name="GroupType.HelpText" xml:space="preserve"> <data name="GroupType.HelpText" xml:space="preserve">
<value>The site group type (ie. synchronization, comparison, localization)</value> <value>Defines the specific behavior of the site group</value>
</data> </data>
<data name="Synchronized.HelpText" xml:space="preserve"> <data name="Synchronized.HelpText" xml:space="preserve">
<value>The date/time when the site was last synchronized</value> <value>The date/time when the site was last synchronized</value>
@@ -564,7 +564,7 @@
<data name="Localization" xml:space="preserve"> <data name="Localization" xml:space="preserve">
<value>Localization</value> <value>Localization</value>
</data> </data>
<data name="Comparison" xml:space="preserve"> <data name="ChangeDetection" xml:space="preserve">
<value>Comparison</value> <value>Change Detection</value>
</data> </data>
</root> </root>

View File

@@ -35,7 +35,7 @@
<button type="button" data-bs-dismiss="offcanvas" class="btn btn-primary col-12" @onclick=@(async () => Navigate("Admin"))>@Localizer["AdminDash"]</button> <button type="button" data-bs-dismiss="offcanvas" class="btn btn-primary col-12" @onclick=@(async () => Navigate("Admin"))>@Localizer["AdminDash"]</button>
</div> </div>
</div> </div>
@if (_siteGroups.Any(item => (item.Type == SiteGroupTypes.Synchronization || item.Type == SiteGroupTypes.Comparison) && item.PrimarySiteId == PageState.Site.SiteId)) @if (_siteGroups.Any(item => (item.Type == SiteGroupTypes.Synchronization || item.Type == SiteGroupTypes.ChangeDetection) && item.PrimarySiteId == PageState.Site.SiteId))
{ {
<hr class="app-rule" /> <hr class="app-rule" />
<button type="button" class="btn btn-secondary col-12 mt-1" @onclick="SynchronizeSite">@Localizer["Synchronize"]</button> <button type="button" class="btn btn-secondary col-12 mt-1" @onclick="SynchronizeSite">@Localizer["Synchronize"]</button>
@@ -642,7 +642,7 @@
private async Task SynchronizeSite() private async Task SynchronizeSite()
{ {
foreach (var group in _siteGroups.Where(item => (item.Type == SiteGroupTypes.Synchronization || item.Type == SiteGroupTypes.Comparison) && item.PrimarySiteId == PageState.Site.SiteId)) foreach (var group in _siteGroups.Where(item => (item.Type == SiteGroupTypes.Synchronization || item.Type == SiteGroupTypes.ChangeDetection) && item.PrimarySiteId == PageState.Site.SiteId))
{ {
group.Synchronize = true; group.Synchronize = true;
await SiteGroupService.UpdateSiteGroupAsync(group); await SiteGroupService.UpdateSiteGroupAsync(group);

View File

@@ -52,7 +52,7 @@ namespace Oqtane.Infrastructure
var siteGroups = siteGroupRepository.GetSiteGroups(); var siteGroups = siteGroupRepository.GetSiteGroups();
// iterate through site groups which need to be synchronized // iterate through site groups which need to be synchronized
foreach (var siteGroup in siteGroups.Where(item => item.Synchronize && (item.Type == SiteGroupTypes.Synchronization || item.Type == SiteGroupTypes.Comparison))) foreach (var siteGroup in siteGroups.Where(item => item.Synchronize && (item.Type == SiteGroupTypes.Synchronization || item.Type == SiteGroupTypes.ChangeDetection)))
{ {
// get data // get data
if (siteGroupMembers == null) if (siteGroupMembers == null)
@@ -201,7 +201,7 @@ namespace Oqtane.Infrastructure
syncManager.AddSyncEvent(alias, EntityNames.Site, secondarySite.SiteId, SyncEventActions.Refresh); syncManager.AddSyncEvent(alias, EntityNames.Site, secondarySite.SiteId, SyncEventActions.Refresh);
} }
if (!string.IsNullOrEmpty(log) && siteGroupMember.SiteGroup.Type == SiteGroupTypes.Comparison) if (!string.IsNullOrEmpty(log) && siteGroupMember.SiteGroup.Type == SiteGroupTypes.ChangeDetection)
{ {
// send change log to administrators // send change log to administrators
SendNotifications(provider, secondarySite.SiteId, secondarySite.Name, log); SendNotifications(provider, secondarySite.SiteId, secondarySite.Name, log);

View File

@@ -3,7 +3,7 @@ namespace Oqtane.Shared
public class SiteGroupTypes public class SiteGroupTypes
{ {
public const string Synchronization = "Synchronization"; public const string Synchronization = "Synchronization";
public const string Comparison = "Comparison"; public const string ChangeDetection = "ChangeDetection";
public const string Localization = "Localization"; public const string Localization = "Localization";
} }
} }