endpoint to delete lookup tier and remove tier on last lookup deletion#7852
endpoint to delete lookup tier and remove tier on last lookup deletion#7852himanshug merged 1 commit intoapache:masterfrom
Conversation
|
Hmmm, how should this interact with the lookup view in the web console? Would it make more sense for the remove lookup tier endpoint to tidy up after itself if it is removing the last lookup in a tier? |
|
@vogievetsky with this patch, on the server , a tier would automatically be deleted when last lookup in it gets deleted. so for web console, it would make sense to do so as well. Also maybe add something for calling the newly added delete tier endpoint . |
Oh cool. That is what I was asking.
If going forward a tier will be auto deleted when the last lookup is deleted, under what circumstances would a user want to do that? Would it bulk delete all the lookups in that tier? Or did you add it as a way to remove empty tiers that might be left behind in the current version of Druid? |
both :) |
Fixes #4940