Skip to content

Conversation

@smriti0710
Copy link

Resolves #6496
Impact: minor
Type: bugfix

Issue

createHandle is a recursive function to determine an available product handle.
It is async due to the database queries which need to be awaited.
The recursive call should be awaited aswell

Solution

Await createHandle.

@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2022

🦋 Changeset detected

Latest commit: d67d2c4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@reactioncommerce/api-plugin-products Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@delagroove
Copy link
Contributor

@smriti0710 you need to sign-off the commit in order for us to review it/merge it

https://github.com/reactioncommerce/reaction/pull/6563/checks?check_run_id=8897369421

github-actions bot and others added 12 commits October 15, 2022 01:01
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
if the amount was zero then node.amount would return false,
hence changed the check to check for undefined.

Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Test case added while creating the surcharge with amount 0 and undefined

Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
@smriti0710 smriti0710 force-pushed the issue-6496-await-recursive-createHandle-call branch from e0032c7 to 5bf870b Compare October 14, 2022 19:32
@smriti0710
Copy link
Author

@delagroove signed off the commit.

@brent-hoover
Copy link
Collaborator

@smriti0710 you need to add a changeset to bump the package. A bug fix would be a "patch" level change

Smriti Prakash and others added 12 commits October 15, 2022 11:08
…eTagsFromProducts events

Signed-off-by: vishalmalu <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: vishalmalu <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
if the amount was zero then node.amount would return false,
hence changed the check to check for undefined.

Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Test case added while creating the surcharge with amount 0 and undefined

Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
shwetha263 and others added 18 commits October 15, 2022 11:23
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Test case added while creating the surcharge with amount 0 and undefined

Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Shwetha Shashidhara <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
@smriti0710
Copy link
Author

Please ignore this PR. Created a new one with the fix : #6565

@smriti0710 smriti0710 closed this Oct 15, 2022
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.

Recursive createHandle call should be awaited

6 participants