Skip to content

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