Allow items to be flagged multiple times by different users
| Project: | Flag content |
| Version: | 5.x-2.0 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
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.
| Attachment | Size |
|---|---|
| flag_content_store_user.patch | 6.26 KB |

#1
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
#3
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.