Skip to content

[Fork] PullRequestUpdater handles local forks - #8868

Merged
outofambit merged 11 commits into
developmentfrom
feature/pr-coord-updater
Jan 15, 2020
Merged

outofambit merged 11 commits into
developmentfrom
feature/pr-coord-updater

Conversation

@outofambit

@outofambit outofambit commented Jan 6, 2020 •

Copy link
Copy Markdown
Contributor

closes #8549 (🎉)

Changes pull request background updating logic in PullRequestUpdater to request periodic updates for both the github remote of a Repository, as well as its upstream (if it has one).

Description

  • PullRequestUpdater now calls PullRequestCoordinator.refreshPullRequests for a Repository, not a GitHubRepository
  • PullRequestCoordinator helps determine last refreshed time for a Repository by surveying the last refreshed times of its GitHubRepositorys and returning the least recent one
  • PullRequestUpdater only deals in Repositorys not GitHubRepositorys

@tierninho tierninho changed the title use multiple pull request updaters for local forks [Fork] use multiple pull request updaters for local forks Jan 7, 2020
@outofambit
outofambit force-pushed the feature/pr-coord-updater branch from 9f723b7 to 0fc7e37 Compare January 11, 2020 00:30
@outofambit
outofambit changed the base branch from feature/pr-coord-lv-2 to development January 13, 2020 19:59
for its github remote and its upstream remote, if it exists
@outofambit
outofambit force-pushed the feature/pr-coord-updater branch from 0fc7e37 to db56599 Compare January 13, 2020 20:34
@outofambit
outofambit marked this pull request as ready for review January 14, 2020 01:35
@outofambit
outofambit requested a review from niik January 14, 2020 01:37
@outofambit outofambit changed the title [Fork] use multiple pull request updaters for local forks [Fork] PullRequestUpdater handles local forks Jan 14, 2020

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. I'd like to see the comment about related repositories being addressed before we merge this. My suggestion of an alternative approach for getLastRefreshed is merely a suggestion and not something I consider mandatory before merging

outofambit and others added 4 commits January 14, 2020 14:01
@outofambit
outofambit requested a review from niik January 14, 2020 23:55
@niik

niik commented Jan 15, 2020

Copy link
Copy Markdown
Member

This needs #8922 to fix the AppVeyor build failing.

@outofambit
outofambit merged commit 29d3cf4 into development Jan 15, 2020
@outofambit
outofambit deleted the feature/pr-coord-updater branch January 15, 2020 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fork] "Create pull request" is still a suggestion even after I've created a PR for the current branch on my fork

3 participants