Repository navigation
v2.4.0
·
175 commits
to lex-app-v2
since this release
Prerelease gate passed for v2.4.0 via Prerelease Gate.
Promote this prerelease to a full release (untick "pre-release"
in the UI) to ship it. The PyPI publish gate is skipped because
the same gate already ran and passed here; see pip_publish.yml.
Main changes
- Exports and file downloads are now recorded in the audit log. The audit log for a record now shows who exported data from the grid or downloaded an attached file, and when.
Bug fixes
- Audit log entries for exports and downloads are now visible. Previously, audit log entries for file downloads and data exports could be hidden from all users, including superusers. They now appear correctly.
- Stricter and more consistent permission checks. A number of operations that did not always check permissions now do. This includes file downloads, global search results, record history, and bulk-delete operations. If you lack permission to read a record, you will no longer see it in search results or its history, nor be able to download its files.
- More precise create permissions. Permission rules for creating new records can now be based on the data entered into the form. A user may be denied from creating a record if the values they entered are not permitted by a rule (for example, adding an item to a project they do not own).
- Consistent handling of unreadable records. Trying to view a record you don't have permission to see, or one that doesn't exist, now consistently shows a "Not Found" error instead of sometimes showing an empty page.
- Protection of audit history. The history of changes to records can no longer be edited or deleted by non-superusers, protecting the integrity of the audit trail.
- Restricted column filtering. Filtering is now only allowed on columns that are configured to be filterable. Attempts to filter on other columns will be denied.
- Error messages no longer contain technical details. When an error occurs, the message shown no longer includes a technical traceback, unless explicitly enabled for debugging.
The user interface is unchanged in this release.
Upgrade note: Run database migrations on upgrade. This release adds one migration for new audit log actions, which makes no data changes and runs instantly.
A new environment variable, LEX_CORS_ALLOWED_ORIGINS, can be set to a comma-separated list of domains to restrict which websites can access the LEX API. If not set, LEX continues to allow access from any origin, which was the previous default.