The views PluginBase::defineOptions() is called upon initializing the plugin. It should provide defaults.
GoogleAnalyticsQuery::defineOptions() however calls google_analytics_reports_api_profiles_list(). This call is not cached and results in slow views, even when the view result is cached.
The call to google_analytics_reports_api_profiles_list() seems unnecessary.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2825785-2.patch | 989 bytes | casey |
Comments
Comment #2
casey commentedComment #3
othermachines commentedI can't for the life of me figure out why that would have been called in the first place (unnecessary carry-over from D7 perhaps). Anyway, patch in #2 applies cleanly and doesn't seem to have any affect on the views output. Thumbs up!
google_analytics_reports 8.x-3.x-dev
Drupal 8.2.7
Comment #4
rajab natshahComment #6
rajab natshahCommitted ... Thank you :)
Comment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshah#3102925: Add an automated testing for the [Google Analytics Reports] and API module