Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

GET /devices endpoint #939

Merged
merged 3 commits into from
Jul 21, 2016
Merged

GET /devices endpoint #939

merged 3 commits into from
Jul 21, 2016

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 20, 2016

implement a GET /devices endpoint which lists all of the user's devices.

This needs #938 to be useful, but is harmless enough without it.

It also returns the last IP where we saw that device, so there is some dancing
to fish that out of the user_ips table.

richvdh added 3 commits July 20, 2016 16:42
implement a GET /devices endpoint which lists all of the user's devices.

It also returns the last IP where we saw that device, so there is some dancing
to fish that out of the user_ips table.
(pick up PR #938 in the hope of fixing the UTs)

@classmethod
def _get_last_client_ip_by_device_txn(cls, txn, devices, retcols):
def where_clause_for_device(d):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this meant to be here?

@dbkr dbkr merged commit 44adde4 into develop Jul 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants