Skip to content
This repository was archived by the owner on Jan 31, 2018. It is now read-only.

[bug 1062436] Add flags app and Flag model#342

Merged
willkg merged 1 commit intomozilla:masterfrom
willkg:1062436-flags
Sep 3, 2014
Merged

[bug 1062436] Add flags app and Flag model#342
willkg merged 1 commit intomozilla:masterfrom
willkg:1062436-flags

Conversation

@willkg
Copy link
Copy Markdown
Member

@willkg willkg commented Sep 3, 2014

r?

@willkg
Copy link
Copy Markdown
Member Author

willkg commented Sep 3, 2014

This doesn't do much. Mostly just creates a new app with a single model that's got a m2m relationship with Response.

For a given response, we'll add "spam" and "abuse" flags. Then we'll have a view where we can do "show me all the responses flagged with abuse". This should provide all that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We talked about making the ManyToMany table with options for things like individual ids or something so that we could have multiple tags of the same type on one response. Did you decide to nix this or skip it for now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to go for "very simple" for now. I added notes to all the bugs talking about how this is ultra-simple and just for the prototype.

So the code that runs spicedham will flag with "spam" and "abuse". Then we'll have buttons in the analyzer view I'll write that will add "wrong-spam" and "wrong-abuse" which covers the false positive and false negative cases and lets us do reports like "what are all the responses that aren't spam, but were marked as spam?"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\o/ Just wanted to make sure this was a case simplifying things, instead of forgetting things.

@mythmon
Copy link
Copy Markdown
Contributor

mythmon commented Sep 3, 2014

This looks fine to me. I have a question about the M2M table, but assuming you left out the extra complications on purpose, r+. 🐹

@willkg
Copy link
Copy Markdown
Member Author

willkg commented Sep 3, 2014

Sweet--thanks! 🌈

willkg added a commit that referenced this pull request Sep 3, 2014
[bug 1062436] Add flags app and Flag model
@willkg willkg merged commit aaf19da into mozilla:master Sep 3, 2014
@willkg
Copy link
Copy Markdown
Member Author

willkg commented Sep 3, 2014

4f671e4 [bug 1062436] Add flags app and Flag model

@willkg willkg deleted the 1062436-flags branch September 5, 2014 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants