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