Skip to content

Commit

Permalink
Put back soft fail validation
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-ba committed Aug 25, 2023
1 parent 57e6eb8 commit 8d1d766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/lightning_web/live/job_live/manual_run_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ defmodule LightningWeb.JobLive.ManualRunComponent do
|> put_embed(:user, user)
|> validate_required([:project, :job, :user])
|> remove_body_if_dataclip_present()
|> Lightning.Validators.validate_exclusive(
[:dataclip_id, :body],
"Dataclip and custom body are mutually exclusive."
)
|> Lightning.Validators.validate_one_required(
[:dataclip_id, :body],
"Either a dataclip or a custom body must be present."
Expand Down

0 comments on commit 8d1d766

Please sign in to comment.