views filter and argument integration

lomz - December 2, 2007 - 18:53
Project:Scheduler
Version:5.x-1.8
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I read a issue for the 4.x-version of Scheduler that the latest version of it should support views, but i'm using 5.x and views, and I can't seem to find scheduler in views. how can I find it?

#1

greggles - December 9, 2007 - 16:25
Status:active» active (needs more info)

This is probably a views cache problem. Views field support has been added to scheduler 5.x-1.8 (I'm happily using it) but the views cache can get out of date.

On http://example.com/admin/build/views/tools you have the ability to clear the views cache. Can you do that and then look in the fields for scheduler entries?

#2

lomz - December 9, 2007 - 18:45

I found it, but it is just in the "fields" part of the view, is it possible to use it as a filter? if it is, or is'nt be scheduled?

#3

greggles - December 9, 2007 - 19:34
Title:Connecting with views» views filter and argument integration
Category:support request» feature request
Status:active (needs more info)» active

Changing title to reflect the feature request. I don't think there's another issue for this just yet.

#4

lomz - December 9, 2007 - 20:46

Is this somethings that is easy to fix?

#5

Eric Schaefer - April 25, 2008 - 17:53
Status:active» duplicate

Dupe of #245967: Add sort information for views which is fixed since yesterday

#6

Eric Schaefer - April 25, 2008 - 17:58
Status:duplicate» active

Aaargh. I should learn to read. The other issue is talking about sorting, not filtering...

#7

Eric Schaefer - April 25, 2008 - 19:13
Status:active» patch (code needs review)

OK, here we go.
diff'ed against scheduler.module 1.46.4.26

AttachmentSize
scheduler_views_filter.patch1.56 KB

#8

skiminki - April 28, 2008 - 10:01
Status:patch (code needs review)» fixed

There seems to be an timezone offset issue. Consider the following:

  • I live in +0300 and my test server is configured as such.
  • I have a node that has publish_on 1209386880 and timezone 10800. That is 2008-04-28 12:48:00+03:00
  • If I want to find exactly that node by publish_on view criteria, I need to set
    Scheduler: publish on Is Equal To 2008-04-28 15:48:00.

I.e. the timezone is applied twice. BTW, the same seems to apply to fields also. I hope I'm not alone with this :)

I think that this is inherent to the way Scheduler persists datetimes to the db. Scheduler persists them in localized time and not in UTC. I think that we need to change this in 5.x-1.14, which would also remove some timezone shifting/deshifting code in the scheduler. I'm going to write a new issue of this.

However, the scheduler_views_filter patch seems valid nonetheless and does not affect on application logic, so it's going to get included in 5.x-1.13.

http://drupal.org/cvs?commit=113290

#9

skiminki - April 28, 2008 - 13:17
Status:fixed» closed

In 5.x-1.13.

 
 

Drupal is a registered trademark of Dries Buytaert.