Closed (fixed)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
10 Sep 2009 at 22:15 UTC
Updated:
16 Dec 2009 at 00:30 UTC
So when a activity is recorded, if no access records are written the activity might not show to the user. This is because the View can have Activity Access filters turned on, thus getting an INNER JOIN activity_access.
Not that long ago we decided to not record activity access record for current user instead that filter (activity_views_handler_filter_uid_access) uses the activity table.
I propose we revert that change and insert in a grant for the creator of the activity.
Comments
Comment #1
Scott Reynolds commentedThis is pretty rare. Happened only for custom code...
Comment #2
Scott Reynolds commentedActually not rare at all. So if you were to use the user insert template, this will happen. That message will never show when ever you use an Activity Access filter.
Comment #3
Scott Reynolds commentedneed to essentially roll this back #408904: Remove the unneeded access table row
Comment #4
Scott Reynolds commentedhttp://drupal.org/cvs?commit=296548
I looked at instead using LEFT JOIN. And I looked at the explain and they were identical. Now of course, with Views you can create different queries and some might be bad this way. But I believe my query is a representative of the 80% use case, and I think it will probably be hard to create something that will be faster with an INNER JOIN and another Access record per Activity.