DM2 v0.5.0
This release includes a new feature (email confirmations) as well as various bug fixes. It includes breaking changes.
Breaking changes
This release includes breaking changes for document links and users.
Details
- A DB migration, and a helper function
DocumentLinkMigrationHelper.migrate_document_links!
, are required due to bug fixes allowing link lists to be reordered from the icon in the top-left corner of documents - A second helper,
UserConfirmationMigrationHelper.confirm_approved_users!
must be run to confirm all existing users' emails as part of the new email confirmation feature
These require the following to be run:
rails db:migrate
rails console
DocumentLinkMigrationHelper.migrate_document_links!
UserConfirmationMigrationHelper.confirm_approved_users!
This release also requires some new environment variables to be set:
Details
- In order to not encounter SendGrid errors, it is required that system emails come from a valid email address. Thus, rather than determine this programmatically from the hostname (which can break as in the case of
localhost
-like hostnames), it has been set as an environment variableEMAIL_FROM
. That environment variable must be set for emails to send, so it is considered a breaking change. - In addition, in https environments, the
PROTOCOL
environment variable must be set tohttps
. Otherwise it may be left unset.
Thus, the list of environment variables ("config variables" in Heroku) has been updated to include:
EMAIL_FROM=[email protected]
PROTOCOL=https
Also, instructions for setting the SENDGRID_USERNAME
and SENDGRID_PASSWORD
variables have been updated in README.md
.
New features
- Email confirmations: users must confirm their emails on registration (#384)
Other changes
- New user admin alert email fix (#384, #397)
- Zoom max decreased and slider fix (#385, #397)
- Highlight popup closing bugfix (#388)
- Reordering list of links attached directly to document in corner icon fix (#389)
- Other email fixes (#392, #397)
For more detail, see linked pull requests.