md-systems / crm_core

Drupal 8 port of the CRM Core module
https://www.drupal.org/project/crm_core
11 stars 10 forks source link

Reimplement Matcher with plugin instances support #12

Open mirodietiker opened 9 years ago

mirodietiker commented 9 years ago

The Matchers currently don't support instances and all forms just work for the default instances.

This needs a proper port to D8 plugin concept.

mbovan commented 9 years ago

I pushed changes that I made in the feature branch (feature/crm-core-arch-changes): Diff with CRM Core 8.x-0.x branch.

Here are the patches to apply on Collect and Inmail so it's easier to manually test changes by enabling collect_demo:

I'll try to summary changes from local commit messages:

There is some commented-out (Drupal 7?) code (e.g. in crm_core_match.test.inc) we should decide what to do with. Seems that crm_core_match\Matcher and crm_core_match\MatcherInterface are not used anymore but I didn't delete them as there are some methods that maybe we should move/implement to/in other classes.

Regarding tests, I didn't run any automatic test (tested manually), I guess there are lot of fails, especially for Unit/kernel tests, but the purpose of the first patch is to show an idea where we want to be at the end. :)

Waiting for review... @mirodietiker, @Berdir

Screenshot of Matchers overview page Matchers Overview page

The form for adding a new matcher Form for adding a new matcher

mirodietiker commented 9 years ago

Committed a followup from the plubin instances for collect integration: #21

Can we still close this issue or leave it open until #17 is fixed?