Using filters on view changes order values

EllenM1 - April 28, 2009 - 19:51
Project:DraggableViews
Version:6.x-3.2-beta5
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Hi, I'm using the very latest 6.x-3.2-beta5, just downloaded today. As far as I can tell, if I get everything set up just so by dragging items around, then another user uses filters, it changes the sort order for everyone. I've tried this several times:
Administrator changes sort order then saves. I confirm using another user that the desired sort order is in effect. The user fiddles with filter settings then hits "apply" to see a filtered view. All the order values have now been changed.

#1

EllenM1 - April 28, 2009 - 20:15

I've attached two pictures. Picture 6 shows the order values before the user filters the view. Picture 7 shows the order values after the user filters the views. I think changing the filters should not change the order values.

AttachmentSize
Picture 6.jpg 68.1 KB
Picture 7.jpg 69.1 KB

#2

sevi - April 28, 2009 - 21:51

Yes, you're right. That's just the way it works. I also thought about this effect a long time.
I ended up with:
Filters should only be used if nodes don't appear more than once in different filter states. In this case you actually use filters to split the view in many logical derived views.
If you want to filter the content without any restrictions you may not use DraggableViews for this display.
I'll mention this in documentation.

How do you think about this point of view?

#3

EllenM1 - April 29, 2009 - 01:16

I'm not sure I completely understand, but let me see...

How about this: the Order value is set by people who have the permission to set it. The sorting OF those values is set by anyone with access to the filters, and is displayed only to that person who set it. Other people start off with the default sort.

So let's say I have

item 1 - order value 1 - category A
item 2 - order value 2 - category A & B
item 3 - order value 3 - category B
item 4 - order value 4 - category B
item 5 - order value 5 - category A
item 6 - order value 6 - category A

The default sort is on the order fields, ascending.

I'm a user, I come along and filter by category so I see only category A.
I see:
item 1 - order value 1 - category A
item 2 - order value 2 - category A (& B)
item 5 - order value 5 - category A
item 6 - order value 6 - category A

I can sort that list any way I want, by order field, or if allowed, by clicking columns to sort by other columns, and it will NOT affect the order value. Thus it will not affect any other users.

Then if another users filters by category B they get:

item 2 - order value 2 - category (A &) B
item 3 - order value 3 - category B
item 4 - order value 4 - category B

and they in turn can sort however they want.

I'm probably not understanding something crucial, but I think my way might work. Otherwise, please add in a second order field that WOULD remain constant and act like what I am suggesting.

This is a great module, I really appreciate it. Thank you!

#4

opensanta - April 29, 2009 - 02:22
Component:Code» Documentation
Category:bug report» support request

documentation, right?

#5

EllenM1 - April 29, 2009 - 02:32

No, I don't think documentation will do it - at least for me.

#6

EllenM1 - May 9, 2009 - 14:49

I resolved it by switching to the node-order module.

#7

sevi - May 10, 2009 - 16:28

I still don't know what you want to be improved.
Saving an unique order for each kind of filtering..simply doesn't make sense.

If you change the view (and this is the case when you use filters) then you change the order values of the nodes.

#8

sevi - August 15, 2009 - 16:25
Component:Documentation» Code
Category:support request» feature request
Status:active» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.