Closed (fixed)
Project:
Configuration Management
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Jul 2012 at 18:44 UTC
Updated:
30 Jul 2012 at 22:04 UTC
Jump to comment: Most recent file
Comments
Comment #1
dagmarHere is the patch.
Comment #2
redndahead commentedcomponent is misspelled, it says compontent Also all calls to that function is misspelled.
Comment #3
lucascaro commentedSince we're changing the name already, would it make sense to call this function configuration_update_component_status() instead?
Comment #4
dagmarThanks, renamed the function. Added docs.
Comment #5
redndahead commentedAs an aside patches that look like this are always awesome: 9 files changed, 61 insertions, 315 deletions.
componenet => component
Edit: I was wrong with what I typed here. I think I'll try and create a patch that makes some changes.
Comment #6
redndahead commentedHere is a patch that I believe accomplishes the same thing. It'll need a look over.
Comment #7
redndahead commentedComment #8
lucascaro commentedI like how this simplifies the logic, maybe we should break the long line with the (?:) into an if/else statement to make it even more readable?
Comment #9
lucascaro commented@dagmar here's the interdiff just in case:
Comment #10
redndahead commentedThis makes the ternary more readable. I'm assuming |= will accomplish the same thing.
Comment #11
dagmarComment #12
redndahead commentedDo you care if the $from_activestore is TRUE/FALSE or will 1 or something that evaluates to true work? Then we can remove the explicit == TRUE. Even if we leave it we should probably make it ===
Comment #13
lucascaro commentedIndeed, that looks better. I'd say let's remove the redundant == TRUE
Comment #14
redndahead commentedHere is the patch.
Comment #15
dagmarThanks @redndahead
Comment #16
lucascaro commentedCommitted, thanks @redndahead, @dagmar.
Comment #17
GDrupal commentedThere is a new issue in tracking configurations that can be fixed with this patch.
Comment #18
GDrupal commentedI'm rewriting much of the ctool code for another issue and a better fix will be provided here:
http://drupal.org/node/1538502