Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bunch of fixes to the standard timeseries
- convert get_sort_key to an instance method so that there can be separate implementations for the aggregate and user specific timeseries - handle the case in which there is no entry for a particular _id. but then where did we get the _id from? we never delete objects. is this a wierd hack that should be removed and investigated further? - deal with searching If there are no entries in the orig_ts_db or analysis_ts_db, return an empty list. Why do we deal with orig_ts_db and analysis_ts_db differently? In one case, we check to see if there are any keys, in the other, we just return all entries. - Also we only deal with the `sort_key is None` case for the analysis DB, which makes sense because we currently only aggregate analysed data, but may be good to fix correctly long-term - handle the case where the user_id for the entry is None by setting it to the current timeseries user_id. So we only raise the error if the entry has an entry and it is different
- Loading branch information