Closed Berdir closed 9 years ago
Nice work!
Pushed the latest changes. Most of the @Berdir's suggestions are applied. Some part of them are skipped and set as todo's for followups. I added replies on the feedback comments. They are hidden now as diff is outdated. :D
Patches to apply for Collect and Inmail
Regarding tests, FieldMatcherTest is pasing, fixed some parts and commented out most of the code in DefaultEngineTest and MatcherTest classes. We have to see what we can use/need from those tests...
Followups: #17, #18
Did a manual test...
After saving a matcher, the system states "The configuration has been saved." without any reference to the matcher saved. But i'm still on the matcher add form... So either a redirect is missing to the edit form, or to the overview form.
The threshold value (required) is not saved. I don't know why, but i can only enable the field name (string) to match. All others are disabled.
Other than creating a matcher, i don't know how i can test a matcher. Did you already provide the collect integration? I like to test it.
@mirodietiker:
Updated Collect patch (loading a matcher from configuration instead of hard-coding to inmail_individual) with these changes and changes made in Remove event-based processing issue:
PR for #12
Can't comment on the diff, so opening the PR for that :)