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

Display record count in UI #638

Merged
merged 4 commits into from
Feb 5, 2025

Conversation

coalest
Copy link
Collaborator

@coalest coalest commented Feb 4, 2025

Resolves #596

Screenshot

Updated to show nothing when no AR records were instantiated:
image

@coalest coalest force-pushed the show-record-count-in-ui branch from 7a67352 to 23f84ee Compare February 4, 2025 12:31
@coalest
Copy link
Collaborator Author

coalest commented Feb 4, 2025

Not sure whether to return 0 or nothing when a query doesn't instantiate any Active Record instances. Thoughts?

@nateberkopec
Copy link
Collaborator

Definitely nothing, as people who don't use ActiveRecord will be annoyed at all the 0 spam

Copy link
Collaborator

@nateberkopec nateberkopec left a comment

Choose a reason for hiding this comment

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

Should display nothing in case of 0

@coalest coalest requested a review from nateberkopec February 5, 2025 11:13
@coalest
Copy link
Collaborator Author

coalest commented Feb 5, 2025

Fixed in 552105f to not show anything if no AR records were instantiated. Updated screenshot above to match changes.

@nateberkopec nateberkopec merged commit 36de45a into MiniProfiler:master Feb 5, 2025
4 checks passed
@nateberkopec
Copy link
Collaborator

Thanks @coalest!

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.

Display row counts in the UI
2 participants