Refined-github: `hide-zero-packages` hides packages tab on profiles when you only have private packages

Created on 19 Nov 2020  路  7Comments  路  Source: sindresorhus/refined-github

Somewhat relates to #3631. Seems when hide-zero-packages is enabled, and you only have private packages under your name, the packages tab is hidden in your profile. This makes it hard to find your packages (specifically, you can only find them by putting the URL directly).

On the repositories tab:
image
On the packages tab:
image

bug good first issue help wanted

Most helpful comment

What if we disable on your own profile?

All 7 comments

This is sort of a GitHub bug that we fall into. The Packages tab does not display the number of private packages inside, can you report this bug to GitHub?

Suppose that makes sense. I've reported it on their support page, let's see what happens.

I got a reply from GitHub support. The there is disabled on purpose due to performance issues:

I don't think the count will include public packages either at the moment. There were performance implications when calculating the number of visible packages. I believe this is why the count was disabled.

It's great that you actually got an answer.

We have 2 choices:

  • drop the feature because it can't be reliable unless we query GitHub (doesn't seem worth it an extra HTTP request)
  • suggest that you disable it 馃槵

I've already disabled it since I raised this. Perhaps an alternative would be to disable it for packages on profile pages? That is, providing it works fine everywhere else. If not, this can be closed, but this sounds like others will eventually come and report it.

What if we disable on your own profile?

That would be a good compromise, we already do it with a number of features. It might be worth mentioning this issue in a JS comment as well.

The exclusion list also needs to include your organizations as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hkdobrev picture hkdobrev  路  3Comments

fregante picture fregante  路  3Comments

olso picture olso  路  3Comments

MilesBHuff picture MilesBHuff  路  3Comments

juliocanares picture juliocanares  路  3Comments