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

Fix for issues not being marked as resolved #149

Merged
merged 1 commit into from
Dec 16, 2019
Merged

Conversation

orels1
Copy link
Contributor

@orels1 orels1 commented Apr 12, 2017

The "resolved" label is not in list of labels created by the system, so that caused

if not affected_systems or severity is None:

to have severity = None, which basically made it ignore closed issues with no severity status (since you remove the label), after resolving an issue.

Now it works as intended. User removes severity label, closes the issue - statuspage generates proper resolved issue in the list.

This fix also avoids template render error stated in #96

The "resolved" label is not in list of labels created by the system, so that caused that 
```python
if not affected_systems or severity is None:
```
to have `severity = None`, which basically made it ignore closed issues with no severity status (since you remove the label), after resolving an issue).

Now it works as intended. User removes severity label, closes the issue - statuspage generates proper resolved issue in the list.
@codecov-io
Copy link

codecov-io commented Apr 12, 2017

Codecov Report

Merging #149 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #149   +/-   ##
=======================================
  Coverage   81.32%   81.32%           
=======================================
  Files           2        2           
  Lines         316      316           
=======================================
  Hits          257      257           
  Misses         59       59
Impacted Files Coverage Δ
statuspage/statuspage.py 72.81% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9b734c...fd19e9c. Read the comment docs.

@jayfk jayfk merged commit 7a9e90a into jayfk:master Dec 16, 2019
@jayfk
Copy link
Owner

jayfk commented Dec 16, 2019

Thanks!

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.

3 participants