-
Notifications
You must be signed in to change notification settings - Fork 2
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
WIP: add ETags #128
base: main
Are you sure you want to change the base?
WIP: add ETags #128
Conversation
You can access the deployment of this PR at https://renku-ci-ds-128.dev.renku.ch |
@authenticate(self.authenticator) | ||
@validate(json=apispec.UserPreferencesPatch) | ||
async def _patch(request: Request, body: apispec.UserPreferencesPatch, user: base_models.APIUser): | ||
etag = request.headers.get("If-None-Match") |
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.
I know this isn't done, just as a reminder. we should raise 428 here if an etag is not supplied. maybe with a decorator?
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.
That is a good question, actually. The way this is written for now is that the use of entity tags on the client side is not mandatory (of course with the risk on mid-air collisions). Their use can be made mandatory if we think all clients can be made to support them.
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.
I think it should be mandatory. At least I think a client not using etags "winning" when it comes to mid air collisions is exactly the wrong way around for things to be.
this can be closed, no? |
@leafty this can be closed right? |
this still contains a prototype to add ETags to the user preferences API. |
WIP/Experimental
/deploy #notest renku=release-0.49.0 renku-ui=leafty/use-etags