Skip to content

forked-to seems broken #5596

Closed
Closed

Description

@yzqdev

Please ensure:

  • The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.
  • The bug happens after clearing extension cache. The "Clear cache" button below can also be found at the bottom of the options page.

Example URLs

https://github.com/refined-github/refined-github

Extension version

22.4.11

Browser(s) used

google chrome 100.0.4896.88

Description

link to your fork button disappears.

link to your fork button disappears.
I guess maybe it's github changed the fork procedure that causes this. Two days before, when I clicked fork button , a dialog jumped, while now when i click fork button, it'll turn to a new fork page.

before

after

image

Include in this issue:

  • Screenshots/video/gif demonstrating the bug, if it’s visual
  • Console errors, if any

Activity

  1. FloEdelmann commented on Apr 14, 2022

    @FloEdelmann
    Member
  2. cheap-glitch commented on Apr 14, 2022

    @cheap-glitch
    Contributor

    I see this broken UI

    I don't see it, but this is probably because the feature has cached this repo as a fork for you and not me.

    I guess maybe it's github changed the fork procedure

    Indeed, clicking the "Fork" button now redirects to a special page instead of showing a popup.

    Though I don't know if it's for everyone or just people in organizations 🤔

  3. changed the title [-]`fork to` seems broken[/-] [+]`forked-to` seems broken[/+] on Apr 14, 2022
  4. Superskyyy commented on Apr 24, 2022

    @Superskyyy

    @cheap-glitch Hello, I think the fork-to feature is still broken on the latest release, very rarely does it show the button. then after refreshing it is gone, then shows fork-to Uncaught TypeError: Cannot read properties of undefined (reading 'classList').

    Now even the error message is gone after clearing my cache and rebooting the browser etc.

    My version is 22.4.21 with Edge. I have tried many times clearing the cache and reinstalling the extension, and it stopped showing up completely.

    I have a fork for this repo,
    image

    I can see other features working as expected.

  5. cheap-glitch commented on Apr 24, 2022

    @cheap-glitch
    Contributor

    I think the fork-to feature is still broken on the latest release

    Can't reproduce on Firefox, it's working fine for me, even with heavy throttling:

    image

    I have tried many times clearing the cache and reinstalling the extension

    @Superskyyy The button will only be shown if you've visited your fork at least once. If you create a new fork, clear the cache, and then load the original repo, you won't see the button. Try visiting some of your forks before going to their parent repos, can you see anything?

    Also, just to avoid any misunderstandings, the feature is not called "fork-to" but forked-to, meaning the button is a link that appears on the original repo, not on your fork.

  6. Superskyyy commented on Apr 24, 2022

    @Superskyyy

    I think the fork-to feature is still broken on the latest release

    Can't reproduce on Firefox, it's working fine for me, even with heavy throttling:

    image

    I have tried many times clearing the cache and reinstalling the extension

    @Superskyyy The button will only be shown if you've visited your fork at least once. If you create a new fork, clear the cache, and then load the original repo, you won't see the button. Try visiting some of your forks before going to their parent repos, can you see anything?

    Also, just to avoid any misunderstandings, the feature is not called "fork-to" but forked-to, meaning the button is a link that appears on the original repo, not on your fork.

    @cheap-glitch Thanks for the reply! Indeed visiting the fork at least once made the error message appear again, but the button still does not show up for me. Well, I remember it showed up like once in the past hour in some other repos and disappears immediately after refreshing the page.

    image

  7. cheap-glitch commented on Apr 24, 2022

    @cheap-glitch
    Contributor

    @Superskyyy If by any chance you have other GitHub-related extensions, could see if the problem persists when you disable them? Also, if you have access to others browsers, is the error present there too?

    If that's the case, can you open a new issue with:

    • the console error
    • your OS and exact browser version
    • the HTML of the repo header with Refined GitHub disabled (or the whole page is fine too)

    Thanks!

  8. Superskyyy commented on May 4, 2022

    @Superskyyy

    @Superskyyy If by any chance you have other GitHub-related extensions, could see if the problem persists when you disable them? Also, if you have access to others browsers, is the error present there too?

    If that's the case, can you open a new issue with:

    • the console error
    • your OS and exact browser version
    • the HTML of the repo header with Refined GitHub disabled (or the whole page is fine too)

    Thanks!

    Apparently it's a problem on my side, I rebooted my laptop few times and it started to work.
    Just to give an update, thank you!

  9. gengjiawen commented on May 6, 2022

    @gengjiawen

    Sadly reboot not worked for me.

    refined-github.js:3859 📕 22.4.21 → TypeError: Cannot read properties of undefined (reading 'classList')
        at refined-github.js:8567:24
        at init (refined-github.js:8601:12)
        at async runFeature (refined-github.js:3902:20)
        at async setupPageLoad (refined-github.js:3910:34)
    refined-github.js:3860 🔍 Search issue https://github.com/refined-github/refined-github/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+Cannot+read+properties+of+undefined+%28reading+%27classList%27%29
    refined-github.js:3860 🚨 Report issue https://github.com/refined-github/refined-github/issues/new?labels=bug&template=1_bug_report.yml&title=%60forked-to%60%3A+Cannot+read+properties+of+undefined+%28reading+%27classList%27%29&example_urls=https%3A%2F%2Fgithub.com%2Fnodejs%2Fgyp-next&description=%60%60%60%0ATypeError%3A+Cannot+read+properties+of+undefined+%28reading+%27classList%27%29%0A++++at+chrome-extension%3A%2F%2Fhlepfoohegkhhmjieoechaddaejaokhf%2Frefined-github.js%3A8567%3A24%0A++++at+init+%28chrome-extension%3A%2F%2Fhlepfoohegkhhmjieoechaddaejaokhf%2Frefined-github.js%3A8601%3A12%29%0A++++at+async+runFeature+%28chrome-extension%3A%2F%2Fhlepfoohegkhhmjieoechaddaejaokhf%2Frefined-github.js%3A3902%3A20%29%0A++++at+async+setupPageLoad+%28chrome-extension%3A%2F%2Fhlepfoohegkhhmjieoechaddaejaokhf%2Frefined-github.js%3A3910%3A34%29%0A%60%60%60
    
  10. gengjiawen commented on May 6, 2022

    @gengjiawen

    Maybe the loading time is not stable, I add a breakpoint and sees the forked button still not showing ?

    image

  11. cheap-glitch commented on May 6, 2022

    @cheap-glitch
    Contributor

    @gengjiawen Tracked in #5609

  12. locked and limited conversation to collaborators on May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions