@@ -23676,6 +23677,8 @@ CREATE INDEX index_environments_on_project_id_and_tier ON environments USING btr
CREATE INDEX index_environments_on_project_id_state_environment_type ON environments USING btree (project_id, state, environment_type);
CREATE INDEX index_environments_on_state_and_auto_delete_at ON environments USING btree (auto_delete_at) WHERE ((auto_delete_at IS NOT NULL) AND ((state)::text = 'stopped'::text));
CREATE INDEX index_environments_on_state_and_auto_stop_at ON environments USING btree (state, auto_stop_at) WHERE ((auto_stop_at IS NOT NULL) AND ((state)::text = 'available'::text));
CREATE UNIQUE INDEX index_epic_board_list_preferences_on_user_and_list ON boards_epic_list_user_preferences USING btree (user_id, epic_list_id);
...
...
@@ -26729,9 +26732,6 @@ ALTER TABLE ONLY terraform_state_versions
validates:policy_id,uniqueness: {scope: [:oncall_schedule_id,:status,:elapsed_time_seconds],message: _('must have a unique schedule, status, and elapsed time')}
"notified #{recipients.map(&:to_reference).to_sentence} of this alert via escalation policy **#{escalation_policy.name}**"
else
"notified #{recipients.map(&:to_reference).to_sentence} of this alert via schedule **#{oncall_schedule.name}**, per an escalation rule which no longer exists"
it{is_expected.tovalidate_uniqueness_of(:policy_id).scoped_to([:oncall_schedule_id,:status,:elapsed_time_seconds]).with_message('must have a unique schedule, status, and elapsed time')}
@@ -22,13 +21,5 @@ RSpec.describe SystemNotes::EscalationsService do
it'posts the correct text to the system note'do
expect(subject.note).tomatch("notified #{user.to_reference} and #{user_2.to_reference} of this alert via escalation policy **#{escalation_policy.name}**")
end
context'when policy is missing'do
let_it_be(:escalation_policy){nil}
it'posts the correct text to the system note'do
expect(subject.note).tomatch("notified #{user.to_reference} and #{user_2.to_reference} of this alert via schedule **#{oncall_schedule.name}**, per an escalation rule which no longer exists")