farmx009 / UMM3601ursamajor

Old Iteration
MIT License
0 stars 0 forks source link

Update "status" field in mongoose schema #1

Open farmx009 opened 9 years ago

farmx009 commented 9 years ago

If we really want to do color changes in the view based on the status of a submission, using text might not be the best choice. A better option might be using a json object with an integer representing the "stage" of progress, and a string of "flavor text" specified by the person updating the status.

IE:

status:{num: Integer, text: String},

status:{num: 1, text: "Awaiting Review"},

status:{num: 4, text: "Awaiting review of final edits"},
joethe commented 9 years ago

Added it with some alterations. Rather than what is suggested, I ended up going with:

status:{strict: String, text: String},

Where the "strict" field is one of a few specific strings that reviewers/admins can choose from which determines color coding / sorting, and "text" is a short string allowing elaboration on the status.

list

details view