K.Kanakhin
173f34b7aa
user-presence: Add `offline` status to aggregated info.
...
- Add `OFFLINE_THRESHOLD_SECS` settings parameter
to handle offline period.
- Set aggregated status to offline if user's status
haven't changed for `OFFLINE_THRESHOLD_SECS` period.
- Add test for offline aggregated status.
2017-03-07 20:09:53 -08:00
K.Kanakhin
2f251dedaf
user-presence: Add aggregated status to user presence info.
...
- Add aggregated status to user presence status dict.
- Add tests for aggregated presence status.
- Fix removing unused keys from status dict
with aggregated data for user.
Fixes #3692
2017-03-07 20:09:53 -08:00
Raghav Jajodia
a3a03bd6a5
mypy: Added Dict, List and Set imports.
...
Fixed mypy errors associated with the upgrade.
2017-03-04 14:33:44 -08:00
Tim Abbott
46226bad21
presence: Fix mypy errors in new feature.
2017-02-10 23:57:28 -08:00
Tim Abbott
71af0f7e2e
Add endpoint to fetch presence data for a single user.
...
This is an experimental API subject to its data format being changed.
Fixes #3638 .
2017-02-10 23:52:56 -08:00
Yago González
7fe090f902
translations: Improve some poorly-worded strings.
2017-01-28 18:04:17 -08:00
Rishi Gupta
9e6e1a1e69
Remove several instances of datetime.datetime.utcnow().
...
Change to the timezone-aware django.utils.timezone.now() where django is
available.
2016-11-07 20:13:53 -08:00
Steve Howell
edfa022bac
Remove json/get_active_statuses endpoint.
2016-09-27 14:33:56 -07:00
Steve Howell
2b4d59d6e8
Fix comment in update_active_status_backend().
2016-09-13 14:45:27 -07:00
Tim Abbott
375551aaa6
Clean up most hardcoding of mit.edu domain checks.
...
This moves all this code to be gated on a few virtual realm settings.
2016-07-26 20:30:12 -07:00
Tim Abbott
6dc5681171
views: Move presence views to presence.py.
2016-07-26 14:29:32 -07:00