Skip to content

Fix wrong region displayed during re-deploy#1983

Merged
255kb merged 1 commit intomainfrom
bugfix/1982-deploy-region
Nov 25, 2025
Merged

Fix wrong region displayed during re-deploy#1983
255kb merged 1 commit intomainfrom
bugfix/1982-deploy-region

Conversation

@255kb
Copy link
Member

@255kb 255kb commented Nov 25, 2025

Race condition was displaying preferred region instead of the redeployed instance region Closes #1982

Technical implementation details

Checklist

  • data migration added (@mockoon/commons)
  • commons lib tests added (@mockoon/commons)
  • commons-server lib tests added (@mockoon/commons-server)
  • CLI tests added (@mockoon/cli)
  • desktop UI automated tests added (@mockoon/app)

Closes #{issue_number}

Race condition was displaying preferred region instead of the redeployed instance region
Closes #1982
Copilot AI review requested due to automatic review settings November 25, 2025 15:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a race condition that was causing the wrong region to be displayed when redeploying an existing instance. The issue occurred because observables were executing independently, allowing the user's preferred region to override the existing instance's actual region.

Key Changes:

  • Synchronized form population using combineLatest to ensure existing instance data takes precedence over user preferences
  • Refactored initialization logic from ngOnInit to constructor for better control flow
  • Removed unused imports and simplified observable chains

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@255kb 255kb merged commit bad962a into main Nov 25, 2025
21 checks passed
@255kb 255kb deleted the bugfix/1982-deploy-region branch November 26, 2025 10:06
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.

Deploy dialog show wrong region during redeploy

2 participants