- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 199
Enumerable filters project #464
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
base: main
Are you sure you want to change the base?
Conversation
| @sebastienros Can you give a review for this one? | 
| @copilot add a README.MD at the same level as the new project (not the tests) describing its goals and usages. | 
| @deanmarcussen There is a compilation bug with this one. I fixed it locally. Want me to update your branch? | 
| 100% @Skrypt | 
| ok, probably just due to a change in Parlot, I'll try and make time today to pull and do the same fix | 
| build fixed @Skrypt | 
| @sebastienros While I can't promise that a PR will be done shortly for Orchard Core to show usage of this feature. Can we merge it for a future release still? I believe we need to merge this first anyway. Else, I need to keep that code in a custom module in OC. Here is the related WIP branch: https://github.com/OrchardCMS/OrchardCore/tree/skrypt/shortcodes-filter | 

This introduces a
Enumerablefilters project which allows projecting an enumerable into a Filter Parsing arrangement, much as we can do with anIQuerycurrently.Filtering on an
IEnumerableis useful, for the case where we are using a single SQL document, i.e. like aTemplatesDocumentwhere the items we want to filter on are contained in a dictionary, or list.You may or may not want this in the YesSql project :) but I'm using it internally, so figured it was worth pushing up somewhere.
Note: There seems to be a slight bug in Partlot compilation which is causing the tests to fail randomly. I assume it's related to initialization, when initializing in parallel. Only applies to complied parsers.
I'll open an issue there to go with