[COMPASS-5146] Atlas deployment identification can be improved Created: 11/Oct/21  Updated: 29/Oct/23  Resolved: 29/Nov/21

Status: Closed
Project: Compass
Component/s: Deployment Awareness
Affects Version/s: None
Fix Version/s: 1.31.0

Type: Bug Priority: Major - P3
Reporter: Anna Henningsen Assignee: Leonardo Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by COMPASS-5323 is_atlas is always false in telemetry Closed
Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Orlando, Iteration Phnom Penh, Iteration Q

 Description   

Our current Atlas check in Compass is a fairly crude check for mongodb.net hostnames: https://github.com/mongodb-js/compass/blob/d582fcc68c4de95d367da505b8f1ac11737d43ae/packages/compass-deployment-awareness/src/stores/index.js#L4

This can be improved in multiple ways:

  • The regexp should have its dot escaped (already done in mongosh)
  • We should check for the presence of the atlasVersion command (already done in mongosh)
  • We should allow mongodb-dev.net so that people working on development Atlas environments see feature parity with those who are in production Atlas environments (this would need to be done in mongosh as well)

Generated at Wed Feb 07 22:38:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.