-
-
Notifications
You must be signed in to change notification settings - Fork 238
Resolved after 0 minutes should just be resolved #28
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
Comments
I have followed the following instructions:
mkdir themes; cd themes;
git submodule add https://github.com/cstate/cstate
I have made changes in the local repo and tested it. What's next? |
Make a pull request. |
I checked the repo, these are not the changes that needed to be made. This is supposed to be a somewhat complex Hugo if statement made in |
I made following changes in the <span class="ok">
{{ $t := (time .Params.ResolvedWhen) }}
{{ $timeDiff := (sub $t.Unix .Date.Unix) }}
{{ $diffInMin := (div $timeDiff 60) }}
{{ if lt $timeDiff 60 }}
✓ Resolved
{{ else }}
✓ Resolved after
{{ if gt $timeDiff 3600 }}
{{ $minutesForCalc := (mod $diffInMin 60) }}
{{ div (sub $diffInMin $minutesForCalc) 60 }}h
{{ $minutesForCalc }}m of downtime
{{ else }}
{{ $secsForCalc := (mod $timeDiff 60) }}
{{ div (sub $timeDiff $secsForCalc) 60 }}m
<!-- {{ $secsForCalc }}s --> of downtime
{{ end }}
{{ end }}
</span> Then I created 2 more issues in the Incident and resolution time is same i.e. 0 second
Incident and resolution time is less than a minute i.e. 59 seconds
The old incidents are showing hours and/or minutes as usual. Incident and resolution time is more than a minute but less than an hour i.e. 27 minutes
Incident and resolution time is more than an hour i.e. 1 hour 36 minutes
However, my changes are not visible in the forked repo. I am not sure how can I do that. |
You have the code right here. I mean you could technically reset the repo (just delete it and fork it again) then submit a PR :) |
Let me try it. :) |
Having issues? :) |
Didn't try yet. Been busy in other tasks. Will try to do it later tonight. :) |
Tried again: #30 |
Alright, moving discussion to there. |
No description provided.
The text was updated successfully, but these errors were encountered: