Skip to content

Conversation

@syn-zhu
Copy link
Collaborator

@syn-zhu syn-zhu commented Oct 24, 2025

Description

Adding a config for cloud-stage.mongodb.com. Previously, this was preventing saved data from working in stage due to CORS issues.

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@syn-zhu syn-zhu requested a review from a team as a code owner October 24, 2025 17:39
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 adds support for the atlas-staging environment configuration to resolve CORS issues preventing saved data functionality in the staging environment (cloud-stage.mongodb.com).

Key Changes:

  • Added atlas-staging as a new backend preset option
  • Configured staging environment endpoints and authentication settings

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/compass-preferences-model/src/preferences-schema.tsx Added atlas-staging to the list of valid backend presets and updated documentation
packages/atlas-service/src/util.ts Added complete staging environment configuration with API endpoints and OAuth settings

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

@github-actions github-actions bot added the fix label Oct 24, 2025
@syn-zhu syn-zhu added the no release notes Fix or feature not for release notes label Oct 24, 2025
* - atlas-local: local mms backend (localhost)
* - atlas-dev: dev mms backend (cloud-dev.mongodb.com)
* - atlas-qa: qa mms backend (cloud-qa.mongodb.com)
* - atlas-staging: staging mms backend (cloud-stage.mongodb.com)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit should we call it atlas-stage to mirror the actual env name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good question lol, I've been meaning to get to the bottom of why it's called "stage" only for the MMS URL and it's called "staging" literally everywhere else

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think "staging" is actually the more common name and "stage" is the exception

Copy link
Collaborator

@johnjackweir johnjackweir left a comment

Choose a reason for hiding this comment

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

one nit but not blocking

@syn-zhu syn-zhu merged commit 3ca4bb8 into main Oct 24, 2025
53 of 54 checks passed
@syn-zhu syn-zhu deleted the smnzhu/atlas-staging branch October 24, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix no release notes Fix or feature not for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants