job invocation api doesnt show all validation errors
When saving a job invocation the validation checks `job_invocation`, `targeting` and `pattern_template_invocations`.
But the it shows error info only for job_invocation and will not show information about targeting and pattern_template_invocations errors.
context code in `app/models/job_invocation_composer.rb`
def save! if valid? job_invocation.save! else raise job_invocation.flattened_validation_exception end end
#3 Updated by Adam Ruzicka about 2 months ago
- Pull request deleted (
Issue 33397 fixes majority of the issues, however it is not complete. Let's reuse this issue to track the remaining bits which are described here https://github.com/theforeman/foreman_remote_execution/pull/648#discussion_r701089440