My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 7: Event Status
1 person starred this issue and may be notified of changes. Back to list
 
Project Member Reported by m...@umbc.edu, Oct 1, 2012
There could be value in taking event status and changing it from an integer and making it into models.


Status(model.Model)

Status_Change(model.Model)
  status = models.ForeignKey(Status)
  createdOn = models.DateTimeField(auto_now_add = True)
  createdBy = models.ForeignKey(User, related_name='_createdBy')

This way you can pull a log of the status changes to have a running log of status changes.  I did notice the fields

    createdBy = models.ForeignKey(User, related_name='event_createdBy')
    createdOn = models.DateTimeField(auto_now_add = True)
    editedBy  = models.ForeignKey(User, related_name='event_editedBy')
    editedOn  = models.DateTimeField(auto_now = True)

Alternatively we could create a log to log Event changes.

Oct 1, 2012
Project Member #1 m...@umbc.edu
(No comment was entered for this change.)
Status: New
Oct 1, 2012
Project Member #2 SabreCap...@gmail.com
Potentially, but I'm not 100% sure of the value of having a log of the changes. All the events will eventually cycle through all stages. Additionally, the status integer is currently not being used by a majority of the system, only in a few small parts. It is expected that the meaning of this integer may change. For now, let's leave it the way it is and revisit it later.

Powered by Google Project Hosting