-
Notifications
You must be signed in to change notification settings - Fork 122
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
Provide a way to get notified if entries are not found when watching #610
Conversation
Motivation: Related line#532 Currently, when we try to watch a file which doesn't exist, the watch API waits until the file is added or timeout happens. It sometimes makes user difficult to debug because the client cannot distinguish such cases. Modifications: - Add `notify-entry-not-found` preference to the watch `Prefer` header. - https://datatracker.ietf.org/doc/html/rfc7240#section-4 Result: - You can now get notified if the entry doesn't exist when watching. To-do: - Add the option to client-side
Codecov Report
@@ Coverage Diff @@
## master #610 +/- ##
============================================
+ Coverage 69.88% 69.91% +0.03%
- Complexity 3281 3291 +10
============================================
Files 332 332
Lines 13036 13097 +61
Branches 1404 1416 +12
============================================
+ Hits 9110 9157 +47
- Misses 3062 3069 +7
- Partials 864 871 +7
Continue to review full report at Codecov.
|
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.
Thanks! @minwoox
Thanks for reviewing. 😉 |
### Motivation - #532 - To-Do of #610 ### Modifications - Put value of `notify-entry-not-found` on `Prefer` request header to get error that entries are not found on watching file/repository - Propagate error that entries are not found into `Watcher#initialValueFuture` ### Result - You can get error on watching file/repository if the entry doesn't exist.
Motivation:
Related #532
Currently, when we try to watch a file that doesn't exist,
the watch API waits until the file is added or timeout happens.
It sometimes makes user difficult to debug because the client cannot distinguish such cases.
Modifications:
notify-entry-not-found
preference to the watchPrefer
header.Result:
To-do: