Skip to content

Show specific error message in toast when plan merge fails to begin#1748

Merged
AaronPlave merged 1 commit into
developfrom
fix/851/improve-identical-plan-merge-error-message
Aug 13, 2025
Merged

Show specific error message in toast when plan merge fails to begin#1748
AaronPlave merged 1 commit into
developfrom
fix/851/improve-identical-plan-merge-error-message

Conversation

@AaronPlave
Copy link
Copy Markdown
Contributor

@AaronPlave AaronPlave commented Aug 12, 2025

Closes #851 by presenting the specific error message that results from beginning the merge. We don't have a feasible method at the moment for checking plan merge validity (e.g. one plan is deleted, plans are identical, etc) so surfacing the error message is the best we can do for now.

Testing:

  1. Create a plan
  2. Create a branch off the plan
  3. Create a merge request
  4. Go back to the parent plan and open the merge request modal
  5. Click "begin review"
  6. Verify that the toast error message alerts the user about the plans being identical

@AaronPlave AaronPlave requested a review from a team as a code owner August 12, 2025 19:59
@AaronPlave AaronPlave added the fix A bug fix label Aug 12, 2025
Copy link
Copy Markdown
Contributor

@goetzrrGit goetzrrGit left a comment

Choose a reason for hiding this comment

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

Looks good to me. I was able to see the message

Cannot begin merge. The contents of the two plans are identical.

@AaronPlave AaronPlave force-pushed the fix/851/improve-identical-plan-merge-error-message branch from 7cb0fc5 to 57b994a Compare August 13, 2025 15:15
@AaronPlave AaronPlave force-pushed the fix/851/improve-identical-plan-merge-error-message branch from 57b994a to 85abf80 Compare August 13, 2025 15:51
@sonarqubecloud
Copy link
Copy Markdown

@AaronPlave AaronPlave merged commit fe16166 into develop Aug 13, 2025
6 checks passed
@AaronPlave AaronPlave deleted the fix/851/improve-identical-plan-merge-error-message branch August 13, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking "review merge request" shows error message if there are no differences

2 participants