Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Implement a metrics resource using Vumi blinkenlights metrics publishers. #134

Merged
merged 8 commits into from
Dec 21, 2012

Conversation

hodgestar
Copy link
Contributor

No description provided.

if isinstance(user_account, basestring):
user_account_key = user_account
else:
user_account_key = user_account.key
Copy link
Member

Choose a reason for hiding this comment

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

Do we really need to accept both of these here? I'd prefer to have the caller extract the key if necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't really mind -- I was just trying to fit in with publish_conversation_metric which takes a conversation but not require people to look up the account if they only have the key.

@ghost ghost assigned hodgestar Dec 20, 2012
@jerith
Copy link
Member

jerith commented Dec 21, 2012

👍

@hodgestar hodgestar merged commit d038103 into develop Dec 21, 2012
@hodgestar
Copy link
Contributor Author

This replaced #121.

def _test_error(self, cmd, expected_error):
with LogCatcher() as lc:
reply = self.resource.handle_fire(self.dummy_api, cmd)
self.assertEqual(lc.messages(), [expected_error])
Copy link
Member

Choose a reason for hiding this comment

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

Why isn't this in lc.errors ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because we use log.warning to log the error. :)

@hodgestar hodgestar deleted the feature/issue-121-jsbox-metrics-resource-2 branch December 21, 2012 08:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants