Add Project Views metric to sidebar#2556
Merged
lukepayyapilli merged 1 commit intoMIT-LCP:devfrom Jan 15, 2026
Merged
Conversation
100339b to
eabfe39
Compare
tompollard
requested changes
Jan 14, 2026
Member
tompollard
left a comment
There was a problem hiding this comment.
Thanks Luke! I have added a couple of quick thoughts below:
- I hadn't realized that these logs only count logged-in users. I think this is okay, but we should make it very clear that this is the case (i.e. somehow explain that we are only counting registered users and that we are significantly undercounting true views).
- I wonder whether we should aggregate the count for all versions of a project (i.e. if a project has v1 and v2 then we combine the unique counts)? We could consider counting two counts: this version and all versions.
- Instead of "File views" we should say "Views" or "Project Views" (project is the term we use to describe any published resource).
eabfe39 to
2a4ae27
Compare
2a4ae27 to
566bde2
Compare
Member
|
Thanks! Instead of "Count of Registered Users", how about "Project Views by Unique Registered Users"? |
566bde2 to
40a284a
Compare
Contributor
Author
Done @tompollard! |
tompollard
approved these changes
Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of #2336 (Phase 1a)
Screenshot
Future Optimizations
(content_type_id, object_id)to the Log model for faster lookups.