Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

FIX: Create PipelineRun return 409 if already exists, with detail codes to distinguish different 409s (#TIPD-2118) #60

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

JeroennC
Copy link
Contributor

@JeroennC JeroennC commented Dec 5, 2019

No description provided.

@codecov
Copy link

codecov bot commented Dec 5, 2019

Codecov Report

Merging #60 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #60      +/-   ##
==========================================
+ Coverage   99.86%   99.86%   +<.01%     
==========================================
  Files          41       41              
  Lines         734      746      +12     
==========================================
+ Hits          733      745      +12     
  Misses          1        1
Impacted Files Coverage Δ
katka/views.py 100% <100%> (ø) ⬆️
katka/releases.py 100% <100%> (ø) ⬆️
katka/exceptions.py 100% <100%> (ø) ⬆️

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 e9c16b7...bf501b0. Read the comment docs.

@JeroennC JeroennC force-pushed the master branch 2 times, most recently from 57cdb95 to f01d657 Compare December 6, 2019 10:40
@JeroennC JeroennC changed the title FIX: Create PipelineRun return 201 if already exists (#TIPD-2118) FIX: Create PipelineRun return 409 if already exists, with detail codes to distinguish different 409s (#TIPD-2118) Dec 6, 2019
@@ -103,7 +103,7 @@ def _add_output(pipeline_output: dict, step_output: str) -> None:
try:
pipeline_output.update(json.loads(step_output))
except json.JSONDecodeError:
logging.warning("Invalid JSON in step output")
log.warning("Invalid JSON in step output")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@@ -27,6 +29,8 @@
from rest_framework import serializers
from rest_framework.exceptions import PermissionDenied

log = logging.getLogger("katka")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not being used anymore? or is this a fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :) this can be removed idd

…ent 409s with details in the response (#TIPD-2118)
@JeroennC JeroennC merged commit 6954937 into kpn:master Dec 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants