When we added the dashboard, we provided settings for disabling fetching messages and the toolbar link should they interfere with a site. However, in certain high-volume stores, the summary reports (e.g., most sold products) or prior period comparison queries may time out or otherwise run out of resources. Not sure how detailed we need to go here - could theoretically add a setting for everything, but we should at least add them for the top 4 items:

  1. commerce_dashboard_show_prior_period_comparison
  2. commerce_dashboard_show_sales_this_year
  3. commerce_dashboard_show_product_report
  4. commerce_dashboard_show_promotion_report
  5. commerce_dashboard_show_sales_this_month
  6. commerce_dashboard_show_sales_this_week
  7. commerce_dashboard_show_sales_today
  8. commerce_dashboard_show_store_selector
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rszrama created an issue. See original summary.

rszrama’s picture

Issue summary: View changes
jsacksick’s picture

Status: Active » Needs review

Only setting name that I changed is:
"commerce_dashboard_show_sales_today" to "commerce_dashboard_show_sales_this_day", as the setting varialble name is built dynamically for all periods.
We could also rename the period to "today" instead of "day", but that would still mean having special handling for this period when building the setting key.

jsacksick’s picture

  • jsacksick committed ea91996d on 8.x-2.x
    Issue #3412349 by jsacksick, rszrama: Add individual settings to disable...

  • jsacksick committed 7bc6c1cc on 3.0.x
    Issue #3412349 by jsacksick, rszrama: Add individual settings to disable...
jsacksick’s picture

Committed!

jsacksick’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.