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

Fix wrong state mapping in config:status command #3053

Merged
merged 1 commit into from
Oct 11, 2017
Merged

Fix wrong state mapping in config:status command #3053

merged 1 commit into from
Oct 11, 2017

Conversation

Chi-teck
Copy link
Collaborator

@Chi-teck Chi-teck commented Oct 11, 2017

"Different" state should stand for "update" operation and be displayed in yellow to match drush cex / drush cim commands.

@Chi-teck Chi-teck changed the title Fixed wrong state mapping in config:status command Fix wrong state mapping in config:status command Oct 11, 2017
'update' => 'Only in sync dir',
'delete' => 'Different',
'update' => 'Different',
'delete' => 'Only in sync dir',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any chance that Create and Delete are flipped? In the context of an import, if a file is only in sync dir that will lad to a 'create', not a 'delete'.

Copy link
Collaborator Author

@Chi-teck Chi-teck Oct 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose it only depends on the order of parameters passed to StorageComparer constructor.

Drush passes active storage in first parameter, so it is considered as source (storage object used to read configuration).
https://github.com/drush-ops/drush/blob/9.0.0-beta7/src/Drupal/Commands/config/ConfigCommands.php#L320

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 this pull request may close these issues.

2 participants