trebol-ecommerce / trebol-backend-monolith

Monolithic eCommerce backend web application that exposes a RESTful API.
MIT License
16 stars 21 forks source link

Add missing @Valid annotations #226

Closed mepox closed 1 year ago

mepox commented 1 year ago

PR Checklist

PR Type

Summary

Add missing @Valid annotations in the following Controllers:

Additional info

Close #219, Close #220, Close #221

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

bglamadrid commented 1 year ago

mepox, I have a reason to keep this PR unmerged, please do mind me.

If you navigate through the update method call chain, you'll find that eventually it is assumed that most properties in every object are nullable. Unlike an actual object that would be @Valid. This is by design (a bad design made by me obviously lol), so you don't have to worry about it for now.

bglamadrid commented 1 year ago

@mepox this PR is also conflicting now, but at least it should be easy to resolve.

bglamadrid commented 1 year ago

Sorry @mepox, I ended up doing a mess of this PR due to another PR of my own #244. I'll have to close it because it's too complicated to resolve these conflicts now, and there's no point in overtaking such a heavy task.

If you want you can still create another PR, I'm not going to close the issues you were targetting here just yet.