Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Cache check to see if device exists #2201
Conversation
erikjohnston
added some commits
May 8, 2017
erikjohnston
assigned
richvdh
May 8, 2017
erikjohnston
added
maintenance
performance
labels
May 8, 2017
richvdh
assigned
erikjohnston
and unassigned
richvdh
May 8, 2017
erikjohnston
assigned
richvdh
and unassigned
erikjohnston
May 8, 2017
|
Good spot. Though I'd imagine devices would get resurrected quite easily given they get created if they're ever referenced. |
richvdh
requested changes
May 8, 2017
Though I'd imagine devices would get resurrected quite easily given they get created if they're ever referenced.
well, that's my point. They won't be (correctly) resurrected if you have a cache which says they exist when they've been deleted.
| @@ -102,12 +115,14 @@ def delete_device(self, user_id, device_id): | ||
| Returns: | ||
| defer.Deferred | ||
| """ | ||
| - return self._simple_delete_one( | ||
| + self._simple_delete_one( |
| @@ -117,13 +132,15 @@ def delete_devices(self, user_id, device_ids): | ||
| Returns: | ||
| defer.Deferred | ||
| """ | ||
| - return self._simple_delete_many( | ||
| + self._simple_delete_many( |
Oh yes, i was just grumbling that its a bit of an odd API. Ignore me.
Sigh, I clearly need more caffeine. Sorry. |
erikjohnston commentedMay 8, 2017
No description provided.