pepkit / pepdbagent

Database for storing sample metadata
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

`number_of_projects` and `number_of_samples` in a namespace includes both public and private project counts. #64

Closed nleroy917 closed 1 year ago

nleroy917 commented 1 year ago

Overview

If you are unauthenticated and attempt to fetch information about a particular namespace, the number_of_samples and number_of_projects information still includes counts from private projects.

An example:

I have one project with two samples. And it is private. Authenticated, I see this. Which is correct:

image

Unauthenticated I see this. This is incorrect. It should appear that there are no projects or samples to an unauthenticated user: image

Expected behavior

I would expect there to be no projects or samples since they are private.

khoroshevskyi commented 1 year ago

This was a problem in previous pepdbagent. I was aware about it. But since we were using two different function to get this information I didn't know where I should change it. We won't have this issue in new pepdbagent