Version 3.3.10

Fri, Jan 31, 2020

Version 3.3.10

Released: January 31, 2020

Changes

Appearance

A fall back read-only render was added for form fields. Makes read-only decimal fields render as expected.

Authentication

A new settings was added to allow disabling the password reset link in the login form. This can be done for security issues or if the authentication backend doesn't support it, such as when using LDAP for authentication. The setting is named AUTHENTICATION_DISABLE_PASSWORD_RESET and defaults to false.

Converter

The page count detection was improved for some obscure JPEG sub format files.

Dependencies

Two commands were added to aid in batch file integration. The first is the showversion command and it displays the current version. This command accepts the option [--build-string]{.pre} to show the build string instead.

The second command added is called checkversion. It will check is the currently installed version is up to date. This command requires an internet connection as it checks the Python package repository.

The version of Pillow, the image processing library was updated to 6.2.2.

File metadata

A data migration was added to the file metadata app to deduplicate entries before applying the schema change in migration 0002. This data migration ensures that the upgrade completes even if there were inconsistencies in the tables of the file metadata app.

REST API

A new setting was added to disable the API and API documentation links. This setting is useful when Mayan EDMS is used as a frontend solution to avoid confusion with users who are not meant to use the API.

This setting only disables the API links for aesthetic improvement but doesn't disable the API documentation views or the API itself.

The setting is named REST_API_DISABLE_LINKS and defaults to false.

Sources

Two endpoints of the staging folder file API were fixed and multiple tests added to detect future regressions.

Templating

Support was added to differentiate how an attribute is related to an object class. This is to say that the attributes dropdown will now group entries by types. Types supported now are: model properties (actions), model fields (database fields), and model related fields (database fields in a sibling table).

The OCR content and parsed content were added as model properties for use in templates.

Testing

The TarArchiveClassTestCase was updated and made in to a reusable archive file test case class.

The test runner was a new option for testing excluded tests.

The package django_migration_test was added and migration testing was added to the file metadata app for migration 0002.

The test system was updated to support bi-directional testing of migrations.

The makefile was updated to remove repeated commands.

The GitLab CI file was updated to use the new test makefile target and add migration testing as part of the release pipeline.

The Docker run_tests command was updated to include migration testing.

Workflows

A button was added to the workflows to launch a specific one for existing documents. This is useful when changes are made that require triggering the initial state of existing documents.

The workflow app navigation was improved with adding a new links to jump between commonly used views of the app.

Removals

  • None

Backward incompatible changes

  • None

Bugs fixed or issues closed

  • GitLab issue #762 CommandError: Error during pre_upgrade signal: could not create unique index "file_metadata_storeddriver_driver_path_d3d461e4_uniq"
  • GitLab issue #764 /api/staging_files/ does not report any files staged, but they show up in the UI.
  • GitLab issue #767 Upload Error: unpack_from requires a buffer of at least 2 bytesy
  • MD-10
  • MD-14
  • MD-28
  • MD-171