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 download count on file index #563

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

gross2001
Copy link
Contributor

Fixes #494
I didn't change GetEntryMetadata, even though it was required by the description of the issue. Because download count for a single file is already implemented and used via downloads, err := s.getDB(r).GetEntryDownloads(id), len(downloads). But I can change GetEntryMetadata too if this approach (through one request to sql and left join) looks better

Copy link

github-actions bot commented Mar 28, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@gross2001
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@gross2001 gross2001 marked this pull request as draft March 28, 2024 16:36
@mtlynch
Copy link
Owner

mtlynch commented Mar 29, 2024

Cool, thanks for working on this! Let me know when it's ready for review.

If you haven't already, make sure to read the contributor's guide to get your PR merged quickly.

@gross2001 gross2001 force-pushed the master branch 2 times, most recently from 1583f1b to 7fafaf9 Compare March 30, 2024 12:39
@gross2001 gross2001 marked this pull request as ready for review March 30, 2024 12:43
@gross2001
Copy link
Contributor Author

@mtlynch this PR is ready.

@mtlynch mtlynch changed the title Fixes #494. Display download count on file index Display download count on file index Apr 3, 2024
Copy link
Owner

@mtlynch mtlynch left a comment

Choose a reason for hiding this comment

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

Cool, this looks good. Just one minor note.

LEFT OUTER JOIN
(
SELECT
entry_id,
Copy link
Owner

Choose a reason for hiding this comment

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

Can we use tabs here so that it's aligned with the next line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I fixed it

Copy link
Owner

@mtlynch mtlynch left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for contributing this feature!

@mtlynch mtlynch merged commit 01f0e73 into mtlynch:master Apr 5, 2024
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display download count on file index
2 participants