apigee / apigee-m10n-drupal

Add monetization features to a Drupal developer portal
https://www.drupal.org/project/apigee_m10n
GNU General Public License v2.0
13 stars 13 forks source link

Create view builder handler on custom entities #356

Open Spooky063 opened 2 years ago

Spooky063 commented 2 years ago

Is your feature request related to a problem? Please describe. On my back-office, I created one field Entity reference for product bundle and one field Entity reference for rate plan.
On my fields data, I have a specific name nomenclature (example: job1_productBundle1, job1_productBundle2, job2_productBundle1, ...) and I would like to filter select list with a custom regex pattern.
At the moment, it is not possible to do this.

Describe the solution you'd like I would like to create an entity reference view to list entity data with custom filter on select list.

Describe alternatives you've considered I have no other alternatives to solve my problem

Additional context None

shishir-intelli commented 2 years ago

@Spooky063 , Can you please share us more information on this, like steps to test the scenario. Also can you share us the views export.

Spooky063 commented 2 years ago

I can't export the view to you because I can't create it. That is why I created this issue.

Steps to Reproduce

  1. Go to administration page
  2. Update/Create a content type
  3. Add a new field of type Reference - other (Entity reference)
    1. Type of item to reference: Apigee Edge - Product bundles
    2. Allowed number of values: Limited to 1
    3. Save field settings
  4. On Reference type section
    1. Reference method: choose Views: Filter by an entity reference view option
    2. Then, you can selected a view with type Entity Reference display to render Product bundles entities but impossible to render this view because product bundles are not available on view

I want to be able to create a view to filter the product bundles that I want to see in the list on my back-office.

shishir-intelli commented 2 years ago

@Spooky063 , Thank you so much for your contributions. Yes you are right, at present those entities are not available on views. We are currently working on a few projects that we nearing completion. Once we are done with those, we would love to include it in our next sprint and work on it. We will keep you posted when we are ready to get started on this.