You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I'm just getting started using JaVers, and wanted first of all to thank you all, it is really easy to use and configure.
There is just one feature I miss though, and that is the ability to use the like operator with the Commit Metadata properties.
Currently I have a commit property I wish to use as filter, the ideal scenario would be the user being able to type any part of said property, eg: Let's say there is a commit property 'name' with the value John Doe, in the use case I was building both 'John' and 'Doe' or even 'John D' would return the same data.
For now I would probably end up filtering this after bringing all the rows from the database, but I think it would be really cool( not to mention having way more performance) if this was part of the JQL spec.
From what I saw from the source code one way it could happen would be having a withCommitPropertyLike in the QueryBuilder class, that would render a 'LIKE %:property%' on the final SQL for the JaversSqlRepository, and it could translate to a simple String.contains for the In memory implementation.
The text was updated successfully, but these errors were encountered:
Hi again, I was feeling motivated so I played a little with Javers code and implemented this feature using the WithCommitProperty method as an example, and all unit tests are passing, so if its ok with you I can submit a PR