Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

AH-436: update library - #39

Open
jeanmurillo95 wants to merge 12 commits into
masterfrom
AH-436
Open

AH-436: update library#39
jeanmurillo95 wants to merge 12 commits into
masterfrom
AH-436

Conversation

@jeanmurillo95

@jeanmurillo95 jeanmurillo95 commented Aug 18, 2022

Copy link
Copy Markdown

Surf-shop Change Request

Change Comments

I updated the mongodb library, I also changed some methods and test cases.

Solution description

I updated the mongodb package, I reduced the complexity in some functions, repair some test cases and lint errors.

Linting & unit tests ev

Screen Shot 2022-08-30 at 12 45 59 PM

idence

Checklist

PR is ready for code review and approval when each box is checked.

All steps are required, when applicable. Strikeout formatting indicates a step is not applicable to this change set.

  • Ticket referenced in PR title (ex. AH-XXX: Short summary of change)
  • Not-applicable items in this checklist struck out

@candradeg candradeg left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@jeanmurillo95 jeanmurillo95 changed the title fix: update library AH-436: update library Aug 30, 2022
@jeanmurillo95
jeanmurillo95 marked this pull request as ready for review August 30, 2022 18:52
@jeanmurillo95 jeanmurillo95 added the dependencies Pull requests that update a dependency file label Aug 30, 2022

@Fernavarro21 Fernavarro21 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@daniel-hume daniel-hume left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

looks good

@youngcm2
youngcm2 requested review from a team and DanStory and removed request for a team August 31, 2022 22:15
Comment thread yarn.lock Outdated
Comment thread tests/Repository.spec.ts Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread src/Repository.ts Outdated
Comment thread src/Repository.ts Outdated
Comment thread src/Repository.ts Outdated
Comment thread src/Repository.ts Outdated
Comment thread src/Repository.ts Outdated
Comment thread tests/Repository.spec.ts Outdated
Comment thread src/Repository.ts Outdated
Comment thread src/Repository.ts Outdated

@DanStory DanStory left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is unaddressed comments, make sure to unhide all comments on the Conversation tab

image

Comment thread src/Repository.ts
const res = await collection.insertOne(eventResult);

let newDocument = this.toggleId(res.ops[0], false);
let newDocument = this.toggleId({ id: res.insertedId }, false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This needs to be the whole document, not just the id.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is unresolved

@MatthewEppelsheimer

Copy link
Copy Markdown

@jeanmurillo95 there appear to still be several unresolved comments from the last review.

@youngcm2

Copy link
Copy Markdown

@MatthewEppelsheimer @DanStory Can you please look at this PR?

Comment thread src/Repository.ts
}
let ourCollection;
try {
ourCollection = await db.collection(this.options.name);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is missing { strict: true } so it doesn't create the collection out right

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants