Skip to content

bayanat v1.5

Compare
Choose a tag to compare
@sjacgit sjacgit released this 20 May 05:15
· 32 commits to main since this release
  • Various changes to improve security
  • Move sensitive settings from enferno/settings.py to a .env file
  • Fix for an exception with text left in parent field when creating or editing a Label
  • Fix for an exception with text left in parent field when creating or editing a Location
  • Change to the way the location's full string is generated
  • Fix for an exception with text left in parent field when creating or editing a Source
  • Fix for a bug in removing a parent from a Source
  • Fix for a bug in Labels form which make verified labels hidden in parent field
  • Change 'Title' field in Bulletins to 'Original Title'
  • Change 'SJAC Title' in Bulletins to 'Title'
  • UI Improvements in all data tables
  • UI improvements for actions feedback
  • Add switch in settings file to disable media import tool

You should backup your settings file (enferno/settings.py) before updating to this new version. You should also take a backup of the database.

To update to this version, EnvironmentFile settings needs to be added to bayanat and celery systemd services files to point to the .env file. This is required as all sensitive settings were now moved from enferno/settings.py file. You can add the following line to both service files:

EnvironmentFile=/path/to/bayanat/.env

and remove other environment settings. You can take a look at the installation manual at docs.bayanat.org for templates for both service files.

Furthermore, you need to move all settings to a new .env file places in the root of the bayanat folder. A sample file is available in .env-sample. You can take a look at the configuration guidelines on docs.bayanat.org.

This method is more secure and also convenient for pulling updates without overwriting local settings.

There's an optional database change to disallow uploading duplicate files. You can run the following command in the PostgreSQL terminal:

alter table media add constraint media_etag_key Unique(etag);

However, you should check if you already have any duplicate entires in the table before making this change.