We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Storage API does not respect versioning
Steps to reproduce Get something from storage:
this.mondayClientSdk.storage.instance.getItem(key).then( r => { const version = r.data.version; // Keep track of the version } );
Store a new value:
this.mondayClientSdk.storage.instance.setItem(key, value).then( r => console.log(r), e => console.error(e) );
Note that a different version is now in stored.
Now try to store a new value using the version retrieved in the first snippet:
this.mondayClientSdk.storage.instance.setItem(key, value, {previous_version: version}).then( r => console.log(r), e => console.error(e) );
This succeeds and does not result in a version_conflict error as described in the docs.
version_conflict
Expected behavior A version_conflict error.
The text was updated successfully, but these errors were encountered:
Hey @anderslyman. I know this is coming two and a half years later (we're doing some cleanup on our issues), but this one is resolved for some time
Sorry, something went wrong.
@gregra81 much appreciated, thank you!
No branches or pull requests
Describe the bug
Storage API does not respect versioning
Steps to reproduce
Get something from storage:
Store a new value:
Note that a different version is now in stored.
Now try to store a new value using the version retrieved in the first snippet:
This succeeds and does not result in a
version_conflict
error as described in the docs.Expected behavior
A
version_conflict
error.The text was updated successfully, but these errors were encountered: