Skip to content

migrate settings "motd" -> "notices"

Warren Gifford requested to merge migrate-motd-to-notices into master

Created by: sqs

closes #2960 (closed)

Updates all settings (global/org/user) to use the new "notices" setting, which lets you show messages at the top of the page and on the homepage. Previously only "motd" was supported, which only supported showing messages at the top of the page (and did not support non-dismissible messages).

This PR can be used as a guide for other people who need to write settings migrations.

Test plan: There are extensive integration and unit tests. We will also run this on Sourcegraph.com, which has a lot of user accounts and therefore will surface unexpected issues when there are a lot of settings documents to scan for possible migration. (I don't anticipate any issues, but the fact that this isn't ONLY being run on self-hosted instances gives me more confidence we would spot unexpected issues before customers do.)

Merge request reports

Loading