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

resolvedAfter wording is always "of downtime" even when issue severity is marked as distrupted #264

Open
nbarton915 opened this issue Apr 12, 2023 · 4 comments

Comments

@nbarton915
Copy link
Contributor

nbarton915 commented Apr 12, 2023

Describe the bug
When viewing past issues that have been resolved, the wording is always Resolved after <x time> of downtime even if an issue is marked as disrupted for it's severity.

Pre-Reqs

  • Ensure disableIncidentHistory: false
  • Ensure at least one incident has been created with severity: disrupted

Reproduction steps
Steps to reproduce the behavior:

  1. Scroll to Incidents tab at the bottom of the page
  2. Assert defined incident summary appears. Success ✔️
  3. Assert defined incident summary describes the appropriate severity level (disrupted). Assertion Failed ❌
  4. Click on incident summary
  5. Assert incident details page is shown. Success ✔️
  6. Assert incident details page describes the appropriate severity level (disrupted). Assertion Failed ❌

Expected behavior
I am very pleased to find a project that is simple to set up and simple to understand. I like the use of Operational, Notice, Disrupted, and Down (or downtime). The expected behavior in this case is to describe a past issue as the severity level set in the incident markdown (either notice or disrupted).

For example: If I had an incident that lasted 9 minutes until resolved and had the disrupted severity level, I would expect the message to be: Resolved after 9m of disruption. both in the incident summary and the incident details.

Screenshots
The following past incident had a severity of disrupted because no components ever were down. However, it appears that the severity was down because the text says: Resolved after 4m of downtime

image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser: Firefox, Chrome, Chromium
  • Version: cstate v5.5.1

Additional context
The words down and downtime are filled with weight in our organization. We only use them if they are factually true. If an incident did not result in downtime then it would be nice to have past incidents represent that.

Thanks for all of your hard work. We really enjoy this project.

@mistermantas
Copy link
Member

mistermantas commented Apr 16, 2023

Thanks for your issue.

Definitely an oversight on my part.

I think simply removing the word "downtime" (unless it is actually downtime) would fix this issue, e.g. Resolved after 4m

When it comes to editing the UI text, though, I am hesitant to do it because there's people using translations and I'm not confident enough to call myself a polyglot yet.

So, definitely doable for the english (and lithuanian) versions right off the bat, will need to look into how to not break the grammatical/lexical structure in other languages

you should be able to override the language files or layout files in your local install of the status page, by the way, to fix this faster

@nbarton915
Copy link
Contributor Author

Thanks for the suggestion. I'll take a look to see what options I have with our installation method being github pages. I'm sure that I can fork cstate, but I would prefer to keep the link to your project in case there are other changes that come down the pipe. I'll give it some thought and proceed based on your feedback.

I'll also keep watching this item in case there are any updates.

Thanks!

@nbarton915
Copy link
Contributor Author

Like you said, only showing the word downtime if the severity is down seems like the way to go. I have a commit in a branch here that appears to accomplish that without messing with the grammar.

I'm going to do some more testing, but if you are open to it, I'd be happy to create a PR. If so, would you like the PR into master or dev?

@mistermantas
Copy link
Member

PRs are sent to dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants