Skip to content

Return service error when invalid

Patrick Bajao requested to merge 406755-return-valid-errors-to-user into master

What does this MR do and why?

Currently, we're not returning anything to the user when service gets executed but it is actually invalid because not all requirements are met (e.g. resource can't be sent to AI, FF disabled, etc). We return a success regardless.

This modifies the service layer to return an error if it's invalid.

No changelog since this is behind a feature flag.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #406755

Merge request reports

Loading