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.

Pull requests list sometimes doesn't update, even after restarting multiple times and fetching

See original GitHub issue

Description

The “Pull requests” tab on the “Current branch” dropdown frequently does not update with the latest PRs visible on the GitHub website. Sometimes restarting GitHub Desktop resolves this but not always, and it shouldn’t be necessary to restart anyway to get an up to date list of PRs.

Version

  • GitHub Desktop: 1.4.2
  • Operating system: Windows 10

Steps to Reproduce

  1. Work in a repo with other users, ask them to create a PR.
  2. Observe that the PR is visible on the GitHub website.
  3. Observe that the PR is sometimes not visible in GitHub Desktop “Current branch” dropdown, even though it is visible on the website.
  4. Observe that restarting GitHub Desktop sometimes results in the PR list refreshing but sometimes it doesn’t.

Expected Behavior

After clicking “Fetch origin”, any PRs that are visible on the GitHub website should be visible in the “Current branch” dropdown on the “Pull requests” tab.

Actual Behavior

Sometimes PRs are visible on the website but will not show in GitHub Desktop for an extended period of time despite restarting and fetching multiple times. Sometimes a restart will fix the issue when a fetch does not.

Additional Information

image

image

Logs

2018-10-10.desktop.production.log

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
niikcommented, Jan 31, 2020

Hey all, sorry to hear you’re having problems with the PR list. I have some follow-up questions that I hope can help us narrow down the potential root cause here. As @billygriffin already stated we haven’t been able to reproduce this issue ourselves which could be for any number of reasons but all of us on the Desktop team do use the in-app PR list in our day to day work without experiencing this problem so we need to figure out how our usage differs from yours.

  1. Have you ever had more than one copy of the repository open in Desktop? In other words, have you ever cloned the offending repository to more than one location on disk and added both locations to the application?
  2. Do you ever work in a fork of the offending repository?

If you’re able to reproduce this problem we’d love it if you could help us troubleshoot this by following the steps below.

  1. Open DevTools (View -> Toggle Developer Tools).
  2. Click on the Network tab
  3. Click the refresh button in the Pull Request list image
  4. Find the corresponding request in the network tab and click on it image
  5. Click on the preview tab and expand the first pull request in the list and make a note of the updated_at field (or take a screenshot of the whole thing if you’re comfortable sharing the PR details) image
  6. Go to the Application Tab in DevTools and make your way to Storage -> IndexedDB -> Database -> repositories -> path in the sidebar and find the row corresponding to the repository you’re having problems with in the right hand pane and make note of its Primary key image
  7. Now locate the PullRequestDatabase -> pullRequestsLastUpdated table in the sidebar and find the row where Key corresponds to the Primary key you noted in the previous step and make a note of the lastUpdated property for that row. image

Sharing the results of the above would go a long way towards helping us understand what’s going on.

2reactions
jzabroskicommented, Feb 1, 2020

I did not upgrade. When I reported my issue, the program told me I was on the latest version. I will try on Monday

On Fri, Jan 31, 2020, 5:47 PM Billy Griffin notifications@github.com wrote:

Thanks @mattnewport https://github.com/mattnewport and @jzabroski https://github.com/jzabroski!

@jzabroski https://github.com/jzabroski Did you happen to update to the latest version, 2.3.1? The work we done relating to forks and PRs there may have fixed this issue even in the edge cases where it has manifested, so I’m curious if it’s still happening when you’re on that version.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/desktop/desktop/issues/5865?email_source=notifications&email_token=AADNH7PYZYFGDEWKGYU26GDRASTA3A5CNFSM4F22A72KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKQIGEY#issuecomment-580944659, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADNH7N5OKUAZZCBUS3UUQLRASTA3ANCNFSM4F22A72A .

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub pull request showing commits that are already in target ...
One way to fix this is to git rebase targetbranch in that PR. Then git push --force targetbranch , then Github will show...
Read more >
Pull Requests in Bitbucket Server are not updated after ...
Pull requests are not updated when changes are pushed to their branches (i.e. target or source branch). Browsing commits on the pull request...
Read more >
How to Easily Revert Git Pull Requests - LinearB
If you're new to Git, "revert pull request" is something you might not know you'll need to do eventually. Learn how in this...
Read more >
Pull request diff - show actual diff instead of commit changes
Most importantly, the way DevOps Pull Request shows diff is different then if using local git (no matter the tool), there actual changs...
Read more >
Chapter 29 Pull, but you have local work
Problem: You want to pull changes from upstream, but you have done some new work locally since the last time you pulled. This...
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