Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-33254

Update GetAlertsGroup to use view instead of SearchListAlerts

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • Rox Sprint 4.11B, Rox Sprint 4.11C

      There are some fields ListAlert returns that are not easily made to columns.  So I thought maybe first I would reduce usage of ListAlert. 

      GetAlertsGroup — This is one of the unbounded endpoints (fetches ALL alerts). It groups by policy and counts. Could be replaced with a GROUP BY SQL query returning policy + count pairs.

      Create a view that will enable us to replace these functions and simply return those numbers from the database.

              rh-ee-dashrews David Shrewsberry
              rh-ee-dashrews David Shrewsberry
              ACS Core Workflows
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: