Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: casey at SWIS commentedComment #3
othermachines CreditAttribution: 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 Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #6
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedCommitted ... Thank you :)
Comment #7
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #8
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #9
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #10
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commented#3102925: Add an automated testing for the [Google Analytics Reports] and API module