Problem/Motivation
Need to be able to store the api key using the key module (see issue https://www.drupal.org/project/sendgrid_integration/issues/2915575)
Need to be able to use the sendgrid api outside of the specific reports page.
Need to add subusers and bounce reporting.
Steps to reproduce
Try to set use sendgrid_integration_reports with the key stored using the key module, report fails.
Proposed resolution
Attached is a patch which moves the API specific logic out to a separate service, adds the key module logic to that service and adds some other functions for subusers and bounces.
Remaining tasks
Review
User interface changes
None
API changes
Api logic moved to Drupal\sendgrid_integration_reports\Api (sendgrid_integration_reports.api)
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | sendgrid_integration.3201043.6.patch | 27.52 KB | lambic |
| #5 | sendgrid_integration.3201043.5.patch | 27.84 KB | lambic |
| #2 | sendgrid_integration.3201043.2.patch | 27.65 KB | lambic |
| sendgrid_integration_reports.patch | 27.63 KB | lambic |
Comments
Comment #2
lambic commentedMissed a return on the 1st patch, so here's another.
Comment #3
perignon commentedHave you tried this with the 8.x-2.0 alpha releases?
Comment #4
lambic commentedI just confirmed the patch applies to 8.x-2.x, but I don't have the capacity to test with that version currently.
Comment #5
lambic commentedAnother new version of the patch to add subuser support to the three stats functions.
Comment #6
lambic commentedRealising now that injecting the key repository won't work for people who don't have the key module, so here's a patch using Drupal::service instead.
Comment #9
perignon commentedI put it into both 1.x and 2.x
Comment #11
yang_yi_cn commentedThis patch has a slight problem, which is that it's using
instead of
It will cause issues when you are using other logger modules replacing core logger. I'll create a new ticket.