editing stories should create logs
Bug #712558 reported by
Christopher Adams
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PPL |
Fix Released
|
Medium
|
Bassel Safadi |
Bug Description
Adding or editing a story should create a new record in ppl_logs:
owner_id = [userid]
log_type = 1
created_at = CURRENT_TIME
message = [username] edited story_title
where "story_title" is the title of the story being edited
the log_type is 1 because from ppl_log_types, 1 maps to "Notice"
If the story is called "Jon is my friend", then on my dashboard I should see a log entry that reads:
christopher edited Jon is my friend
Changed in ppl: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Christopher Adams (christopheradams) |
milestone: | none → 0.2 |
description: | updated |
Changed in ppl: | |
assignee: | Brad Phillips (brad-bradphillips) → Bassel Safadi (bassel) |
description: | updated |
To post a comment you must log in.
Bassel's input was to first create a ppl_logs table. (Done).
Then create fields that insert a value for the four columns in ppl_logs:
owner_id- >ppl_log| SystemGOD: owner_id: value:[ userid]
etc.
If this approach fails, the other option is to create an event that calls a php script to do the insertions.