sindresorhus/refined-github

`bugs-tab` doesn't work with uppercase `Bugs` tag #2816

staabm posted onGitHub

I am wondering why I don't get a "Bugs" tab on https://github.com/redaxo/redaxo but i can see it on other reposes with the same browser?

using FF 75.0a1 (2020-02-19) (64-bit) and refined github 20.2.19


Because label:bug doesn’t match Bug

posted by fregante about 5 years ago

ok, so we should change the label form "Bug" to "bug"?

or should refined github be case-insensitive in this case?

posted by staabm about 5 years ago

It’s not Refined GitHub but GitHub themselves. Their tags are case sensitive

posted by fregante about 5 years ago

@fregante https://github.com/redaxo/redaxo/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug will bring up the bugs tab (the search is not case sensitive)

posted by yakov116 about 5 years ago

GitHub search may not be, but the labels API is. Maybe we need to change it to use the search API instead

posted by fregante about 5 years ago

I think it makes sense to be case-insensitive here.

posted by jdreesen about 5 years ago

On enterprise there also seems to be an issue. Only shows when manually searching label:bug. Bug count in the tab says 0.

<img width="343" alt="Screen Shot 2020-03-18 at 2 14 37 PM" src="https://user-images.githubusercontent.com/360826/76993306-0365da80-6923-11ea-8de7-2b517c76111c.png">

posted by luwes about 5 years ago

it's behind a VPN, scusi. I'll check in Firefox too. I am using Chrome

posted by luwes about 5 years ago

No need to check Firefox, Chrome is always preferred for debugging.

posted by fregante about 5 years ago

Did you set a token specifically for your GH Enterprise?

posted by fregante about 5 years ago

Yes, I set a new one for the GH enterprise domain.

posted by luwes about 5 years ago

ow snap, I cleared cache and it works now! thanks for the quick answers!

posted by luwes about 5 years ago

Beautiful feature!

<img width="391" alt="Screen Shot 2020-03-18 at 2 41 02 PM" src="https://user-images.githubusercontent.com/360826/76995644-8b011880-6926-11ea-867b-2e1e8f96652c.png">

posted by luwes about 5 years ago

the initially reported repo does still not show the "Bugs" tab for me even when using the latest refined-github release:

https://github.com/redaxo/redaxo

grafik

posted by staabm about 5 years ago

I dont have the permission to re-open this issue, but since the bug still exists I guess we should @fregante ..?

(see comment above for a repro)

posted by staabm almost 5 years ago

It works both in Firefox

<img width="762" alt="Screen Shot 2020-04-08 at 13 07 32" src="https://user-images.githubusercontent.com/1402241/78777499-ef4d5000-7999-11ea-82d0-170f13b4f888.png">

And Chrome

<img width="559" alt="chrome" src="https://user-images.githubusercontent.com/1402241/78777537-02f8b680-799a-11ea-9766-6cc59d15ae68.png">

Are you using the latest version? Any errors in the console?

posted by fregante almost 5 years ago

I am on 20.4.5 and testing in firefox 77.0a1.

the feature works for me in other repositories.

I get a error in the browser-console, not sure this is related grafik

but works on the refined github repo with the very same Firefox

grafik

posted by staabm almost 5 years ago

I also can reproduce the problem in Chrome 84 with refined github 20.4.1

grafik

in this very same chrome instance the "Bugs" tab appears when browsing e.g. the refined github repo itself:

grafik

posted by staabm almost 5 years ago

@staabm can you try to clear the cashe?

posted by yakov116 almost 5 years ago

can you try to clear the cashe?

which cache? how to clear it?

posted by staabm almost 5 years ago

open the extension options all the way on the bottom

image

posted by yakov116 almost 5 years ago
  1. Open https://github.com/redaxo/redaxo in Chrome
  2. Clear the cache
  3. Open the dev tools
  4. Refresh the page
  5. Search "graphql"
  6. Find the query that looks like this

    <img width="462" alt="" src="https://user-images.githubusercontent.com/1402241/78783181-7bb04080-79a3-11ea-957a-4d269bb266b5.png">

One of the queries should be (in the Headers tab):

{
    search(type: ISSUE, query: "label:bug is:open is:issue repo:redaxo/redaxo") {
        issueCount
    }
}
posted by fregante almost 5 years ago

thx for the hints guys!

clearing the cache did it. I can see the tab now in Firefox and in Chrome.

I guess there is some cache eviction problem going on?

posted by staabm almost 5 years ago

Fund this Issue

$0.00
Funded

Pull requests