Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with unnecessary comment_body field #5174

Open
Tracked by #5240 ...
stpaultim opened this issue Aug 24, 2021 · 2 comments
Open
Tracked by #5240 ...

Problem with unnecessary comment_body field #5174

stpaultim opened this issue Aug 24, 2021 · 2 comments

Comments

@stpaultim
Copy link
Member

Description of the bug

Not entirely sure if this is a bug or not. But, I've been testing config management to deploy a site and working through a number of issues. The one outstanding issue that I run into is this error.

The field instance "Comment" cannot be created because the field type "comment_body" does not exist.

The comment module is disabled on both the source and destination sites and we are not using comments on this site.

  1. How did these config files get generated and why are they still here causing trouble?

NOTE: In testing config recipes I created a new content type and noticed that for each node type, a comment body config file was generated, even if comments are disabled. Is it possible to either:

a) avoid making these config files if they are not needed.
b) figure out how to bypass this problem during config import.

@stpaultim
Copy link
Member Author

@klonos - Did you say that the patch for #5163 (using config to enable modules) might actually resolve this issue?

@klonos
Copy link
Member

klonos commented Aug 24, 2021

The comment module is disabled on both the source and destination sites and we are not using comments on this site.

How did these config files get generated and why are they still here causing trouble?

You say "disabled" @stpaultim ...can you please confirm that the module is also uninstalled on the source site? Uninstalling the module should have removed any config that it might have left behind in the source site. If not, then we need to work on that.

In testing config recipes I created a new content type and noticed that for each node type, a comment body config file was generated, even if comments are disabled.

That sounds wrong to me. We should fix it ^^

@klonos - Did you say that the patch for #5163 (using config to enable modules) might actually resolve this issue?

Not exactly. What #5163 would help with is that if the Comment module was enabled on the source site, but disabled on the destination site, then it would enable it for you. The scenario you are describing here is different though:

  • the Comment module seems to not be fully uninstalled in the source site (I could be wrong about this - please confirm)
  • there is comment-related config in the source site, which is included in the config export

I think that we might have another idea here that we need to consider/explore with re to improving config management: On the source site, do not include configuration that we know for sure that it belongs to modules that have been disabled/uninstalled. Is that risky though? 🤷🏼 (I think so)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants