Various suggestions for improvements

FrankT - October 1, 2009 - 17:16
Project:Content Management Filter
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

One big think I would like is to be able to remove any filter criteria (and not only the last one). This could be a major change for a 3.0 version.

I also suggest to add some checks:
- It is possible to add an empty title or body which makes no sense. (Doing this even seems to occassionally prevent other filters to be added (I also obeyed an error about an illegal selection), but not to be reproduced.)
- It is possible to add a 'created before' that is before a 'created after' which would cause to have no matches
- If node status is published, a additional filter node status is unpublished should be prevented, too. Same with start page and sticky
- If a user is selected, the user status should be omitted as an additional filter (the selected user already has a defined status)

#1

NancyDru - October 1, 2009 - 20:31

If a user is selected (either way), role should also be omitted. This is easy and I have already done this (not committed yet).

Also: if a role is selected the user lists should be limited to users in that role.

I have gotten it to disable the status pairs (e.g. published, not published) but am looking at how to make this more generic in case any other filter has similar exclusive options.

#2

NancyDru - October 1, 2009 - 21:45

Okay, I now have it check the title and body values for empty.

#3

NancyDru - October 17, 2009 - 14:47

I committed what I have so far. The date validation is hard to figure out. Unfortunately I may not be able to finish this.

#4

FrankT - October 20, 2009 - 16:31

Hi Nancy, I updated to the latest dev and startet to select nothing but 'created after' with nothing else selected (so 01.Jan.2009 should be used?). It caused an error 'This value may not be empty.' which is wrong here in my eyes. After that even a reset didn't help.

I also trief with an empty title, same result.

By the way: I suggest to replace the criterion label 'user list' by 'user'

About the date: I don't know exactly what the difficulty is (probably it's the relation between created before and created after). Would it be OK to just deny an 'illegal' date, in other words, if 'created after' has been set, a 'created before' earlier would just need to be denied. I also think that denying a 'created after' in the future is not a difficulty (not mentioned so far).

The rest of of the suggestions seem to work as intended. Thanks for your work.

#5

FrankT - October 20, 2009 - 16:33

Just another thing has come up: if all three (of six) possible node statuses have been used, an empty select field remains instead of causing the criterion to vanish.

#6

NancyDru - October 22, 2009 - 04:25

Maybe the next maintainer can finish this.

 
 

Drupal is a registered trademark of Dries Buytaert.