Skip to content

Conversation

nbbeeken
Copy link
Contributor

  • Tests from DefinitelyTyped included in our testing
  • Corrections to our types to bring us in sync with the community
  • list of the tests that break due to desired drivers changes

@nbbeeken nbbeeken force-pushed the NODE-3297/type-tests branch from 3a63739 to dbb1d19 Compare May 27, 2021 18:59
@nbbeeken nbbeeken requested review from a team, dariakp, durran and emadum and removed request for a team May 27, 2021 18:59
@nbbeeken nbbeeken marked this pull request as ready for review May 27, 2021 18:59
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

There are some forgotten export errors in the lint:

Error: src/collection.ts:1123:3 - (ae-forgotten-export) The symbol "FlattenIfArray" needs to be exported by the entry point index.d.ts
Error: src/cursor/find_cursor.ts:341:3 - (ae-forgotten-export) The symbol "SchemaMember" needs to be exported by the entry point index.d.ts
Error: src/mongo_types.ts:45:1 - (ae-forgotten-export) The symbol "Condition" needs to be exported by the entry point index.d.ts
Error: src/mongo_types.ts:45:1 - (ae-forgotten-export) The symbol "RootFilterOperators" needs to be exported by the entry point index.d.ts

@nbbeeken nbbeeken force-pushed the NODE-3297/type-tests branch from 7ff4702 to 6710435 Compare May 28, 2021 14:35
@nbbeeken nbbeeken requested a review from emadum May 28, 2021 14:46
@nbbeeken nbbeeken force-pushed the NODE-3297/type-tests branch from f8f8d44 to 28ce0a9 Compare June 3, 2021 21:46
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

Left some notes so that we can go through and discuss

@dariakp dariakp self-assigned this Jun 8, 2021
@nbbeeken nbbeeken force-pushed the NODE-3297/type-tests branch from 640876b to b83a6ac Compare June 9, 2021 21:15
@nbbeeken nbbeeken requested a review from dariakp June 9, 2021 21:18
$bitsAllClear?: BitwiseFilter;
$bitsAllSet?: BitwiseFilter;
$bitsAnyClear?: BitwiseFilter;
$bitsAnySet?: BitwiseFilter;
Copy link
Member

Choose a reason for hiding this comment

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

Just missing $rand that is an empty document if we want to be fully complete in this list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for catching it, added

/**
* (Pre)allocated space for the collection in bytes.
*/
storageSize: number;
Copy link
Member

Choose a reason for hiding this comment

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

Add freeStorageSize, indexBuilds, totalSize, scaleFactor here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@nbbeeken nbbeeken requested a review from durran June 10, 2021 18:01
Copy link
Member

@durran durran left a comment

Choose a reason for hiding this comment

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

Nice job! LGTM

Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@nbbeeken nbbeeken force-pushed the NODE-3297/type-tests branch from be9fe52 to f90a10a Compare June 14, 2021 14:30
const name = connectionString.indexOf('mongodb+srv') >= 0 ? 'mongodb+srv' : 'normal';
it(`${name}`, makeConnectionTest(connectionString));
it(`${name}`, function () {
if (SKIP_TESTS.include(configName)) this.skip();
Copy link
Contributor

Choose a reason for hiding this comment

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

include => includes

@dariakp dariakp merged commit 6bd506b into 4.0 Jun 14, 2021
@dariakp dariakp deleted the NODE-3297/type-tests branch June 14, 2021 16:29
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