+
Skip to content

fix: awaited recursive createHandle call #6496 #6563

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

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 <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
if the amount was zero then node.amount would return false,
hence changed the check to check for undefined.

Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Test case added while creating the surcharge with amount 0 and undefined

Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
@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 <vishal.malu@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: vishalmalu <vishal.malu@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
if the amount was zero then node.amount would return false,
hence changed the check to check for undefined.

Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Test case added while creating the surcharge with amount 0 and undefined

Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
shwetha263 and others added 18 commits October 15, 2022 11:23
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Test case added while creating the surcharge with amount 0 and undefined

Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Shwetha Shashidhara <shwethaks263@gmail.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
Signed-off-by: Smriti Prakash <smriti_prakash@intuit.com>
@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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载