Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added option to include errors in tweek-api values result (#1132)
* split files * return all error from jpad calculations * add option to propagate errors to tweek response * add e2e-integration .dockerignore file * add unit test * move smoke tests to integration tests * propagate error tests * added EnsureSuccess method to TweekValuesResult * rename propagateErrors -> includeErrors * split to files
- Loading branch information
Showing
25 changed files
with
534 additions
and
386 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 was deleted.
Oops, something went wrong.
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,15 @@ | ||
using System.Collections.Generic; | ||
using Tweek.Engine.Core.Context; | ||
using Tweek.Engine.DataTypes; | ||
using IdentityHashSet = System.Collections.Generic.HashSet<Tweek.Engine.DataTypes.Identity>; | ||
|
||
namespace Tweek.Engine | ||
{ | ||
public interface ITweek | ||
{ | ||
TweekValuesResult Calculate( | ||
ICollection<ConfigurationPath> pathQuery, | ||
IdentityHashSet identities, GetLoadedContextByIdentityType context, | ||
ConfigurationPath[] includeFixedPaths = null); | ||
} | ||
} |
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,15 @@ | ||
using System.Threading.Tasks; | ||
using Tweek.Engine.Drivers.Rules; | ||
using Tweek.Engine.Rules.Creation; | ||
|
||
namespace Tweek.Engine | ||
{ | ||
public static class Tweek | ||
{ | ||
public static async Task<ITweek> Create(IRulesRepository rulesRepository, GetRuleParser parserResolver) | ||
{ | ||
var rulesLoader = await RulesLoader.Factory(rulesRepository, parserResolver); | ||
return new TweekRunner(rulesLoader); | ||
} | ||
} | ||
} |
Oops, something went wrong.