Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how PyMongo handles UUIDs #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

luandy64
Copy link
Contributor

Description of change

This PR sets the PyMongo client to use the "standard" representation of UUID instead of the default "undefined" representation.

From the docs:

uuidRepresentation: The BSON representation to use when encoding from and decoding to instances of UUID. Valid values are the strings: “standard”, “pythonLegacy”, “javaLegacy”, “csharpLegacy”, and “unspecified” (the default). New applications should consider setting this to “standard” for cross language compatibility.

I found this section of the PyMongo docs that gives good background behind the issue here.

QA steps

  • automated tests passing
  • manual qa steps passing (list below)

Risks

I don't think anyone is leaning on the current representation of UUID. It seems to be broken in terms of our syncing.

Rollback steps

  • revert this branch

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.

1 participant