Skip to content

Conversation

@jeroenvervaeke
Copy link
Member

@jeroenvervaeke jeroenvervaeke commented Dec 1, 2025

I noticed that booleans like DO_NOT_TRACK and MONGODB_LOAD_SAMPLE_DATA were treated as booleans, which is not optimal.

Treat them like proper booleans now, using the same logic used in the mongodb-atlas-local container:

  • DO_NOT_TRACK is true when present, regardless of the value
  • MONGODB_LOAD_SAMPLE_DATA is true/false if the lowercase string is true/false, or the string parsed as a number is larger than 0.

Jira: [CLOUDP-362539] [atlas-local-lib] improve environment variable boolean handling

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 19828679258

Details

  • 26 of 26 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 99.821%

Totals Coverage Status
Change from base Build 19826989962: 0.001%
Covered Lines: 3349
Relevant Lines: 3355

💛 - Coveralls

Copy link
Collaborator

@cveticm cveticm left a comment

Choose a reason for hiding this comment

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

LGTM

@jeroenvervaeke jeroenvervaeke merged commit 493fb78 into main Dec 1, 2025
12 checks passed
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