Avocado

Latest version: v2.4.3

Safety actively analyzes 624524 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

2.4.0

Features
- 153 Added support for Django 1.6
- 312 Added support for Django 1.7
- 252 Added a `PERMISSIONS_ENABLED` setting to toggle when the permissions system should be enabled if django-guardian is installed. Set to `False` to explicitly disable permissions, otherwise it will be automatically applied if installed.
- 234 Models are now frozen as part of the metadata migrations.
- 268 A fallback search implementation has been added when Haystack is not installed or being used. Previously, the `search` manager method would throw an error if called and Haystack was not setup. This was problematic since Serrano uses that method. Now the search performs an `icontains` database query on the relevant fields.
- 280 Add utilities for canceling queries
- 318 Utilities for performing asynchronous (background) queries. This requires a [Redis](http://redis.io/) server to be setup and [django-rq](https://pypi.python.org/pypi/django-rq) installed.

Changes

_High Impact_
- 288 Dropped support for Django 1.4

_Medium Impact_
- 249 South migrations `0001` through `0014` have been combined. Application migrations that depend on specific Avocado migrations less than `0014` must be updated to to point to `avocado_0001` (or greater).
- 216 The deprecated `lexicon` package has been removed. A data migration is included to set `label_field_name`, `order_field_name`, and `code_field_name` of lexicon primary key fields. **Note:** This drops support for lexicon detection on foreign key-based fields.

_Low Impact_
- 2cc44b9f In 2.3.x, `DataField` aggregation methods (such as `f.count()`) returned an `Aggregator` instance that could be further manipulated and lazily evaluated. However, this prevented the actual return value of those methods from being cached. This has been changed so the value itself is returned so it can be used directly and also be properly cached.
- 194 The `DataContext` and `DataQuery` `count`-based and `tree` fields have been removed in favor of a `count` method to compute the count dynamically. This value is cached and is automatically invalidated based on the `modified` timestamp.
- 246 The `group` field has been removed from `DataField` and `DataConcept` since it was not being acknowledged in the permission system. The superior solution is to use django-guardian to define relationships between users and groups to fields and concepts.
- 250 Change the field `DataConcept.formatter_name` to just `formatter`.
- 251 Remove `ident` and `internal` unused fields from `DataField` and `DataConcept`
- 184 The deprecated `sets` package has been removed. A data migration is included to set the `label_field_name` if the `label_field` attribute is defined on the `ObjectSet` subclass.

2.3.12

This release supports the corresponding [Serrano 2.3.13 release](https://github.com/chop-dbhi/serrano/releases/2.3.13) and contains a few fixes and features backported from the 2.4.x series.
- 281 Add general purpose cache function and improve existing ones.
- 07a27eb Fix `QueryProcessor.get_iterable` to use passed `queryset` directly.

2.3.11

**Bugs**
- 270 - Update to Modeltree 1.1.9 to address a limitation that prevented any way of passing the originating model in the `DataView` parser to `ModelTree.add_query`.

2.3.10

**Enhancements**
- 253 - Introduces the `PERMISSIONS_ENABLED` setting that determines whether object-level permissions should when getting all published data fields or concepts. Previously, it was determined based on whether django-guardian was installed. Now there is support for explicitly disabling it even if guardian is installed.

2.3.9

**Enhancements**
- 243 - Refactored the base `Formatter` class to derive the default _preferred_ format from `DataField` or `DataConcept` itself rather than blindly trying all formats. This also prevents incorrectly coercing values out of their native type.

**Bugs**
- 239 - Fix an issue affecting Lexicon-based fields that did not properly resolve the value field name.
- Fix an issue in the `DataField.dist` method which caused all fields on the model to be grouped by, rather than just the value field.

2.3.8

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.