Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Conversation

mgrauer
Copy link
Contributor

@mgrauer mgrauer commented Jul 28, 2016

No description provided.

@mgrauer mgrauer changed the title [WIP] Consume tracker producer Consume tracker producer Aug 3, 2016
@mgrauer
Copy link
Contributor Author

mgrauer commented Aug 3, 2016

@cpatrick PTAL

$trendModel->setAggregatableTrendAsKeyMetrics($producerDao, $keyMetric->name);
$trendThresholdModel->upsert($producerDao, $keyMetric->name,
isset($keyMetric->abbreviation) ? $keyMetric->abbreviation : false,
isset($keyMetric->warning) ? $keyMetric->warning :
Copy link
Contributor

Choose a reason for hiding this comment

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

I have a fear of nested ternaries (I was bitten as a child). Could you create a more clear helper function and use that here rather than the nested ternaries?

@cpatrick
Copy link
Contributor

cpatrick commented Aug 3, 2016

Very nice. Once nit and LGTM!

@mgrauer
Copy link
Contributor Author

mgrauer commented Aug 3, 2016

@cpatrick nit picked.

@cpatrick
Copy link
Contributor

cpatrick commented Aug 3, 2016

Much better. LGTMWTIH.

@mgrauer mgrauer merged commit b7beda2 into master Aug 3, 2016
@mgrauer mgrauer deleted the consume_tracker_producer branch August 3, 2016 17:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants