Skip to content
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

Add missing silent paramater, and cast status to Int before comparing #2395

Merged
merged 2 commits into from
Mar 4, 2017
Merged

Add missing silent paramater, and cast status to Int before comparing #2395

merged 2 commits into from
Mar 4, 2017

Conversation

tmdvs
Copy link
Contributor

@tmdvs tmdvs commented Mar 1, 2017

It would appears that if an incident has no updates and you check the parent incident's status, it can often be a string rather than an Int. I noticed this was the case with incidents being created and updated via the Cachet API and a number of popular third party tools/monitors.

Copy link
Member

@jbrooksuk jbrooksuk left a comment

Choose a reason for hiding this comment

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

Don't we cast status as an int on the model though?

@tmdvs
Copy link
Contributor Author

tmdvs commented Mar 1, 2017

Hmm I thought so, however some updates created via the API seem to have strings for statuses. I had an incident with a status of 4 in the DB but if I dumped status in that comparison it was definitely a string.

@jbrooksuk jbrooksuk merged commit f1cff46 into cachethq:2.4 Mar 4, 2017
@jbrooksuk
Copy link
Member

I couldn't merge this on my phone, sorry for the delay!

@tmdvs
Copy link
Contributor Author

tmdvs commented Mar 4, 2017

No worries! Glad to have been able to contribute 👍🏼

@jbrooksuk
Copy link
Member

If you're into design stuff, we're looking for a new dashboard 😜

I hope to see more contributions! :)

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.

None yet

2 participants