-
Notifications
You must be signed in to change notification settings - Fork 10
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
Reimplement Matcher with plugin instances support #14
Conversation
@@ -0,0 +1,9 @@ | |||
langcode: en |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really useful to still have that default module? Maybe we should just merge everything into the match module?
I don't know crm_core very well. Those three types are just default config too I guess, there could be others. Do they really still make sense to have, especially without actual configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at what's left in the default module:
- crm_core_default_matching_engine.permissions.yml sounds like it can be dropped anyway.
- crm_core_default_matching_engine.module is all dead code too I think.
- tests/src/Unit/Plugin/crm_core_match/engine is in a really weird place anyway :)
So other than the field match plugins/manager, nothing left. definitely seems like a good idea to just drop that module to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default configuration is used by Collect (demo), not sure either does it need to be removed.
Dropped the crm_core_mdefault_matching_engine module.
All useful code was moved to crm_core_match (including ReadMe.txt which I appended to the crm_core_match read me file.
Nice work! |
21b3560
to
195e064
Compare
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
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... |
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. 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. |
|
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: |
Reimplement Matcher with plugin instances support
PR for #12
Can't comment on the diff, so opening the PR for that :)