Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Aug 2009 at 10:59 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerI thought i did the attachment :)
Needs also review.
Comment #2
dawehnerSo i use db_query instead of drupal_write_record
Comment #3
stborchertWithout testing its functionality (and hoping I did understand what it does) I'd say the patch really looks good.
Great work!
Comment #4
Island Usurper commentedI tested the patch a bit, and nothing broke. :) A couple of dpm() calls showed the $view being loaded from cache or views_get_view() at the appropriate times.
I think it makes sense for the views_object_cache table to be removed from the schema. I also think making views.module dependent on ctools is the right move since we require its table in the update function. It doesn't make sense to put that update function in views_ui. I hope I've added the schema change correctly to the patch.
I'm not sure about using batch API for the update. I may be naïve in thinking that there are very few sites with more than a couple hundred views to update. Though I can also see how each row in views_object_cache can contain a large amount of data.
Comment #5
dawehnerAdditional viewsobjectcache does only store the unsaved views in the ui.
Comment #6
dixon_If this introduces a dependency on CTools (which is a good thing), this should also be reflected in views.info with
dependencies[]. Or did I miss something here?Comment #7
dawehnerHere it is :)
Comment #8
dawehnerThe patch still applies clean. This path is quite simple, so i would like to have some people have an eye on it.
Comment #9
merlinofchaos commentedThe only reason I haven't applied this yet is that I'd been holding off on introducing the CTools dependency until the last possible minute, since once it's in that's kind of a no-going-back thing.
That said I think we're actually pretty much at that point, so I'll take a look at that when I've got the pluggable pagers patch ready to submit.
Comment #10
dawehnerThis patch does not apply anymore
Comment #11
YK85 commentedsubscribing
Comment #12
dawehnerJust a rerole of the patch.
Comment #13
dawehnerThis probably will not happen in views3 on drupal6.
Comment #14
dawehnerCommited in d7.