Skip to content

Fetch the aheadBehind state when the info doesn't exist - #9319

Merged
outofambit merged 3 commits into
developmentfrom
fix-prompt-for-update-branch
Mar 25, 2020
Merged

outofambit merged 3 commits into
developmentfrom
fix-prompt-for-update-branch

Conversation

@rafeca

@rafeca rafeca commented Mar 19, 2020 •

Copy link
Copy Markdown
Contributor

Partially addresses #5293

Description

This PR partially addresses #6875 by fixing the point 1. stated in #6875 (comment).

There are still 2 pending issues with the prompt that I'm planning to address as separate PRs:

  1. The prompt sometimes disappears just after it gets displayed. This is related to the point 2. in iterating on the NDDB prompt user experience #6875 (comment).
  2. The base branch used for the comparison is not consistent: most of the times upstream/master is used, but sometimes it defaults to just master.

Screenshots

Before. Prompt only shown after opening the "Select branch..." dropdown:

before

Now. Prompt shown immediately:

demo

Release notes

Notes: [Fixed] Display more consistently the prompt to notify when the current branch is outdated.

@billygriffin

Copy link
Copy Markdown
Contributor

Thanks for looking into this @rafeca! I added @ampinsk as a reviewer as I think we need to discuss whether we actually want to fix this so it works as it was originally intended or go a different direction.

@outofambit
outofambit self-requested a review March 20, 2020 03:12
@rafeca

rafeca commented Mar 20, 2020

Copy link
Copy Markdown
Contributor Author

Thanks for looking into this @rafeca! I added @ampinsk as a reviewer as I think we need to discuss whether we actually want to fix this so it works as it was originally intended or go a different direction.

Thanks for pointing this out! I've talked to @ampinsk and she mentioned that for now it's worth fixing the current behaviour of the NDDB and learn from its usage before going deeper into a different direction.

@outofambit outofambit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

left a suggestion to simplify a little, but looks great!

this.aheadBehindQueue.end()
}

public async executeAsyncTask(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is great!

Comment thread app/src/lib/stores/app-store.ts Resolved
Thanks @outofambit for the suggestion!

Co-Authored-By: evelyn masso <[email protected]>
@outofambit outofambit self-assigned this Mar 24, 2020
@tierninho
tierninho self-requested a review March 24, 2020 21:36

@tierninho tierninho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes test well on OSX/Windows. Super responsive and a nice improvement!

@rafeca rafeca linked an issue Mar 25, 2020 that may be closed by this pull request
@rafeca

rafeca commented Mar 25, 2020

Copy link
Copy Markdown
Contributor Author

Thanks everyone for the reviews! We're going to wait to merge this one until the v2.4 release is done since this should go to v2.5

@outofambit
outofambit merged commit 2febf8e into development Mar 25, 2020
@outofambit
outofambit deleted the fix-prompt-for-update-branch branch April 21, 2020 22:18
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.

4 participants