v.3.0.0¶
Improvements:¶
Service version was updated. Current API version is 3.
The attribute entity is temporary now. Now each attribute has an expiration time and will be deleted after this time. The attribute’s time to live (ttl) is 300 seconds by default and can be changed up to 86400 seconds (or 1 day). See configuration to change bounds. The attributes are immutable and are stored in the Redis database. See temporary attributes API here: spec_temporary_attributes.
The attribute and face entities are not linked anymore. The face entity has its own descriptors and basic attributes. Now users can create a face with a copy of existing temporary attribute or pass descriptors and basic attributes within face creation request. A face attribute is mutable. See face update api here: spec_updated_faces.
The /match resource was removed.
REST API documentation is now available at openapi, see api
Database structure was updated.
Bugs fixed:¶
Downgrade migration of revision c5af482fba44 with face_attribute_id_fkey create index was fixed.
How to update from previous version:¶
To update from previous version simply replace folders docs, luna_faces, tests and update dependencies from requirements.txt.
Migration¶
For migration run the commands:
alembic upgrade head
All attributes without faces will be removed. Database of temporary attributes will be empty.