Skip to content

Commit

Permalink
feat(api): load workflow without its base64 icon (#5140)
Browse files Browse the repository at this point in the history
Signed-off-by: francois  samin <[email protected]>
  • Loading branch information
fsamin authored Apr 22, 2020
1 parent 694579e commit 8729e39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/api/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (api *API) getWorkflowHandler() service.Handler {
withTemplate := FormBool(r, "withTemplate")
withAsCodeEvents := FormBool(r, "withAsCodeEvents")
minimal := FormBool(r, "minimal")
withoutIcons := FormBool(r, "withoutIcons")

proj, err := project.Load(api.mustDB(), key, project.LoadOptions.WithIntegrations)
if err != nil {
Expand All @@ -81,7 +82,7 @@ func (api *API) getWorkflowHandler() service.Handler {
opts := workflow.LoadOptions{
Minimal: minimal, // if true, load only data from table workflow, not pipelines, app, env...
DeepPipeline: withDeepPipelines,
WithIcon: true,
WithIcon: !withoutIcons,
WithLabels: withLabels,
WithAsCodeUpdateEvent: withAsCodeEvents,
WithIntegrations: true,
Expand Down

0 comments on commit 8729e39

Please sign in to comment.