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

Add device count and estimated device count for Deployment views #1517

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

lawik
Copy link
Contributor

@lawik lawik commented Sep 12, 2024

This allows seeing how big a deployment is in device count in listings
and detail view.

Beyond that the Edit form for Deployments will estimate the matching
devices based on the conditions set.

@lawik lawik requested review from joshk and jjcarstens September 12, 2024 15:29
@lawik lawik force-pushed the deployment-views-nice-counts branch from 7426761 to cbef6d6 Compare September 12, 2024 15:30
Copy link
Collaborator

@joshk joshk left a comment

Choose a reason for hiding this comment

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

All in all this looks great. Just some small change suggestions.

@lawik lawik force-pushed the deployment-views-nice-counts branch from cbef6d6 to 5b6e1af Compare September 25, 2024 13:09
@lawik
Copy link
Contributor Author

lawik commented Sep 25, 2024

Gotta make it not break also...

This allows seeing how big a deployment is in device count in listings
and detail view.

Beyond that the Edit form for Deployments will estimate the matching
devices based on the conditions set.
@lawik lawik force-pushed the deployment-views-nice-counts branch from 5b6e1af to f8a4870 Compare September 25, 2024 13:21
@lawik
Copy link
Contributor Author

lawik commented Sep 25, 2024

And fixed :D

@lawik
Copy link
Contributor Author

lawik commented Sep 25, 2024

Test hit a deadlock in an unrelated test so I gave it a re-run. Worth figuring out but very unlikely to be this PR?

Copy link
Collaborator

@joshk joshk left a comment

Choose a reason for hiding this comment

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

Is it worth us adding tests for this?

@lawik
Copy link
Contributor Author

lawik commented Sep 25, 2024

Is it worth us adding tests for this?

Possibly but not enough that I think anyone would care if it broke and it would take kind of weird stuff to break it.

You can make a call on this. I'll write the tests if you prefer them. For me they are smack in the do/don't split.

@joshk
Copy link
Collaborator

joshk commented Sep 25, 2024

Same, this is smack bang on that line.

I'm going to skip the need for a test as we are looking at making changes to Deployments in the long run.

@joshk joshk merged commit 4f01a66 into nerves-hub:main Sep 25, 2024
2 checks passed
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