Skip to content

Commit

Permalink
fix(Incident): Add alert to index
Browse files Browse the repository at this point in the history
This will be used to check for duplicate before creating incident
fn needs to be manually run
  • Loading branch information
balamurali27 committed Jun 28, 2024
1 parent c3cbe87 commit 068247a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion press/press/doctype/incident/incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,4 @@ def notify_ignored_servers():


def on_doctype_update():
frappe.db.add_index("Incident", ["server", "status"])
frappe.db.add_index("Incident", ["alert", "server", "status"])

1 comment on commit 068247a

@balamurali27
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required for gap lock

Please sign in to comment.