Skip to content

Decrease time to enter review mode.#1131

Merged
queerviolet merged 1 commit intomasterfrom
qv/decrease-perceived-checkout-latency
May 2, 2019
Merged

Decrease time to enter review mode.#1131
queerviolet merged 1 commit intomasterfrom
qv/decrease-perceived-checkout-latency

Conversation

@queerviolet
Copy link
Contributor

Low-hanging fruit for #1091.

Previously, we awaited the fetch of additional PR data, then checked out
the branch. Now, we attempt to checkout the branch, and then we fetch
additional data.

Also:

  • adds more specific status bar messages
  • immediately update the status bar message once the branch is checked out, indicating to
    the user that they can go about their day while we fetch additional
    information
  • unconditionally resets the status bar, so it doesn't appear to hang in a fetching state

Tested manually, on fast / slow / nonexistent connections, with branches
that both do and do not exist locally (the latter fail, as we would
expect).

Previously, we awaited the fetch of additional PR data, then checked out
the branch. Now, we attempt to checkout the branch, and then we fetch
additional data.

We also add more specific status bar messages, and immediately update
the status bar message once the branch is checked out, indicating to
the user that they can go about their day while we fetch additional
information.

Tested manually, on fast / slow / nonexistent connections, with branches
that both do and do not exist locally (the latter fail, as we would
expect).
@queerviolet queerviolet requested a review from rebornix April 25, 2019 19:05
this.switchingToReviewMode = false;
await this._repository.status();
try {
this.statusBarItem.text = `$(sync~spin) Fetching additional data: pr/${pr.prNumber}`;
Copy link
Member

Choose a reason for hiding this comment

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

This one can be skipped if the pull request has all information needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It didn't seem obvious and quick to see if it has all the information needed. Maybe we can do another easy-win PR to early-out in fullfillPullRequestMissingInfo if it's all there?

@queerviolet queerviolet merged commit 4c0f27d into master May 2, 2019
@RMacfarlane RMacfarlane deleted the qv/decrease-perceived-checkout-latency branch January 22, 2021 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants