Allow items to be flagged multiple times by different users

neclimdul - February 23, 2007 - 00:21
Project:Flag content
Version:5.x-2.0
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs work
Description

I've almost fleshed out storing the uid of the user. I took some liberty in this patch and added a couple things that start to make sense with this new feature outlined at the bottom of this post. I'm perfectly happy splitting some of these features and changes out of the patch just providing them for testing purposes.

I haven't tested the postgresql conversion as I don't have a pgsql server setup but sammys said that it looked right. Better than nothing. Hopefully somebody can confirm it works.

I also haven't gone over the patch with a fine tooth comb as I've been pretty busy but hopefully someone can give it a look over and confirm everything works for them. It seems to be working.

New features:

a) make the operations on the flag content overview a little easier to add and separate.
b) add a flag overview page so we can see what users have flagged the node.
c) added a count of the number of flags to the overview.

AttachmentSize
flag_content_store_user.patch6.26 KB

#1

kbahey - April 8, 2007 - 19:37
Version:5.x-1.x-dev» 4.7.x-1.x-dev
Status:needs review» patch (to be ported)

I changed the schema to have a uid field, and to have it display for the admin list.

It does not allow multiple flags by several users yet.

Need to be ported to 5.x.

#2

kbahey - April 9, 2007 - 02:57
Version:4.7.x-1.x-dev» 5.x-2.0
Status:patch (to be ported)» fixed

#3

kbahey - April 9, 2007 - 03:05
Title:Add support for storing the flagging user» Allow items to be flagged multiple times by different users
Status:fixed» needs work

Reopening this issue.

Now that we have the key as auto increment, and we store the uid, we can have multiple flags for the same item.

It would be helpful to have things like:

- Number of flags for each item.
- Who flagged it.
- All flags of different items by the same user.

These would be really nice to have features, for the -2.x version of course.

 
 

Drupal is a registered trademark of Dries Buytaert.