-
- Downloads
[common][serializers] Refactor creation serializer and a version as a mandatory field
The original code would automatically generate a number based on the previous version if any or set it to one. This has the drawback of generating cryptic errors if for example someone sends an asset with a version number higher than the one available on the platform without providing historical data. To avoid that, version is now a mandatory field. When doing local development, it's already assigned. This allows for better handling of posted data. The refactored code makes only use of the database rather than mixing prefix and database usage.
parent
8d0131de
No related branches found
No related tags found
Please register or sign in to comment