Status Alert Misinformation

I love this new status alert on the forum… only that in this case it’s a bit of misinformation because the main Bubble cluster isn’t down, but it’s the Sendgrid API with degraded performance…

@josh @allenyang @eve fyi

Thanks for reporting this, we’ll look into it.

2 Likes

If you guys are using the Discourse Atlassian Component, in the javascripts > discourse > components > status-alert.js you can change it from:

import Component from "@ember/component";
const API_ENDPOINT = settings.status_endpoint;

export default Component.extend({
  showStatus: null,
  statusText: null,
  statusHref: null,

  init() {
    this._super(...arguments);
    this.set("statusHref", settings.status_more_info_link.replace(/http(s)*:\/\//g,""));

    if (settings.failed_status_test) {
      this.set("showStatus", true);
      this.set("statusMessage", settings.failed_status_message);
    } else {
      try {
        fetch(API_ENDPOINT)
        .then(response => response.json())
        .then(data => {
          let { status } = data;
          if (status.description !== "All Systems Operational" ) {
            this.set("statusMessage", settings.failed_status_message)
            this.set("showStatus", true)
          }
        }); 
      } catch (error) {
        console.warn(error)
      }
    }
  },

})

to…

import Component from "@ember/component";
const API_ENDPOINT = settings.status_endpoint;

export default Component.extend({
  showStatus: null,
  statusText: null,
  statusHref: null,

  init() {
    this._super(...arguments);
    this.set("statusHref", settings.status_more_info_link.replace(/http(s)*:\/\//g,""));

    if (settings.failed_status_test) {
      this.set("showStatus", true);
      this.set("statusMessage", settings.failed_status_message);
    } else {
      try {
        fetch(API_ENDPOINT)
        .then(response => response.json())
        .then(data => {
          let { status } = data;
          if (status.description == "Major Service Outage" ) {
            this.set("statusMessage", settings.failed_status_message)
            this.set("showStatus", true)
          } else if (status.description == "Partial System Outage") {
            this.set("statusMessage", settings.failed_status_message)
            this.set("showStatus", true)
          }
        }); 
      } catch (error) {
        console.warn(error)
      }
    }
  },

})

so it only appears when there is either a Major Outage or Partial Outage on the page

Or maybe you can change the wording of the alert because it’s an imgix major outage right now, but the alert says that the main Bubble cluster is potentially having issues.

1 Like