Version 4.4.13
Released: March 1, 2024
Dependencies
Updated dependency versions:
Debian Docker image from 11.8-slim to 11.9-slim.
pip from 23.3.2 to 24.0.
sphinx from 4.5.0 to 5.3.0.
sphinx_rtd_theme from 0.5.2 to 2.0.0.
Replaced distutils with setuptool.
Add setuptool as an explicit dependency.
Replace distutils with setuptools following the deprecation of distutils. https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated
Removed distutils from the Docker image.
Documentation
Removed diagram generator markup. The library used to generate diagrams is not longer maintained and breaks after the last Pillow upgrade. Removed all diagram markup until a replacement can be found.
Indexing
Encapsulated MPTT exceptions as validation errors when users attempt to perform invalid index template node tree manipulations.
Search
Updated DEFAULT_SEARCH_QUERY_RESULTS_LIMIT
from 100000 to 10000 to
workaround conflicting with the ElasticSearch non scroll search hard coded
limit.
Translations
Separated the code/template translation and JavaScript translation handling.
This required changing the app flag has_translations
to
has_app_translations
. It also requires adding the app flag
has_javascript_translations
which defaults to False.
Other
Fix source class and JavaScript
MayanImage
class.initialize()
method name.Fix typos and text formatting.
Minor code style fixes.
Add an extra line to
COMMON_EXTRA_APPS
help text to clarify the apps inclusion order.Changed the internal variable name of
COMMON_EXTRA_APPS_PRE
to avoid possible conflicts.Add extra logging to report storage errors when deleting trashed documents as part of the retention policies.
Minor test fixes.
Fix workflow icon variable name.
Removals
Management commands
Remove deprecated management commands:
checkdependencies
replaced bydependencies_check
.checkversion
replaced bydependencies_check_version
.createautoadmin
replaced byautoadmin_create
.generaterequirements
replaced bydependencies_generate_requirements
.initialsetup
replaced bycommon_initial_setup
.installdependencies
replaced bydependencies_install
.mountindex
replaced bymirroring_mount_index
.performupgrade
replaced bycommon_perform_upgrade
.platformtemplate
replaced byplatform_template
.preparestatic
replaced byappearance_prepare_static
.purgelocks
replaced bylock_manager_purge_locks
.purgepermissions
replaced bypermissions_purge
.purgeperiodictasks
replaced bytask_manager_purge_periodic_tasks
.purgestatistics
replaced bystatistics_purge
.revertsettings
replaced bysettings_revert
.savesettings
replaced bysettings_save
.showsettings
replaced bysettings_show
.showversion
replaced bydependencies_show_version
.
Backward incompatible changes
Cabinets
The cabinet create permission is now required to create parent as well as child cabinets. This change replaces requiring the edit permission to create child cabinets via the HTTP views.
Documents
A new permission was added to change the type of a document. When support for changing the type of a document was added, it was considered a property and controlled via the document property edit permission.
Since changing the type of a documents now causes a cascade of other changes, it was isolated as an individual class of event along with its own permission.
The new document change type permission is required for the document being changed and for the document type to which the document will be changed into.
Downloads
Download files are now associated to a specific users and not to a parent object. Delete, download, and view permissions were added to allow users to share a download file.
OCR
The OCR backend code is now executed under a new method called
_execute
to avoid subclasses not calling the super class.
The base backend class now prepares the image to be processed for OCR and passes the file object to the subclass.
Search
In addition to the search system refactor, new search indexes were added. The search backend needs to be reindexed to ensure these new indexes are populated.
Settings
The default secret key value is now only used if the secret key file is not found not just if the secret key file is present but unreadable.
Templating
The home_view
setting was removed from the default Template context.
Template instances need to include their own context using the new
context
argument.
Deprecations
The Cabinet API serializer field named
parent
, will be removed in version 5.0. Use theparent_id
instead which is functionally identical.The
IndexTemplateNodeSerializer
serializer fieldsparent
andindex
will be removed in version 5.0. Use fieldsparent_id
andindex_id
which are functionally identical.The
WorkflowInstanceSerializer
field namedworkflow_template_url
will be removed in version 5.0. Use theurl
attribute of theworkflow_template
instead.
Issues closed
None