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

config-status is not reflecting config splits #3596

Closed
webfordreams opened this issue Jun 28, 2018 · 4 comments · Fixed by #3600
Closed

config-status is not reflecting config splits #3596

webfordreams opened this issue Jun 28, 2018 · 4 comments · Fixed by #3600

Comments

@webfordreams
Copy link

webfordreams commented Jun 28, 2018

Versions used
Drupal version : 8.5.4
Drush version : 9.3.0

Steps to reproduce

  • Install config_split module.
  • Set up a config split with the name local and add the devel module to it. (in my example I also added the chosen module).
  • Export the config split configs drush csex local
  • Export the rest of the configs drush cex and confirm the devel related configs are not exported in the default directory.
  • Check if all configs are exported well by importing again drush cim
  • Check the status of configs with drush config-status

Results
image
image

Expected Results
I expect drush config-status to reflect the actual status of config export, like seen in admin/config/development/configuration, taking into account the config splits that are active, hence in this example resulting in No differences between DB and sync directory.

@weitzman
Copy link
Member

ping @Chi-teck

@Chi-teck
Copy link
Collaborator

I followed the described steps using the same environment (Drupal 8.5.4, Drush 9.3.0) and could not reproduce the issue. The drush config-status says that there are no differences between DB and sync directory.

@webfordreams
Copy link
Author

Thank you @Chi-teck for your time. I found the issue:

With $config_directories['sync'] = DRUPAL_ROOT . "/../config/default"; in the settings.php file, all other config use cases works normally, but apparently not drush config-status.

When I changed it to $config_directories['sync'] = "../config/default"; it worked as expected, also drush config-status.

@Chi-teck
Copy link
Collaborator

Chi-teck commented Jul 2, 2018

I can confirm the issue when $config_directories['sync'] = DRUPAL_ROOT . "/../config/default"; It actually the same problem as in #3392. Feel free to review the PR.

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

Successfully merging a pull request may close this issue.

3 participants