Needs work
Project:
Spam
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2011 at 17:06 UTC
Updated:
11 Jan 2011 at 19:47 UTC
Jump to comment: Most recent file
I cant think of a situation where this would be a bad thing ...
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | spam.patch | 2.06 KB | bleen |
| #11 | spam.patch | 2.06 KB | bleen |
| #2 | spam.patch | 495 bytes | bleen |
| #1 | spam.patch | 713 bytes | bleen |
| spam.patch | 497 bytes | bleen |
Comments
Comment #1
bleen commentedooops ... minor change to this patch
Comment #2
bleen commented... and now without the watchdog statement :)
Comment #3
gnassar commentedI really can't come up with objection to this either.
Anyone else see any reason not to do this? I'll leave it up for another day or two, and if nobody objects I'll commit it.
Comment #4
AlexisWilke commentedgnassar,
Is the "Mark as not spam" supposed to cancel the effects of a "Mark as spam"? As in, a Baysian computation reversal? I'm wondering of the side effects, although I guess what we're saying here is that either way the function would be called.
Thank you.
Alexis
Comment #5
gnassar commentedYes, "mark as not spam" should undo the tallies done in the Bayesian module when the content was first marked as spam.
Comment #6
AlexisWilke commentedThe you have my RTBC too. 8-)
Comment #7
jeremy commentedI agree that this makes sense, and agree it should be committed.
Comment #8
gnassar commentedOK, there's a little bit of a problem.
This should clearly only mark as not spam if the content is currently marked as spam. (Since we'll accidentally be effectively doubling up on the Bayesian training if something's already not spam, and just unpublished. I like the ability to train_as_spam as much as the next guy, but we sure shouldn't be doing it accidentally.)
So instead of just wanting:
we want:
Because as spam_content_is_spam()'s comment says,
The problem is: that's not actually true.
spam.module: spam_content_is_spam(), lines 96-101:
Obviously that should *not* be there.
The problem is, it's been there for a *while*. And I have no idea what breaks if we change that.
My initial temptation is: it's a dev build for a reason; let's fix it so it's right, and then if something else breaks because of it, we fix that independently.
But I'm not so sure that's a great idea. We're very close to a new beta build -- and we really do need one, pretty desperately. So I'm thinking instead that we should just push this entire issue until a beta-1.1 rollup and then we can mess with it.
How does this sound to you guys?
Comment #9
bleen commentedI havent really tested this ... but what about this to address #8.
Since this function is currently only called in one place, why not move that bit of logic out of the is_spam function?
Comment #10
bleen commentedComment #11
bleen commentedthe patch in #9 had some parens ou of place
Comment #12
gnassar commentedBecause that function would actually also be called for action and trigger code, which we're developing.
Plus, it's its own separate op hook in the API. It should definitely be in its own function.
The real solution here, I think, is fixing the function to do what it's supposed to do.
Comment #13
bleen commentedOh you and you're "lets do things properly" mumbo jumbo... :)