Skip to content
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

Fix the Dashboard map query and filtering #1824

Merged
merged 4 commits into from
Jan 24, 2025
Merged

Fix the Dashboard map query and filtering #1824

merged 4 commits into from
Jan 24, 2025

Conversation

joshk
Copy link
Collaborator

@joshk joshk commented Jan 24, 2025

  • Include a missing alias, and fix the field used
  • Fetch all devices for a product who have a 'latest connection' (ensuring they have, or are, connected to nerves hub)
  • Remove the location where clauses (this is filtered later on)
  • And adjust the generate_map_marker pattern match (the result isn't a Device)

joshk added 4 commits January 24, 2025 13:01
- Fetch all provisioned devices for a product
- Remove the location where clauses (this is filtered later on)
- And adjust the `generate_map_marker` pattern match (the result isn't a Device)
use an inner join on `device_connections`, ensuring we only get devices who have connected at least once, allowing us to remove the where condition on `status = 'provisioned'`
@joshk joshk merged commit eb5a96f into main Jan 24, 2025
2 checks passed
@joshk joshk deleted the dashboard-map-fix branch January 24, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants