-
Notifications
You must be signed in to change notification settings - Fork 444
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
Expand workflow run with payload info #14527
Expand workflow run with payload info #14527
Conversation
8fa7b63
to
f42caf2
Compare
I'm not sure about the benefits of extracting that extractor class... Can we leave that for another PR? Maybe then we can expand that refactoring further... |
What are you unsure about? |
ce57d59
to
3bea712
Compare
We extract that class, but we don't use it anywhere else. I don't see any benefit in moving that code to it's own class. |
Smaller class, easier re-use (see the data migration for instance). |
3bea712
to
ec0d62b
Compare
5d3fe6d
to
40d85a1
Compare
fc30575
to
de976c5
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #14527 +/- ##
==========================================
+ Coverage 87.18% 87.22% +0.03%
==========================================
Files 741 742 +1
Lines 24970 24954 -16
==========================================
- Hits 21771 21765 -6
+ Misses 3199 3189 -10 |
Which data migration? I'm a bit lost here... I only see it being used here |
de976c5
to
c548bf1
Compare
It's gone by now. So is the service. |
c548bf1
to
c02c36d
Compare
Do not merge because it contains an "unsafe" data migration that probably needs to be run in the maintenance window |
7c3488b
to
8daf783
Compare
Managed to move the migrations out to #14541 |
8daf783
to
255ac12
Compare
edd1dee
to
4af5795
Compare
We have the data in the attributes by now.
4af5795
to
1c45d3f
Compare
Two controller concerns to extract data from the HTTP requests to fill `WorkflowRun` attributes.
- there is a functioning default (:workflow_run) - with traits for various events and states - there is a SCM vendor (gitlab) specific factory that builds on top of the default
1c45d3f
to
9f9929c
Compare
Extract some of the important information that is in the SCM webhook HTTP request (headers/body) into
WorkflowRun
attributes so they are easier to query.