Return true from index-exists? only on status=200#25
Return true from index-exists? only on status=200#25devn wants to merge 7 commits intothreatgrid:masterfrom
Conversation
ereteog
left a comment
There was a problem hiding this comment.
Great, thank you!
Could you add a dedicated test please?
|
I've added a few tests. If you'd prefer these run within the context of multiple es versions, let me know, however it did not seem necessary as the behavior for |
|
Does it look good to you, though? 😅 After thinking about it a little more, the behavior here should be similar to calls that use Unfortunately, since As I see it there are a couple of options that come to mind:
Given the tradeoffs of 2, it seems better to just build a basic If you have another suggestion I'd be interested to hear it, otherwise I'll go ahead and implement the option 1 when I find some time. |
|
FWIW I made the change to throw on unauthorized, unknown error, etc. I think you mentioned in passing that you might have reason not to want this, but it made the most sense to me. |
|
Yes it makes sense, thank you. |
See #24 for additional detail.