Database upgrades
This version includes major database refactoring for speed and maintainability. A lot of improvements were made for the speed of the database queries (removing N+1 queries, etc.). Also, the massive DatabaseQetaStore has been split into sub-stores for better maintainability.
Please try it out and report any issues you find!
Permissions
New permission rules added (and previous ones fixed), for resource tags/entities. There are total of 12 new permission rules that can be used:
- postHasAnyTag
- postHasAnyEntity
- postDoesNotHaveTags
- postDoesNotHaveEntities
- answerQuestionHasAnyTag
- answerQuestionHasAnyEntityRefs
- answerQuestionDoesNotHaveTags
- answerQuestionDoesNotHaveEntityRefs
- collectionHasAnyTag
- collectionHasAnyEntity
- collectionDoesNotHaveTags
- collectionDoesNotHaveEntities
Additionally, the previous postHasTags, postHasEntities, answerQuestionHasTags, answerQuestionHasEntities, collectionHasTags, and collectionHasEntities now work correctly, meaning they require all of the entities/tags to be present in the resource. If this is not something you don't want but instead allow accessing these resources by a single entity/tag, use the postHasAnyTag/etc. counterparts.