so thank you again for resolving the hanging issue - it is working perfectly...i'd like to use this not only for myself, but also open to outside users (registered users only)
is there a way to delete entries from a growing log, particularly if it gets huge and unruly (not sure how many items appear on a page by default, or if it automatically paginates or whatever)
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 323506-17.patch | 5.5 KB | jody lynn |
| #17 | 323506-17.patch | 5.5 KB | jody lynn |
| #15 | 323506.patch | 4.11 KB | jody lynn |
| #13 | feedback-323506-13.patch | 3.61 KB | tim.plunkett |
| #12 | 323506.patch | 3.31 KB | jody lynn |
Comments
Comment #1
sunWell. Deleting feedback messages is not yet possible currently. You can mark feedback items as closed, so they are moved into the lower fieldset/table. Both tables use pagination if there are more than 50 items in a table.
The idea was to store feedback messages infinitely for later reference and (later) possible user integration/interaction, i.e. displaying own feedback items in a user's profile and communicating that a feedback led to improvements.
However, I can see the need for deleting Spam submissions...
Comment #2
zilla commentedhmm, maybe a simple mark as spam that "hides" the item?? i can't imagine that the table will ever get ridiculously huge because the typical feedback is so tiny (maybe if it gets to tens of thousands of items?)
and then spam could just be a sort of archive - hidden from screen view but really just 'processed and not displayed' with an admin option to view items marked spam
(could be called "hide for now" or "archive" or something more general since it may not be confined to spam...
Comment #3
smithn.nc commentedSun, I just wanted to see if anything ever became of this. I was looking into adding this on one of my projects, but deleting spam entries seems like something that'd be nice to have, first. :)
Comment #4
Witch commentedsubscribe
Comment #5
asood99 commentedSee the post by asood99 at http://drupal.org/node/675092
I hope it works for you.
Comment #6
univac commentedI would need the possibility to configure the deletion of processed messages which are older them x months.
Hope this feature is going to be accepted.
Bye for now,
univac
Comment #7
jody lynnComment #8
jody lynnThis patch adds a delete callback for feedback entries with a delete confirm form and adds a column for delete links on the feedback report. I want to finish this up by cleaning it up a bit and adding a delete link from the individual feedback entry view page.
Comment #9
jody lynnComment #10
charos commentedThis patch is for 7.x-2.x-dev or for 6.x-2.x-dev?
Comment #11
jody lynn7.x. See the version at the top of this page.
We are doing all new features in 7.x first. I'm not really interested in working on backporting to 6.x but once the feature goes into 7.x backport patches will be accepted.
Comment #12
jody lynnThis should be good to go.
Comment #13
tim.plunkettSince there is now a deleted column, needed to change the colspan when there are no messages from 5 to 6.
Otherwise, the patch worked great, so I'm going to mark RTBC
Comment #14
sunLet's use #type 'link' here.
$form must not be reset to an empty array.
Description should be replaced with NULL.
Cancel can be omitted.
Missing period/full-stop.
Missing t().
"view full" should just be "view".
Lastly, thinking ahead, we should render a #type 'links' here.
Powered by Dreditor.
Comment #15
jody lynnChanges from above
Comment #16
sunDo we need the entry ID publicly accessible (and thus changeable) in the form?
If not, let's use #type 'value'.
Should be NULL. Otherwise, this string is extracted for translators.
Did you check whether we actually need to preemptively invoke drupal_render()? If we don't have to, let's pass on the raw renderable array (which is absolutely always preferred for D7).
Powered by Dreditor.
Comment #17
jody lynnNew patch with above feedback feedback
I jiggled the feedback_format_message calls to delay rendering
Comment #18
mikey_p commentedLooks like you're patch failed to attach for some reason.
Comment #19
sununfortunately, something went wrong with the last upload
Comment #20
jody lynnComment #21
sun1) Missing () after function name.
2) For form constructors and callbacks, ideally always follow the example code snippet on visible http://drupal.org/node/1354#forms
"Menu callback" is technically not correct, menu callbacks are only functions that are defined as 'page callback' in hook_menu().
This can be fixed quickly prior to commit.
This is definitely an improvement, but usage of #prefix and #suffix as in this case isn't particularly clean. We can commit this change, but may want to create a separate issue to improve the themeability of feedback messages.
I guess a cleaner way would be to have separate subkeys for 'submitted' and 'body' per message.
It would also be beneficial for other modules and themes to have the raw $feedback readily available in
$form['messages'][$fid]['#feedback'] = $feedback;Lastly, the 'submitted' should probably use
t('!feedback-author !feedback-date:')If you'd like to do these adjustments in this patch, go ahead :)
Powered by Dreditor.
Comment #22
sunDo we want to add a quick+simple test for this functionality? Leaving up to you to decide, might be beneficial.
Comment #23
jody lynnI made the above changes, added a test and committed.