Abbas Cyclewala
1449d05810
Added strongname signing for RulesEngine ( #231 )
...
* Added strongname signing
2021-09-09 16:03:52 +05:30
Alex Reich
7b089a8260
Nested rules null operator check ( #230 )
...
* conventional progress
* Revert "conventional progress"
This reverts commit 9b404416b9
.
* Check for issue on Rules field with missing (null) operator
* Rule Validator cleanup + Rule Validation Tests
Co-authored-by: Alex Reich <Alex_Reich@mechanicsbank.com>
2021-09-07 03:58:23 +00:00
dependabot[bot]
be8a91d651
Bump Microsoft.NET.Test.Sdk from 16.10.0 to 16.11.0 ( #208 )
...
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest ) from 16.10.0 to 16.11.0.
- [Release notes](https://github.com/microsoft/vstest/releases )
- [Commits](https://github.com/microsoft/vstest/compare/v16.10.0...v16.11.0 )
---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-18 12:27:41 +05:30
Alex Reich
34f77ed2ec
Make consistent singlar/plural names of instances to avoid downstream… ( #193 )
...
* Make consistent singlar/plural names of instances to avoid downstream ambiguous reference issues
* Reverted ReSettings pluralization
* conventional progress
* Overhaul to simplify, cleanup, deprecate pr
* Update README.md
* Reverted RuleActions
* Cleanup
* Cleanup
* Cleanup
* Cleanup
* Deprecate RuleAction to plural
* Reverted some name changes per @abbasc52
* Clarity + VS.NET 2019 compilation fix
* Camelcase fixes
* Reverted Id properties
* Documentation updates
Co-authored-by: Alex Reich <Alex_Reich@mechanicsbank.com>
Co-authored-by: Alex Reich <alex@alexreich.com>
Co-authored-by: Abbas Cyclewala <abcy@microsoft.com>
2021-08-13 10:04:47 +05:30
Alex Reich
9f898b703b
Entity Framework demonstration ( #186 )
...
* Initial Commit
* WIP
* Readability + null ef issue r&d
* Cleanup
* Minimum Sample
* Refactored to remove EF from DemoApp
* Fixed RuleValidator issue
Added EmptyRulesTest for expected simple and nested rules empty exception
Co-authored-by: Alex Reich <alex@alexreich.com>
Co-authored-by: Alex Reich <Alex_Reich@mechanicsbank.com>
2021-07-22 21:59:26 +05:30
Abbas Cyclewala
b763f718bc
Abbasc52/actions for nested levels ( #182 )
...
* Added support for nested rule actions
* Changed type for Actions
2021-07-20 16:54:32 +05:30
Abbas Cyclewala
ec172c9b0f
made AddWorkflow throw exception when trying to add an workflow which already exists ( #162 )
2021-06-08 09:21:02 +05:30
Abbas Cyclewala
1a1cb540f4
updated packages and readme ( #161 )
2021-06-07 20:31:43 +05:30
Ashish Prasad
77ed54aca7
[158] Refresh compiled rules if stale. ( #159 )
...
* [158] Refresh compiled rules if stale.
* 1. AddWorkflow should update only new rules.
1. Change to `AreCompiledRulesUpToDate`.
1. Add test cases:
1. AddWorkflow executing previous rules.
1. AddOrUpdateWorkflow executing new rules.
* 1. [Typo] result2 should be aserted instead of result1.
1. [NIT] Assert previousResults and newResults instead of expected and actual.
* Validate rules first before checking if the workflow name is not already added..
Co-authored-by: Ashish Prasad <ashprasa@microsoft.com>
2021-06-07 05:48:21 +00:00
dependabot[bot]
fcf172d6df
Bump Moq from 4.16.0 to 4.16.1 ( #144 )
...
Bumps [Moq](https://github.com/moq/moq4 ) from 4.16.0 to 4.16.1.
- [Release notes](https://github.com/moq/moq4/releases )
- [Changelog](https://github.com/moq/moq4/blob/main/CHANGELOG.md )
- [Commits](https://github.com/moq/moq4/compare/v4.16.0...v4.16.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Abbas Cyclewala <abcy@microsoft.com>
2021-05-27 10:50:16 +05:30
dependabot[bot]
21d7848ec7
Bump AutoFixture from 4.15.0 to 4.17.0 ( #141 )
...
Bumps [AutoFixture](https://github.com/AutoFixture/AutoFixture ) from 4.15.0 to 4.17.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases )
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.15.0...v4.17.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Abbas Cyclewala <abcy@microsoft.com>
2021-05-27 00:54:48 +00:00
dependabot[bot]
f3096f9aaa
Bump coverlet.collector from 3.0.2 to 3.0.3 ( #148 )
...
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet ) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases )
- [Commits](https://github.com/coverlet-coverage/coverlet/commits )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 16:19:12 +00:00
dependabot[bot]
cc5e0c59b1
Bump Microsoft.NET.Test.Sdk from 16.8.3 to 16.10.0 ( #145 )
...
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest ) from 16.8.3 to 16.10.0.
- [Release notes](https://github.com/microsoft/vstest/releases )
- [Commits](https://github.com/microsoft/vstest/compare/v16.8.3...v16.10.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 21:41:01 +05:30
Martin
6e66784239
Fix SonarQube's "string.IsNullOrEmpty should be used" ( #137 )
2021-05-21 15:46:23 +05:30
Abbas Cyclewala
331776d3e7
perf mode for nested rules ( #128 )
...
* added perf mode for nested rules
* added more tests
* Added comments for NestedRuleExecutionMode and fixed typo
* updated readme
2021-04-27 12:17:42 +05:30
Abbas Cyclewala
f3ac4316df
Abbasc52/null rule param fix ( #119 )
...
* Fixed scoped parameter throwing exception on compilation error
* Fixed null RuleParameter throwing exception
* Replaced thrown Exceptions with RuleException
2021-04-19 11:21:33 +05:30
Abbas Cyclewala
c7b7d42efe
Made runtime error log as exception message by default ( #107 )
2021-03-02 14:55:47 +05:30
Abbas Cyclewala
b49ffd207d
Abbasc52/nested fix ( #96 )
...
- Added GlobalParams support #97
- LocalParams now work at all nested levels #98
- Added Enabled field to Rule to enable/disable a Rule #99
- Fixed Rule compilation error not appearing as error message in certain cases #95
2021-02-02 10:29:21 +05:30
Abbas Cyclewala
04060e7159
Fixed LocalParams Cache not getting cleaned up ( #93 )
2021-01-21 16:09:25 +05:30
Abbas Cyclewala
9c8b9d484e
* fixed namespace issue ( #82 )
...
* fixed namespace issue
* added editorconfig
* cleaned up files based on editorconfig
2020-12-23 11:04:10 +05:30
Abbas Cyclewala
173d2a03c9
Updated version number to 3.0.0 ( #79 )
2020-12-16 17:40:01 +05:30
Abbas Cyclewala
b39591eac1
Added support for unlimited inputs ( #76 )
...
* Added support for unlimited inputs
2020-12-11 14:48:52 +05:30
Abbas Cyclewala
a90880f126
perf improvements and benchmarking ( #70 )
...
* added perf improvements
* Added benchmark tool
2020-11-16 14:06:35 +05:30
Abbas Cyclewala
b68861dfd5
Merge develop to master ( #68 )
...
* Users/abbasc52/add-actions (#56 )
* Removed ruleinput
* Simplified compiled params code
* clean up and renaming
* Fixed caching and made test cases more specific
* updated settings
* updated nuget and fix warnings
* Added test case for invalid input name
* changed input from object to dictionary
* Added action related fields and added expression output action
* Added evaluateRuleAction and added basic tests for actions
* made action names and context case insensitive
* Added exception handling
* fixed exception message for parsing error
* improved constructor for action factory
* Added build trigger for pr to develop
* Added more testcases for actions
* Shared same instance of parser for RulesEngine and OutputExpression action
* fixed review comments
* Added null check for actions not mentioned in json
* pull fixes from master (#61 )
* Renamed ExecuteRule to ExecuteAllRulesAsync and added action support (#63 )
* Added support for actions
* Renamed ExecuteRule to ExecuteAllRulesAsync
* added github nuget publish
2020-11-02 09:25:43 +05:30
YogeshPraj
a71692f5da
Added option to throw error on expression compilation failure ( #57 )
2020-10-12 20:59:51 +05:30
David
845e92c6e1
Added MethodCallExpression support ( #53 )
...
* MemberAccessExpression / UnaryExpression / MethodCallExpression support as long as it evaluatues to a boolean value.
2020-09-21 15:51:31 +05:30
Abbas Cyclewala
6b66162e56
Users/abbasc52/bugfixes ( #48 )
...
* Added fix for cachekey
* Added fix for unknown identifier
* Updated version number for rulesengine
* Added testcase for instance utils and typecasting
2020-09-01 12:02:48 +05:30
joshidp
0bb1e5d9f9
Fix exception thrown when errormessage field is null ( #43 )
...
* format exceptio fix
* covering test case
Co-authored-by: Deepak Joshi <dejosh@microsoft.com>
2020-08-30 10:39:16 +05:30
Abbas Cyclewala
c0488f1113
Moving latest changes in develop and reverting them from master ( #41 )
...
* Revert "Increased coverage threshold to 95 for PR"
This reverts commit b545c5b4cf
.
* Revert "Converted expressions to delegates and code cleanup (#34 )"
This reverts commit 75baa6e358
.
2020-08-28 07:44:00 +05:30
Abbas Cyclewala
75baa6e358
Converted expressions to delegates and code cleanup ( #34 )
...
* Converted expressions to delegate and code cleanup
* fixed test cases
2020-08-04 10:29:02 +05:30
joshidp
a0a8938892
Rules Engine param Feature ( #24 )
...
* Feature Description
Rules Engine has a param (like ‘var’ in c#) feature support now, it makes authoring and troubleshooting of issues very easy. Now you can breakdown your bigger statements into smaller logical expressions as parameters within a rule definition.
* renaming param to localParam
* adding change log for local param
Co-authored-by: Deepak Joshi <dejosh@microsoft.com>
2020-07-22 21:04:15 +05:30
Abbas Cyclewala
170b494b66
Fixed dynamic object support when using RuleParameter ( #33 )
2020-07-20 20:04:18 +05:30
Dishant Munjal
b7cdedde8d
Users/dishant munjal/test cases ( #16 )
...
* test cases
* Minor changes
2020-05-18 14:49:01 +05:30
Todd Meinershagen
e920138edd
Simplified the IRulesEngine interface to have a params array for Obje… ( #14 )
...
* Simplified the IRulesEngine interface to have a params array for Objects and Rule Parameters. Also updated the code to use the ILogger from Microsoft.Extensions.Logging.
* Removed custom NullLogger and replaced with Microsoft NullLogger from Microsoft.Extensions.Logging.Abstractions package.
2020-05-12 15:52:50 +05:30
Abbas Cyclewala
93d2547ac4
Update dotnetcore-build.yml ( #15 )
...
* Update dotnetcore-build.yml
* Update dotnetcore-build.yml
* Update dotnetcore-build.yml
* Update dotnetcore-build.yml
* Updated RulesEngine.UnitTest Project file
* Update RulesEngine.UnitTest.csproj
* Update dotnetcore-build.yml
* Update dotnetcore-build.yml
* Update dotnetcore-build.yml
* Update dotnetcore-build.yml
* Update dotnetcore-build.yml
* Update dotnetcore-build.yml
* Added code coverage badge
2020-05-11 15:56:53 +05:30
Dishant Munjal
63ecbe6a64
including exceptions scenario ( #2 )
...
* including exceptions scenario
* Unit Test Cases
2019-09-24 08:53:33 +05:30
Dishant Munjal
b960802bab
Initial Commit
2019-08-13 15:36:57 +05:30