Cleanup domain details when domain is deleted#4445
Conversation
When domain is deleted, all the settings configured under the domain scope still exists in domain_details table. All the entries for the domain should be deleted as well
|
@ravening , this sounds like something that should be done in a cascading delete in sql. I see only java changes, any thoughts? |
Anything is fine with me as long as entries are cleaned up |
|
I think doing this in java is error prone. if the domain is marked removed it doesn't hurt to keep the details around and if the domain records is actually removed it should be removed with a cascading delete. the only possible reason to do it this way is if we have other 'child' records to domain that we do want to keep when domains are deleted. |
|
@DaanHoogland I do not see any harmless to remove the records from db. however if you want to keep it in db, it is ok for me. @ravening |
|
@ravening Moving to 4.16.0.0 milestone based on base branch please update if needed |
@ravening @shwstppr @DaanHoogland maybe better to merge this into 4.14 ? |
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2593 |
@weizhouapache it will need rebasing for that. cc @ravening |
|
LGTM, business layer only changes; merging based on Travis tests. LGTM. |
Description
Cleanup domain details when domain is deleted
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Before the fix
After the fix