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

#1524 added "if-equal" header to define whether to "skip" and update of an equal value #1617

Merged
merged 5 commits into from
May 26, 2023

Conversation

thjaeckle
Copy link
Member

@thjaeckle thjaeckle commented Apr 14, 2023

  • default is "update" (which is the current behavior), always overwriting the value, even if it is equal to the one before
  • return a "*PreconditionNotModifiedException" (HTTP 304) when "skip" is provided and value is equal
  • work on logic is still in progress

Resolves: #1524

Open:

  • unit tests
  • documentation

@thjaeckle thjaeckle added this to the 3.3.0 milestone Apr 14, 2023
…of an equal value

* default is "update" (which is the current behavior), always overwriting the value, even if it is equal to the one before
* return a "*PreconditionNotModifiedException" (HTTP 304) when "skip" is provided and value is equal
* work on logic is still in progress

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
…al" header

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
@thjaeckle thjaeckle self-assigned this May 23, 2023
@thjaeckle thjaeckle marked this pull request as ready for review May 24, 2023 12:47
* OpenAPI
* protocol
* httpapi-concepts.md

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
@thjaeckle
Copy link
Member Author

@alstanchev @kalinkostashki I would appreciate a review on this - turned out to be not too complicated to do :)

Copy link
Contributor

@kalinkostashki kalinkostashki left a comment

Choose a reason for hiding this comment

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

@thjaeckle IfEqualsOption is maybe a bit of strange name for a DittoHeader ?
Shouldn't it be IfEquals only ? Or maybe IfEqualsHeader?
I don't have any hard feelings about IfEqualsOption -> just find it maybe a bit weird :)

@thjaeckle
Copy link
Member Author

@thjaeckle IfEqualsOption is maybe a bit of strange name for a DittoHeader ? Shouldn't it be IfEquals only ? Or maybe IfEqualsHeader? I don't have any hard feelings about IfEqualsOption -> just find it maybe a bit weird :)

Yes, I agree - will change enum name to IfEqual.

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
Copy link
Contributor

@kalinkostashki kalinkostashki left a comment

Choose a reason for hiding this comment

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

LGTM :)

@thjaeckle thjaeckle merged commit 1c240c1 into master May 26, 2023
@thjaeckle thjaeckle deleted the feature/if-equal-condition branch June 14, 2023 06:42
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Provide option to skip a modification in the "twin" if the value "is equal"
2 participants