SuccessChanges

Summary

  1. Return a blank cursor instead of an empty iterator if there are no (commit: 14aa503b06f98f660bbbc01cc927e7888f704eac) (details)
  2. Add a standard function to insert elements into the cache series (commit: 87042f1e0bfd44657a0846ccadb9fb9dd7b89665) (details)
  3. Change the multi user scripts to also account for the usercache (commit: c26ebf6ed6c8c54ce3dbdc715d03ae869e066e53) (details)
Commit 14aa503b06f98f660bbbc01cc927e7888f704eac by shankari
Return a blank cursor instead of an empty iterator if there are no
matches
If there are no matches for a particular query, perform an invalid query
and return the resulting empty cursor instead of an empty list iterator.
This allows us to use cursor methods such as `.count()` on the result of
`get_entries_for_timeseries`.
(commit: 14aa503b06f98f660bbbc01cc927e7888f704eac)
The file was modifiedemission/storage/timeseries/builtin_timeseries.py (diff)
Commit 87042f1e0bfd44657a0846ccadb9fb9dd7b89665 by shankari
Add a standard function to insert elements into the cache series
This is a refactoring of 4aa521caa2bab3c4a3802b210c6a0fa5f7e25d68 to
make it easier to load entries into the usercache or the timeseries
depending on the format of the data. This function can now be used from
multiple scripts.
(commit: 87042f1e0bfd44657a0846ccadb9fb9dd7b89665)
The file was modifiedemission/storage/timeseries/cache_series.py (diff)
Commit c26ebf6ed6c8c54ce3dbdc715d03ae869e066e53 by shankari
Change the multi user scripts to also account for the usercache
Similar to 4aa521caa2bab3c4a3802b210c6a0fa5f7e25d68, but for the
multi-user scripts. The single user load script has also been modified
to use the new function defined in
87042f1e0bfd44657a0846ccadb9fb9dd7b89665.
The extract script uses the existing cacheseries `find_entries` - the
load script uses the new `insert_entries`
Note that because the `motion_activity` entries do not have a `data.ts`
until they are processed, the default query against the usercache does
not return them. We need to add a new query against the metadata, but
restrict it to
`motion_activity` entries to avoid duplicates.
(commit: c26ebf6ed6c8c54ce3dbdc715d03ae869e066e53)
The file was modifiedbin/debug/load_timeline_for_day_and_user.py (diff)
The file was modifiedbin/debug/extract_timeline_for_day_range_and_user.py (diff)
The file was modifiedbin/debug/load_multi_timeline_for_range.py (diff)