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

DRIVERS-2789 Clean up source file structure #1663

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

blink1073
Copy link
Member

  • Update folder structure for markdown files so everything is in a folder
  • Rename bson-related specs to group them

@blink1073 blink1073 requested review from a team as code owners September 23, 2024 12:33
@blink1073 blink1073 requested review from dariakp and aditi-khare-mongoDB and removed request for a team, nbbeeken, dariakp and aditi-khare-mongoDB September 23, 2024 12:34
@blink1073
Copy link
Member Author

image

@@ -1,4 +1,4 @@
# Handling of DBRefs
# BSON DBRef
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Looking at other "BSON <type>" specs, this suggests that DBRef is a BSON type, which it isn't. Any objections to just calling this the "DBRef spec"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, right, I was confusing it with the deprecated DBPointer.

@@ -2,9 +2,12 @@

- [Atlas Serverless Tests](serverless-testing/README.md)
- [Authentication](auth/auth.md)
- [BSON Binary Subtype 6](client-side-encryption/subtype6.md)
- [BSON Binary Encrypted](bson-binary-encrypted/binary-encrypted.md)
Copy link
Member

Choose a reason for hiding this comment

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

Similar to how we have multiple documents in the SDAM spec folder, how about moving all of the various BSON specs into a bson folder with an index document that links to the main BSON spec (https://bsonspec.org) and our own specifications?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd want to leave BSON-corpus out of that move, at least in this PR, since drivers are keying in on paths to sync spec files. For #1658, we'd move the spec file into this new bson folder and put its spec files into their own binary-vector-tests folder?

Copy link
Member

Choose a reason for hiding this comment

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

Works for me 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Haha, I meant that as a question. Should I make a source/bson folder and put the other bson- specs in it now?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, sorry. Yes, having a bson folder containing all of the various BSON specs makes sense, I'm also fine leaving the bson-corpus out for the time being until we know all of the references.

There could also be a single tests folder that contains the various tests (potentially in subfolders similar to how it's done for the CSFLE spec). Looking at #1658, the question is why those tests aren't added to the BSON corpus in the first place - was it a matter of grouping tests with the spec document?

Copy link
Member Author

Choose a reason for hiding this comment

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

The tests are different from the standard corpus tests, because there is additional metadata in the BSON binary value. So I think we should keep these folders separate.

@blink1073 blink1073 merged commit ef9c268 into mongodb:master Sep 23, 2024
4 checks passed
@blink1073 blink1073 deleted the DRIVERS-2789-create-folders branch September 23, 2024 20:58
isabelatkinson pushed a commit to isabelatkinson/specifications that referenced this pull request Sep 25, 2024
* DRIVERS-2789 Clean up source file structure

* update links

* update names

* address review
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.

2 participants