-
Notifications
You must be signed in to change notification settings - Fork 219
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
Conversation
da0c7f2
to
f784137
Compare
…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>
f784137
to
65baf43
Compare
* OpenAPI * protocol * httpapi-concepts.md Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
@alstanchev @kalinkostashki I would appreciate a review on this - turned out to be not too complicated to do :) |
There was a problem hiding this 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 :)
Yes, I agree - will change enum name to |
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
documentation/src/main/resources/pages/ditto/httpapi-concepts.md
Outdated
Show resolved
Hide resolved
documentation/src/main/resources/pages/ditto/httpapi-concepts.md
Outdated
Show resolved
Hide resolved
...n/java/org/eclipse/ditto/internal/utils/headers/conditional/ConditionalHeadersValidator.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Resolves: #1524
Open: