Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8218

my cases dashlet - caching conflicts with user-specific data

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2.5, 3.3.6, 3.4.alpha, 3.4.beta, 3.4.0, 3.4.1, 4.0.0, 4.0.1
    • Fix Version/s: 3.3.7
    • Component/s: CiviCase
    • Labels:
      None

      Description

      the "my cases" dashlet is intended to display case records for the logged in user.
      however, we only store a single cache for the dashlet (content column in dashboard table)

      so if contact A refreshes the dashboard, and contact B then views the dashboard – they see my cases for contact A until they refresh again (which then throws off contact A)

      this basically renders the my cases dashlet useless (and potentially compromises privacy)

      i think there are two potential approaches:

      • we probably should be caching the reports in civicrm_dashboard_contact. that would allow for contact-specific caches, which could also be import if some reports have ACL-based limitations
      • it might be useful to have a parameter that can be assigned within the dashlet report file that disables caching for a specific report. that way developers can decide a given report is always pulled in realtime

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5 hours
                5h
                Remaining:
                Time Spent - 4 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 4 hours Remaining Estimate - 1 hour
                4h