Skip to content

v1.6.0

Compare
Choose a tag to compare
@DavidMStraub DavidMStraub released this 05 Feb 16:27
· 20 commits to master since this release

This release adds a new endpoint to check & repair a database, improves the handling of media imports, and fixes a few issues.

Check & repair database

Gramps desktop has a "check & repair" tool that checks for issues with a Gramps database and fixes some of them automatically. This release brings this tool to Gramps Web API as well, in the form of a simple new endpoint /trees/<tree_id>/repair.

Import media even when checksums are missing

The "import media archive" endpoint so far relied on media objects having correct checksums. However, there are cases, e.g. Gedcom import, when media objects would be created without checksums. From this version onwards, media files from an uploaded ZIP file will be correctly imported if either the checksum is present and matches (existing behaviour) or if the checksum is empty and the relative path of the file in the ZIP archive matches the relative path of the media object (new behaviour).

Fixes & improvements to user registration

  • New configuration option DISABLE_REGISTRATION to completely disable registration of new users
  • So far, user registration was automatically disabled if no user of type "owner" existed. This was changed now to also allow registration if a user of type "administrator" exists, if Gramps Web API is deployed as single-tree instance.
  • On registration of a new user, so far an e-mail was sent to all tree owners. Now, an e-mail is also sent to administrators if it is a single-tree instance.

Other improvements

An issue causing sever errors when generating reports has been fixed.