You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some case, the product store setting gets duplicated resulting in wrong behaviour, as when multiple setting exists we do not check which setting is latest created.
Expected behavior
The settings should work consistently.
Steps to reproduce the issue
For any product store setting, create duplicate records
Update the same setting from the app, and then check the behaviour on page refresh or logout.
Can you handle fixing this bug by yourself?
YES
NO
Environment details
Browser:
OS:
Code Version:
Additional information
The exact reason for this issue is still not identified, but below are the two solutions that will help in improving the experience and will help in reducing the possibility of this error again.
Solutions:
When fetching the product store setting we check whether the resp has error or not, and if we get any error in the response we consider that its due to missing setting and create a new product store setting, but we should only create a new setting when we have No record found error and not in any other error case.
Also when fetching store settings sort the records based on fromDate and store the value of most oldest(first record) setting created, this will help in honoring a single value of setting in all the case even when having multiple records for the same setting.
The text was updated successfully, but these errors were encountered:
Current behavior
In some case, the product store setting gets duplicated resulting in wrong behaviour, as when multiple setting exists we do not check which setting is latest created.
Expected behavior
The settings should work consistently.
Steps to reproduce the issue
Can you handle fixing this bug by yourself?
Environment details
Additional information
The exact reason for this issue is still not identified, but below are the two solutions that will help in improving the experience and will help in reducing the possibility of this error again.
Solutions:
No record found
error and not in any other error case.fromDate
and store the value of most oldest(first record) setting created, this will help in honoring a single value of setting in all the case even when having multiple records for the same setting.The text was updated successfully, but these errors were encountered: