Page MenuHomePhabricator

Implement an archiving mechanism for completed questions
Closed, ResolvedPublic456 Estimated Story Points

Description

Figure out a way to archive completed questions in the system.

Event Timeline

For filenumber sets with (-d)one files indicating completion of a
recommendation, we can append them all to a log file that we rotate weekly,
with headers indicating their original filename and timestamp, in -q, -a,
-r, -e, -o, -t, -d order. (Priyanka is that the correct order?)

Jsalsman set the point value for this task to 456.

@prnk28 please log all files on f.close() AND (this is new!:) add all GET accesses to the same log which rotates daily.

The weekly logs will be the (-d)one file sets.

Don't delete any files for the time being.

There is a new directory /logs for logging.
There are two types of log files:

  1. activity-yyyymmdd -- logs info such as token, ip, qnum, qtype, request method after every GET and POST request in /ask, /answer, /recommend
  2. results-yyyymmdd -- logs qnum, all associated qtypes with modtimes after POST on /recommend

commit is here