Skip to content
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

Implemented: logic to remove rejected order items from state manually (#638) #698

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amansinghbais
Copy link
Contributor

Related Issues

#638

Short Description and Why It's Useful

Updated code such that post item rejection, if Solr takes time to update the order data, we'll manually remove those items or orders from the state.

Screenshots of Visual Changes before/after (If There Are Any)

Contribution and Currently Important Rules Acceptance

@@ -832,6 +838,37 @@ export default defineComponent({
logger.error('Failed to update order', err)
}
},
removeRejectedOrder(rejectedProductIds: any, rejectedItems: any) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can take some alternate route here. On rejection we are refetching in progress orders. Rejected items won't be associated with any shipment. So if we could use that to filter out the rejected order(all items rejected) or the rejected items. This way we can keep the logic in the fetchInProgressOrdersAdditionalInformation action itself.

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.

2 participants