forked from Sitecore/Media-Framework-Brightcove-Edition
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update the videos/playlists pull pipelines to automatically refresh the search index to prevent a race condition (#14) Co-authored-by: Cody Rodgers <[email protected]> * v10.1.X-3.6 (#18) * V10.2.0.3 (#16) * Fixed broken DXF configuration content for labels/folders * Add more error handling to the folder and labels property value readers * Fix bug preventing new labels from being synced * Remove automatic re-indexing from the videos/playlists pipeline --------- Co-authored-by: Cody Rodgers <[email protected]> * Add missing embed media buttons * Reorganize DEF files * Update the DEF GET pipelines to have better error handling and removed broken SetFolderSettings code * Update the DEF resolve pipelines to have better error handling * Updated the UPDATE DEF pipelines to have better logging and error handling * Update playlist/video pipelines to accuratly reflect video name changes made outside of Sitecore * Fix bug preventing deleted Brightcove items from being deleted in Sitecore * Fix broken standard values for experience items * Update the Brightcove services to trim account ids/secrets * Update logging levels on video/player pipelines * Update all pipelines to handle name changes * Update sitecore package creation script to include patching instructions * Update the pull pipelines to support creating items in languages other an "en" * Update all template fields to be shared * Update the push pipelines to support creating items in languages other than "en" * Update the folder/labels value readers to have better error handling * Add support for embedding medai links again. It was removed as part of the upgrade but returned on client request * Update the resolve asset item pipeline step to rename resolved items if the name has been changed since creation * Fix the brightcove settings config so it loads both html editor scripts correctly * Update sitecore package creation script --------- Co-authored-by: Cody Rodgers <[email protected]> * V10.2.X-5 (#22) * Update the videos/playlists pull pipelines to automatically refresh the search index to prevent a race condition (#14) Co-authored-by: Cody Rodgers <[email protected]> * v10.1.X-3.6 (#18) * V10.2.0.3 (#16) * Fixed broken DXF configuration content for labels/folders * Add more error handling to the folder and labels property value readers * Fix bug preventing new labels from being synced * Remove automatic re-indexing from the videos/playlists pipeline --------- Co-authored-by: Cody Rodgers <[email protected]> * Add missing embed media buttons * Reorganize DEF files * Update the DEF GET pipelines to have better error handling and removed broken SetFolderSettings code * Update the DEF resolve pipelines to have better error handling * Updated the UPDATE DEF pipelines to have better logging and error handling * Update playlist/video pipelines to accuratly reflect video name changes made outside of Sitecore * Fix bug preventing deleted Brightcove items from being deleted in Sitecore * Fix broken standard values for experience items * Update the Brightcove services to trim account ids/secrets * Update logging levels on video/player pipelines * Update all pipelines to handle name changes * Update sitecore package creation script to include patching instructions * Update the pull pipelines to support creating items in languages other an "en" * Update all template fields to be shared * Update the push pipelines to support creating items in languages other than "en" * Update the folder/labels value readers to have better error handling * Add support for embedding medai links again. It was removed as part of the upgrade but returned on client request * Update the resolve asset item pipeline step to rename resolved items if the name has been changed since creation * Fix the brightcove settings config so it loads both html editor scripts correctly * Update sitecore package creation script --------- Co-authored-by: Cody Rodgers <[email protected]> * Fix bug which prevents the user from embedding media in the Siteocre RTE in certain scenarios * Add support for syncing video scheduling/status information * Reserialize content * Add some help text to the new scheduling fields --------- Co-authored-by: Cody Rodgers <[email protected]> * v10.1.X-37 (#21) * Fix bug which prevents the user from embedding media in the Siteocre RTE in certain scenarios * Add support for syncing video scheduling/status information * Reserialize content * Add some help text to the new scheduling fields --------- Co-authored-by: Cody Rodgers <[email protected]> * Update the embed generator to include an optional alt-text field for iframe accessibility support * Update all Brightcove templates/items to be unpublishable to prevent unnecessary performance hits * Update the pull pipeline processors to use the ItemModelRepository and cleanup unnecessary DB requests * Update the pull pipelines to set and use a new global last sync timestamp * Update the push pipelines to use the new last sync time * Update the video push pipeline to suppor the new last sync time field * Update the value reader/writers to include consistent exception handling * Update playlist/video page size to 1000 * Update the resolve asset item pipeline to dedup content items * Add the new clean pipeline batch * Add retry logic to the brightcove service * Fix loadPlayer script * Content Updates * Fix various bugs --------- Co-authored-by: Cody Rodgers <[email protected]>
- Loading branch information
1 parent
ef533a3
commit af8398c
Showing
193 changed files
with
3,024 additions
and
1,731 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
19 changes: 19 additions & 0 deletions
19
...htcove.DataExchangeFramework/Converters/PipelineStep/ApplyMappingPipelineStepConverter.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,19 @@ | ||
using Brightcove.DataExchangeFramework.Settings; | ||
using Sitecore.Data; | ||
using Sitecore.Data.Items; | ||
using Sitecore.DataExchange.ApplyMapping; | ||
using Sitecore.DataExchange.Attributes; | ||
using Sitecore.DataExchange.Models; | ||
using Sitecore.DataExchange.Providers.Sc.Converters.PipelineSteps; | ||
using Sitecore.DataExchange.Repositories; | ||
using Sitecore.Services.Core.Model; | ||
using System; | ||
|
||
namespace Brightcove.DataExchangeFramework.Converters | ||
{ | ||
[SupportedIds("{AB4AF4DF-D282-4CD1-8268-FA12A9E457A3}")] | ||
public class ApplyMappingPipelineStepConverter : ApplyMappingStepConverter | ||
{ | ||
public ApplyMappingPipelineStepConverter(IItemModelRepository repository) : base(repository) { } | ||
} | ||
} |
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
44 changes: 44 additions & 0 deletions
44
Brightcove.DataExchangeFramework/Converters/PipelineStep/SyncPipelineStepConverter.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,44 @@ | ||
using Brightcove.DataExchangeFramework.Settings; | ||
using Sitecore.Data; | ||
using Sitecore.Data.Items; | ||
using Sitecore.DataExchange.Attributes; | ||
using Sitecore.DataExchange.Converters.PipelineSteps; | ||
using Sitecore.DataExchange.Models; | ||
using Sitecore.DataExchange.Providers.Sc.Converters.PipelineSteps; | ||
using Sitecore.DataExchange.Repositories; | ||
using Sitecore.Services.Core.Model; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Brightcove.DataExchangeFramework.Converters | ||
{ | ||
public class SyncPipelineStepConverter : BasePipelineStepConverter | ||
{ | ||
public SyncPipelineStepConverter(IItemModelRepository repository) : base(repository) | ||
{ | ||
|
||
} | ||
|
||
protected override void AddPlugins(ItemModel source, PipelineStep pipelineStep) | ||
{ | ||
Guid endpointId = this.GetGuidValue(source, "EndpointFrom"); | ||
BrightcoveSyncSettings settings = new BrightcoveSyncSettings(); | ||
|
||
if (endpointId != null) | ||
{ | ||
ItemModel endpointItem = ItemModelRepository.Get(endpointId); | ||
|
||
if(endpointItem != null) | ||
{ | ||
string accountId = this.GetStringValue(endpointItem, "Account") ?? ""; | ||
settings.AccountItem = ItemModelRepository.Get(accountId); | ||
} | ||
} | ||
|
||
pipelineStep.AddPlugin(settings); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ove.DataExchangeFramework/Converters/PipelineStep/UpdateAssetItemPipelineStepConverter.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,19 @@ | ||
using Brightcove.DataExchangeFramework.Settings; | ||
using Sitecore.Data; | ||
using Sitecore.Data.Items; | ||
using Sitecore.DataExchange.ApplyMapping; | ||
using Sitecore.DataExchange.Attributes; | ||
using Sitecore.DataExchange.Models; | ||
using Sitecore.DataExchange.Providers.Sc.Converters.PipelineSteps; | ||
using Sitecore.DataExchange.Repositories; | ||
using Sitecore.Services.Core.Model; | ||
using System; | ||
|
||
namespace Brightcove.DataExchangeFramework.Converters | ||
{ | ||
[SupportedIds("{F4AF37B2-F92D-4E49-A017-3D7489E23910}")] | ||
public class UpdateAssetItemPipelineStepConverter : UpdateSitecoreItemStepConverter | ||
{ | ||
public UpdateAssetItemPipelineStepConverter(IItemModelRepository repository) : base(repository) { } | ||
} | ||
} |
81 changes: 81 additions & 0 deletions
81
Brightcove.DataExchangeFramework/Converters/PipelineStep/UpdateVideoPipelineStepConverter.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,81 @@ | ||
using Brightcove.DataExchangeFramework.Settings; | ||
using Sitecore.Data; | ||
using Sitecore.Data.Items; | ||
using Sitecore.DataExchange.Attributes; | ||
using Sitecore.DataExchange.Converters.PipelineSteps; | ||
using Sitecore.DataExchange.DataAccess; | ||
using Sitecore.DataExchange.Models; | ||
using Sitecore.DataExchange.Plugins; | ||
using Sitecore.DataExchange.Providers.Sc.Converters.PipelineSteps; | ||
using Sitecore.DataExchange.Repositories; | ||
using Sitecore.Services.Core.Model; | ||
using System; | ||
|
||
namespace Brightcove.DataExchangeFramework.Converters | ||
{ | ||
[SupportedIds("{D79A5F5C-9A5E-4B1C-B884-8E3B97CACA2D}", "{F598D123-2FE9-45D3-99E2-3E4B5063190A}")] | ||
public class UpdateVideoPipelineStepConverter : BasePipelineStepConverter | ||
{ | ||
public UpdateVideoPipelineStepConverter(IItemModelRepository repository) : base(repository) { } | ||
|
||
protected override void AddPlugins(ItemModel source, PipelineStep pipelineStep) | ||
{ | ||
MappingSettings mappingSettings = new MappingSettings() | ||
{ | ||
ModelMappingSets = this.ConvertReferencesToModels<IMappingSet>(source, "ModelMappingSets"), | ||
VariantMappingSets = this.ConvertReferencesToModels<IMappingSet>(source, "VariantMappingSets"), | ||
SourceObjectLocation = this.GetGuidValue(source, "SourceObjectLocation"), | ||
TargetObjectLocation = this.GetGuidValue(source, "TargetObjectLocation") | ||
}; | ||
|
||
pipelineStep.AddPlugin<MappingSettings>(mappingSettings); | ||
|
||
BrightcoveEndpointSettings endpointSettings = new BrightcoveEndpointSettings() | ||
{ | ||
BrightcoveEndpoint = this.ConvertReferenceToModel<Endpoint>(source, "BrightcoveEndpoint"), | ||
SitecoreEndpoint = this.ConvertReferenceToModel<Endpoint>(source, "SitecoreEndpoint") | ||
}; | ||
|
||
pipelineStep.AddPlugin<BrightcoveEndpointSettings>(endpointSettings); | ||
|
||
Guid endpointId = this.GetGuidValue(source, "BrightcoveEndpoint"); | ||
|
||
if(endpointId == null) | ||
{ | ||
return; | ||
} | ||
|
||
ItemModel endpointModel = ItemModelRepository.Get(endpointId); | ||
|
||
if(endpointModel == null) | ||
{ | ||
return; | ||
} | ||
|
||
Guid accountItemId = this.GetGuidValue(endpointModel, "Account"); | ||
|
||
if(accountItemId == null) | ||
{ | ||
return; | ||
} | ||
|
||
ItemModel accountItem = ItemModelRepository.Get(accountItemId); | ||
|
||
if(accountItem == null) | ||
{ | ||
return; | ||
} | ||
|
||
WebApiSettings webApiSettings = new WebApiSettings(); | ||
|
||
if (accountItem != null) | ||
{ | ||
webApiSettings.AccountId = this.GetStringValue(accountItem, "AccountId") ?? ""; | ||
webApiSettings.ClientId = this.GetStringValue(accountItem, "ClientId") ?? ""; | ||
webApiSettings.ClientSecret = this.GetStringValue(accountItem, "ClientSecret") ?? ""; | ||
} | ||
|
||
endpointSettings.BrightcoveEndpoint.AddPlugin(webApiSettings); | ||
} | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.