Skip to content

Warn subscribers only when component state changes #1989

@fdhex

Description

@fdhex

Before submitting your issue, please make sure that you've checked the checkboxes below.

  • I am running the 2.3.6 version of Cachet.
  • I am running at least PHP 5.5.9. You can check this by running php -v.
  • I have ran rm -rf bootstrap/cache/*.

Expected behaviour

I have an external component which uses the API to issue various components status updates, I think that when an API call is sent which actually does -not- change the status, subscribers should not be warned as nothing changed. I understand that I can refactor my stuff, but I still think there should be at least an optional way to disable email updates when component status is not updated, instead of whenever an API PUT is made.

Actual behaviour

Emails are sent to subscribers whenever a PUT is made to the component even if the status is the same.

Steps to reproduce

From an initial operational status, update to Major Outage (get an email), update to Operational (get an email), update to Operational again (get another email).

Metadata

Metadata

Assignees

Labels

BugBugs with Cachet

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions