-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat(filters): add StartsWith/EndsWith (a*z
) filter combo
#1530
Conversation
Run & review this pull request in StackBlitz Codeflow. |
@zewa666 first PR to add a new Things to note though, I don't think this new operator should be added to the compound filters, because the only way to say that it's a startsWith/endsWith string is really to write |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1530 +/- ##
========================================
+ Coverage 99.8% 99.8% +0.1%
========================================
Files 198 198
Lines 21621 21633 +12
Branches 6951 7089 +138
========================================
+ Hits 21560 21572 +12
+ Misses 61 55 -6
- Partials 0 6 +6 ☔ View full report in Codecov by Sentry. |
@zewa666 I'm not sure what would happen if we type
|
to be honest I'm not sure. on one hand its overkill for a simple client side filter. on the other hand since SQL supports this natively with LIKE it could cause a in all honesty, I think you went waaaay over the stretch goal to answer the original SO question, so I'd keep it at the state you have and call it a day. It can always be improved later on. BTW, do you have a rough estimate on when you're planing to release the new major both for universal and angular, absolutely no pressure here just curious? I wonder whether I should wait for that or do an interim update for my app. heck you're so damn fast with new releases I'm already 3-4 behind 🤣 |
Yeah I also think it's probably overkill to go that deep into a simple input text filter and yeah I know I went over the top with the SO question but I was kind of curious at the same time and thought we should support at least
I'm waiting for Angular 18 which is scheduled for next week, I hope that they won't have any delay though (which happened in the past). Since I already release 5.0 here and the new stuff will be under 5.1, I'm thinking of pushing 2 successive releases of Angular-Slickgrid to be on the same minor as Slickgrid-Universal (unless I figure out how to force |
also the reason I'm waiting for Angular 18 is not just because it's nearby but mainly because I don't expect to ship that many (if any) major versions in the future (since I consider to be pretty much feature complete and done after 7 years, it's about time), so I think it's better to stick with latest Angular if possible (that is why I decided to wait few weeks for Angular latest version) There's a new issue opened in SlickGrid asking for Pivot Table, but personally I think that's over the top and I won't work on that kind of things when user can simply Export to Excel and execute the Pivot Table in Excel. It's always the fact that when you give a candy, not only do they ask for more but they often ask for the entire cookie jar for free of course 🤣 Anyway, I like that you made so many contributions to the project, there aren't that many who take the time to contribute 🥇 |
glad to hear you're happy with your journey. Pivot tables indeed would open up a whole new array of issues but never could fully compete with PowerPivot so no point in that. Besides having focused on the OData provider I at least can generate the metadata file and feed the same source directly to PP. Best of both worlds 💪 to be honest your intro to the OData backend opened up a whole new range of possibilities which make the overall development so much better. Just today I've updated as an example the ngSelect custom filter to allow selecting multiple filter items and it was mereley switching the default operator from eq to in and boom it just works. still mindblown about that one I plan to focus next week more on our custom foreign key editor/filter/formatter. while doing so and trying out new apis its easier to spot a couple little gotchas and fixing them on-the-fly is a win-win. let me just say again that I'm super grateful for your determination and your focus on quality. its a joy working and contributing to such a great OSS project and learning new things while doing so |
indeed it's a long journey and I learned quite a lot, also happy to hear that these backend services were not just useful but also brought auto-magic in some ways hehe. 🐰 |
TODOs
Ta*10*
, that probably won't work, should we support that?Ta*10
but that's ok, I won't support more complex scenarios like this one.*
symbol