Skip to content

Conversation

@Anemy
Copy link
Member

@Anemy Anemy commented Nov 16, 2025

This snippet is used in the CodeMirror editors in Compass.

We want to remove the chance of folks querying in Compass with numbers > Number.MAX_SAFE_INTEGER with NumberLong or NumberDecimal without quotes. NumberDecimal already has quotes in the snippet. NumberLong(900719925474099999) vs NumberLong('900719925474099999')
This is a fix towards making tickets like COMPASS-8475 COMPASS-7891 COMPASS-8719 less likely to happen. To really fix the issue it'll require some separate changes on the Compass side.

@Anemy Anemy merged commit 5deeb62 into main Nov 17, 2025
7 checks passed
@Anemy Anemy deleted the update-number-long-constant-auto-complete-to-be-a-string branch November 17, 2025 17:17
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.

3 participants