-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Never Connected" and "Disconnected" fields #843
base: master
Are you sure you want to change the base?
Conversation
Add "Never Connected Devices" and "Disconnected Devices" stats fields. Closes astarte-platform#157 Signed-off-by: Ismet Softic <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #843 +/- ##
==========================================
- Coverage 67.42% 61.55% -5.88%
==========================================
Files 264 184 -80
Lines 6429 3967 -2462
==========================================
- Hits 4335 2442 -1893
+ Misses 2094 1525 -569
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good starting point, some more work needs to be done:
- Document these changes: edit the
apps/astarte_appengine_api/priv/static/astarte_appengine_api.yaml
to include the new fields - Add tests for newly added fields
- Add a line to CHANGELOG.md briefly describing what was added, keeping in mind that it is used mostly to communicate changes to users.
ALLOW FILTERING | ||
""" | ||
|
||
with {:ok, prepared} <- prepare_with_realm(conn, realm, query), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will move away from doing string interpolation for realm name. Add a TODO here to remind us of changing the query.
{:ok, %Xandra.Page{} = page} <- Xandra.execute(conn, prepared, %{}) do | ||
devices = Enum.to_list(page) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will happen here if the number of never connected devices is bigger than the page size?
Add "Never Connected Devices" and "Disconnected Devices" stats fields.
Closes #157