Skip to content

Conversation

j
Copy link
Contributor

@j j commented May 24, 2021

NODE-3311

insertOne is missing common options + session typings.

@j j force-pushed the session-typings branch 2 times, most recently from 8491d43 to 4e0a48f Compare May 24, 2021 23:14
@j j changed the title Session typings fix(NODE-3311): Fix "session" typescript typing for "insertOne" options. May 25, 2021
@dariakp
Copy link
Contributor

dariakp commented May 26, 2021

Hi, thanks for catching it! This does seem like the correct fix, I'll add it to our review queue. :)

@dariakp dariakp requested review from a team, durran, emadum and nbbeeken and removed request for a team May 26, 2021 15:51
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

Thanks for this 🚀

@dariakp dariakp added the tracked-in-jira Ticket filed in MongoDB's Jira system label May 26, 2021
@j
Copy link
Contributor Author

j commented May 26, 2021

@dariakp @nbbeeken It was a lot of work! :P.

I can bring up any issues I come across. With this PR, all my tests for type-mongodb pass. Great work with the new driver.

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.

Thanks for the fix! One small request - can you remove the now-unused imports? Our lint check is complaining:

 /data/mci/2e60a5e8f169e69a6e99236d7cd23982/src/src/operations/insert.ts
    8:25  warning  'BSONSerializeOptions' is defined but never used  @typescript-eslint/no-unused-vars
   10:24  warning  'WriteConcernOptions' is defined but never used   @typescript-eslint/no-unused-vars
 ✖ 2 problems (0 errors, 2 warnings)

@j j force-pushed the session-typings branch from 4e0a48f to 4a25681 Compare May 26, 2021 20:50
@j j requested a review from emadum May 26, 2021 20:52
@j
Copy link
Contributor Author

j commented May 26, 2021

Thanks for the fix! One small request - can you remove the now-unused imports? Our lint check is complaining:

 /data/mci/2e60a5e8f169e69a6e99236d7cd23982/src/src/operations/insert.ts
    8:25  warning  'BSONSerializeOptions' is defined but never used  @typescript-eslint/no-unused-vars
   10:24  warning  'WriteConcernOptions' is defined but never used   @typescript-eslint/no-unused-vars
 ✖ 2 problems (0 errors, 2 warnings)

Should be updated. Somehow lint & test was passing locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracked-in-jira Ticket filed in MongoDB's Jira system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants