backdrop-issues icon indicating copy to clipboard operation
backdrop-issues copied to clipboard

Some setting files not being deleted after deleting a content type

Open robertgarrigos opened this issue 2 years ago • 4 comments

Description of the bug

After deleting a test content type, some settings files are still present on config/active directory.

Steps To Reproduce

  1. Create a new content type named 'test' and clic on 'save and add fields'
  2. Just don't add any field, but go to config tab and delete the content
  3. confirm deletion

Actual behaviour

The following settings files are still present on config/active:

  • field.instance.comment.comment_node_test.comment_body.json
  • field.instance.node.test.body.json

Expected behaviour

I would say those files shouldn't be there. Am I wrong?

Additional information

Backdrop v. 1.23.0

robertgarrigos avatar Nov 14 '22 11:11 robertgarrigos

@robertgarrigos this is mostly a duplicate of #5469.

As for the body field config: you still might have body field content for field.instance.node.test.body in the database.

indigoxela avatar Nov 14 '22 11:11 indigoxela

thanks, @indigoxela. I did look for it before posting mine....

As for the body field config: you still might have body field content for field.instance.node.test.body in the database.

Actually, I don't.

robertgarrigos avatar Nov 14 '22 14:11 robertgarrigos

Interesting... I'm pretty sure, you didn't run cron in the meantime, because when I run cron, that node body field json file gets removed.

  • For the field.instance.comment.comment_node_test.comment_body.json we already have an issue
  • The field.instance.node.test.body.json thing gets fixed by a cron run

indigoxela avatar Nov 14 '22 14:11 indigoxela

No, I didn't run cron. ok. Thanks.

robertgarrigos avatar Nov 14 '22 16:11 robertgarrigos

No, I didn't run cron. ok. Thanks.

Closing, assuming the cron run solved this. (Reopen if I'm wrong.)

laryn avatar Feb 16 '24 18:02 laryn