Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RQL (part 1) - Match and search expressions #166

Open
wants to merge 20 commits into
base: release-3.0.0
Choose a base branch
from

Conversation

luispfgarces
Copy link
Contributor

@luispfgarces luispfgarces commented May 19, 2024

Description

Creates the Rule Query Language core language on top of the Rules.Framework rules engine, adding support for match and search expressions.

Some examples of the language usage (using the integration tests scenario 8 - poker combinations):

MATCH ONE RULE FOR "TexasHoldemPokerSingleCombinations" ON $2023-01-01Z$;

match one rule for "TexasHoldemPokerSingleCombinations" on $2023-01-01Z$ when { @NumberOfKings is 1, @NumberOfQueens is 1, @NumberOfJacks is 1, @NumberOfTens is 1, @NumberOfNines is 1, @KingOfClubs is true, @QueenOfDiamonds is true, @JackOfClubs is true, @TenOfHearts is true, @NineOfSpades is true };

SEARCH RULES FOR "TexasHoldemPokerSingleCombinations" SINCE $2023-01-01Z$ UNTIL $2023-01-31Z$ when { @NumberOfKings is 3 };

search rules for "TexasHoldemPokerSingleCombinations" since $2023-01-01Z$ until $2023-01-31Z$ when { @NumberOfAces is 5 };

It is also added a simple RQL commands prompt to the Web UI (sample image using the Web UI sample on the solution).

rql-screenshot

Related to #152.

Change checklist

  • Code follows the code rules guidelines of this project
  • Commit messages follow the commit rules of this project
  • I have self-reviewed my changes before submitting this pull request
  • I have covered new/changed code with new tests and/or adjusted existent ones
  • I have made changes necessary to update the documentation accordingly

Please also check the I want to contribute guidelines and make sure you have done accordingly.

Disclaimer

By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement

@luispfgarces
Copy link
Contributor Author

jorgedgodinho
jorgedgodinho previously approved these changes Jun 14, 2024
jdromeiro
jdromeiro previously approved these changes Jun 14, 2024
@luispfgarces luispfgarces changed the base branch from master to release-3.0.0 June 23, 2024 14:53
@luispfgarces luispfgarces added this to the Release 3.0.0 milestone Jul 10, 2024
@luispfgarces luispfgarces force-pushed the feat/152/rql_p1_match_and_search branch from 7a09d74 to da6a4ff Compare November 15, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants