-
Notifications
You must be signed in to change notification settings - Fork 203
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
timelineview now shows the name and groups - better overview, if you … #340
base: master
Are you sure you want to change the base?
Changes from all commits
d01926c
c68bad2
929b35f
ceccff4
194a9a7
79e375d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
phpunit*.phar | ||
phpunit*.phar | ||
.idea/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,7 @@ | |
* @method Aoe_Scheduler_Model_Job setParameters($parameters) | ||
* @method string getParameters() | ||
* @method Aoe_Scheduler_Model_Job setGroups($groups) | ||
* @method string getGroups() | ||
* @method Aoe_Scheduler_Model_Job setOnSuccess($onSuccess) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did you remove setOnSuccess and getOnSuccess? these methods are being used |
||
* @method string getOnSuccess() | ||
* @method array getGroups() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. getgroups can be removed from here as it's implemented below. |
||
* @method Aoe_Scheduler_Model_Job load($jobCode) | ||
* @method Aoe_Scheduler_Model_Resource_Job getResource() | ||
* @method Aoe_Scheduler_Model_Resource_Job_Collection getCollection() | ||
|
@@ -55,6 +53,15 @@ public function getName() | |
return $name; | ||
} | ||
|
||
public function getGroups() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please add doc comment with return type |
||
{ | ||
$groups = $this->getData('groups'); | ||
if (empty($groups)) { | ||
$groups = $this->getJobCode(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like it. Its surprising to get jobCode from getGroups getter.
which can be simplified to "if ($_groups):" once you remove adding of $this->getJobCode(); to groups, right? |
||
} | ||
return $groups; | ||
} | ||
|
||
/** | ||
* @param bool $flag | ||
* | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets be non breaking by keeping the old method.