Closed (fixed)
Project:
Administration Views
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2012 at 11:33 UTC
Updated:
5 Jul 2012 at 06:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
sunHm. I'm not sure whether this makes sense.
With admin_views, the separate "Approval" page makes little sense in general. Even less, if you take into account that the entire "approval" state for comments is nothing else than published and unpublished in reality. Unpublishing a comment unexpectedly means to "disapprove" it, and makes it re-appear in the list of comments to approve (moderate). That's completely nuts and I've no idea why core chose to use a terminology that implies (moderation) business logic that doesn't exist.
I definitely want to retain the exposed filter for the publishing status on the main comments view. (should be consistent with the node and user views.)
That's not to say we cannot also replace the approval page with a view. Despite being generally needless, it might be unexpected for some to not see a view there.
Comment #2
damiankloip commentedYep, sure. That is more the point I was getting at; The comment/approval page should also be a view. So on the main comments page we can keep the exposed filter for state, and then have a view that only shows unpublished comments? I agree, core should either not have this, or have something a little more extensible for Approvals, rather than just a published/unpublished state.
Comment #3
damiankloip commentedSo essentially we keep the current admin view for comments but just add another display for the comments/approval page?
Comment #4
sunThe funny tidbit is that in an ideal world, we'd just make that second tab execute the page handler for the first tab, and merely append the query string
?status=0before doing so... but sadly, that would be a hack.If you think there should be a separate view on the approval page, then sure, we can do that.
For simplicity of maintenance, I'd perhaps leave the exposed filter for status on it? I'm a bit concerned about proper maintenance + updates for the (overridden) filters and exposed filters in the future. (It's a bit sad that Views immediately overrides the entire stack of filters, even if only a single filter override is desired.)
Comment #5
damiankloip commentedYes, it would be nice to be able to set the default filter without having to hack a query string to the path.
Here is a new patch, both views are the same except for the default filter values.
Comment #6
sunok, I didn't actually test, but this looks good to go.
Speaking of tests, do we want to add some simple automated, so we don't have to check manually that these two pages are working and are showing what they are supposed to show? :)
Comment #7
damiankloip commentedThat sounds sensible :) Shall we do this in this issue as one patch? or another? Also, I'm not sure of the best way to test this. Any pointers would be appreciated.
Comment #8
sunI'd say something simple like this?
Didn't do Node. But left some @todos on exposed filter names...
Comment #9
sunoops. of course, that locale default admin view file shouldn't have been in there ;)
Comment #10
damiankloip commentedha, sure. I will remove that file and commit to 7.x, as we are happy with the view and we have some passing tests for it. I can then add some more tests for node in a follow up, as it probably feels a bit left out now :)
Comment #11
sunCan we also fix those exposed filter names quickly before commit? (since we're touching the filter definitions anyway?)
Hm. But hold on... why are the filters duplicated for the first system display?
Also, do we really have to default the published status to 1 on the main comments view?
Comment #12
sunSo how about this? :)
Comment #13
damiankloip commented@sun, do you mean change the names of the filter ids? And yes, I will change the main comments view default to all.
Comment #14
suneh? Did you see #12 ? ;)
Comment #15
damiankloip commentedDamn you cross posting! :)
Comment #16
damiankloip commented@sun, unless you have any objections, I think this is ok to be committed now?
Comment #17
sunYup, let's go ahead with this :)
Comment #18
damiankloip commentedok, committed to 7.x.