-
Notifications
You must be signed in to change notification settings - Fork 808
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
chore(dependencies): Upgrade Spring Boot to 2.2.1 #3333
Changes from all commits
27ed129
fd43ac4
688e1f9
952011f
5670953
579fa88
91d6335
9dab045
a7c321c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
|
||
import com.fasterxml.jackson.core.type.TypeReference; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import com.netflix.spinnaker.kork.artifacts.model.ExpectedArtifact; | ||
import com.netflix.spinnaker.orca.front50.PipelineModelMutator; | ||
import com.netflix.spinnaker.orca.pipelinetemplate.exceptions.TemplateLoaderException; | ||
import com.netflix.spinnaker.orca.pipelinetemplate.loader.TemplateLoader; | ||
|
@@ -29,6 +28,7 @@ | |
import com.netflix.spinnaker.orca.pipelinetemplate.v1schema.render.RenderContext; | ||
import com.netflix.spinnaker.orca.pipelinetemplate.v1schema.render.RenderUtil; | ||
import com.netflix.spinnaker.orca.pipelinetemplate.v1schema.render.Renderer; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.stream.Collectors; | ||
|
@@ -128,7 +128,6 @@ private void applyConfigurationsFromTemplate( | |
} | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
private void applyConfigurations( | ||
PipelineConfiguration configuration, Map<String, Object> pipeline) { | ||
if (configuration.getConcurrentExecutions() != null) { | ||
|
@@ -165,7 +164,7 @@ private void applyConfigurations( | |
TemplateMerge.mergeDistinct( | ||
pipelineTemplateObjectMapper.convertValue( | ||
pipeline.get("expectedArtifacts"), | ||
new TypeReference<List<ExpectedArtifact>>() {}), | ||
new TypeReference<List<HashMap<String, Object>>>() {}), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what was the reason for removing the ExpectedArtifact here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've committed this change in its own commit within the PR so it'd be documented: 27ed129 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! |
||
configuration.getExpectedArtifacts())); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you describe what problem you ran into here and why all the extra code was necessary to work around it - not sure I totally understand the justification just from looking at it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was also committed in its own commit to help document the change: 688e1f9 It should explain the problem at the method level.
Feel free to read these issues/PRs to better grasp the overall context: https://docs.google.com/spreadsheets/d/112ul54xZGcN5pgKfd4hJlcstDGue-0LWghyNQ8lqBEc
A better fix would require a lot more time/effort, although probably not too much for someone with deep knowlege of the codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍