-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 8063: FEAT: Return the correct upgrade message if the prope…
…rty was not found in the data file, but there is an explicit property getter for it in the data for the engine. #4197 Related work items: #4197
- Loading branch information
1 parent
4174b06
commit 47179f4
Showing
3 changed files
with
191 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using FiftyOne.Pipeline.Core.Data; | ||
using FiftyOne.Pipeline.Core.FlowElements; | ||
using FiftyOne.Pipeline.Engines.Data; | ||
using FiftyOne.Pipeline.Engines.FlowElements; | ||
using Microsoft.Extensions.Logging; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace FiftyOne.Pipeline.Engines.TestHelpers | ||
{ | ||
public class GenericEngine<T> : AspectEngineBase<T, IAspectPropertyMetaData> | ||
where T : IAspectData | ||
{ | ||
public override string DataSourceTier { get; } | ||
|
||
public override string ElementDataKey { get; } | ||
|
||
public override IEvidenceKeyFilter EvidenceKeyFilter => new EvidenceKeyFilterWhitelist(new List<string>()); | ||
|
||
public override IList<IAspectPropertyMetaData> Properties { get; } | ||
|
||
public GenericEngine( | ||
ILogger<GenericEngine<T>> logger, | ||
string tier, | ||
string dataKey, | ||
IList<IAspectPropertyMetaData> properties) : | ||
base(logger, (p, e) => default(T)) | ||
{ | ||
DataSourceTier = tier; | ||
ElementDataKey = dataKey; | ||
Properties = properties; | ||
} | ||
|
||
protected override void ProcessEngine(IFlowData data, T aspectData) | ||
{ | ||
} | ||
|
||
protected override void UnmanagedResourcesCleanup() | ||
{ | ||
} | ||
} | ||
} |
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