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

Feature/commit order #52

Merged
merged 1 commit into from
Nov 13, 2019
Merged

Feature/commit order #52

merged 1 commit into from
Nov 13, 2019

Conversation

mjholtkamp
Copy link
Contributor

No description provided.

Comment on lines -38 to -42
if kwargs['created'] is True:
create_release_if_necessary(pipeline)
else:
close_release_if_pipeline_finished(pipeline)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved this down to its own post_save signal

@codecov
Copy link

codecov bot commented Nov 13, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   99.84%   99.85%   +<.01%     
==========================================
  Files          38       39       +1     
  Lines         658      702      +44     
==========================================
+ Hits          657      701      +44     
  Misses          1        1
Impacted Files Coverage Δ
katka/constants.py 100% <100%> (ø) ⬆️
katka/views.py 100% <100%> (ø) ⬆️
katka/signals.py 100% <100%> (ø) ⬆️
katka/migrations/0027_commit_ordering.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 d8d26b6...f3b79e0. Read the comment docs.

JeroennC
JeroennC previously approved these changes Nov 13, 2019
katka/views.py Outdated
@@ -95,6 +101,57 @@ class SCMPipelineRunViewSet(FilterViewMixin, AuditViewSet):
'release': 'scmrelease',
}

def perform_update(self, serializer):
status = serializer.initial_data.get('status', None)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be verified data?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! First I had initial_data, but I changed it (not here) to validated_data). I'll update it!

@mjholtkamp mjholtkamp merged commit 880dbee into master Nov 13, 2019
@mjholtkamp mjholtkamp deleted the feature/commit-order branch November 13, 2019 14:44
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