Batch delete#214
Conversation
|
|
|
This is based on #212 which we still are discussing, so I will ignore those commits.
From discussion in #212
I am still quite hesitant over us including code here in main CF for local development needs. I am fine with it if the extension/code change(s) themselves make sense, but surely there are better ways to improve local dev workflow? |
|
I can remove 404, maybe a 400 bad request might be more suited for situations where we are trying to delete non-existing channels It is saveall that was using refresh.True. I have updated the Issue, considering this is still a Channel operation I think the current role mapping is correct. It is also consistent with the other batch channel operations.
These are not changes for local development needs. |
I think 400 also is wrong as it signifies malformed syntax, which this is not. Unfortunately the RFCs don't cover batch, or rather synchronous batch i.e. bulk, but the common three strategies here are:
My thought process was that it maybe ought to have been a 502 or 503 instead. I am not sure. I think maybe we really should have both 500 and 503 with Retry-After - the latter for temporary ES failure and fallback 500.
I am happy with adding the bulk delete feature itself, but I think the point about package location from the linked PR applies also here, and I do not like the inclusion of the additive mix of query params and request body handling. I would personally prefer to see e68dbe4 split out but it's not a blocker. |
|
But maybe @jacomago wants to chime in before more work is invested? (He is in training so might be preoccupied.) |
|
I will split these out into individual PR's |



Addresses issue #213
This PR should be merged after #212