NotificationRules: filter value in history page fails to reflect chosen list
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 51
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 4
Description
**Steps to reproduce:**
List the minimal actions needed to reproduce the behavior.
In Alerts
1. Create a check
2. Create a notification endpoint
3. Create a notification rule that will be triggered by the check
4. Wait for the check to throw a status event
5. Wait for the notification rule to send a notification based on the check
6. Open Alerts > Notification Rules > My Rule > View History. The list of notifications loads based on the filter value e.g.`"notificationRuleID" == "082f2809ec3ee000"`. The radio button "Notifications" is active as well.
7. Click the radio button "Statuses". The list results disappear, however the value in the filter remains `"notificationRuleID" == "082f2809ec3ee000"`.
8. Change the filter value to select the checkName used. e.g. `"checkName" == "Simple Deadman"`. The status records are loaded.
9. Now click the radio button 'Notifications' again.
**Expected behavior:**
Expected the value in the filter input to be the value that generated the displayed list.
**Actual behavior:**
After returning to the 'Notifications' list, the value in the filter input remained as it was for filtering checks.
In the first instance, when opening "Statuses" for the first time with an empty list, it is unclear what value was used to make the query as the filter input remain unchanged.
In the second instance, when reopening "Notifications", it was clear that the value retained in the filter input had no relation to the results displayed in the list.
**Environment info:**
- System info: Run `uname -srm` and copy the output here
- Linux 5.11.0-34-generic x86_64
- InfluxDB version: Run `influxd version` and copy the output here
- Other relevant environment details: Container runtime, disk info, etc
- Detected through k8sidpe while inspecting the UI project.
Latest commit:
c198678832a524b8f6e2e7ba7884fde894b12ce3
Tue Sep 21 16:43:19 2021 -0400
**Screencasts**
_Notifications to Statuses_

_Statuses to Notifications_

**Config:**
Copy any non-default config values here or attach the full config as a gist or file.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.