question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'View on Github' Availability For Commit Doesn't Update

See original GitHub issue

Description

‘View on Github’ for commit in history does not update unless changing away from history tab and back. If you do a push from the history tab, or initiate a push then switch to the history tab before it completes, you won’t be able to access ‘View on Github’ unless you leave the tab and come back.

Version

  • GitHub Desktop: 1.6.5
  • Operating system:

Steps to Reproduce

  1. Make a commit
  2. Go to history tab
  3. Push changes
  4. Right click on the commit

Expected Behavior

‘View on Github’ should be clickable

Actual Behavior

‘View on Github’ is greyed out

Additional Information

This occurs because isLocal is passed as a static value to CommitListItem as a property, so it never updates.

A quick and dirty hack would be to make isLocal a function which when invoked runs the check, so it’s always up-to-date. This works since the context menu is triggered by a user action.

However, that’s not a great solution, and wouldn’t help with future issues like #5873 (if it’s ever closed) showing a stale state. The real solution needs to be reactive or subscribed so it updates correctly in all cases.

Logs

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
stevewardcommented, Aug 2, 2022

I was no longer able to reproduce this bug, so I’m going to close this issue out. If this is still an issue let us know and we can reopen it.

0reactions
dsanders11commented, Aug 2, 2022

Confirmed this appears to be fixed. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my GitHub page not update its content?
Check which branch Github is publishing your website from. In your repository, click on Settings, scroll down the page and there should be...
Read more >
Why doesn't GitHub pages update immediately after you have ...
In my experience, Github is pretty fast to update once you push a commit to your remote repository hosted on Github. If you...
Read more >
Github down? Current service status and errors - Downdetector
Real-time Github status and problems. Is Github down, not working properly or are you getting error messages? Here you see what is going...
Read more >
PyCharm - Commit and push changes to Git repository
If push is rejected because your working copy is outdated, PyCharm displays the Push Rejected dialog, provided that the Auto-update if push of ......
Read more >
How do I use GitHub Pages? - Learn web development | MDN
It allows you to upload code repositories for storage in the Git ... Alt + T. If that doesn't work, look for Terminal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found