Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering heartbeats #1755

Merged
merged 6 commits into from
Feb 20, 2024
Merged

Filtering heartbeats #1755

merged 6 commits into from
Feb 20, 2024

Conversation

jzbahrai
Copy link
Contributor

@jzbahrai jzbahrai commented Feb 8, 2024

Summary | Résumé

PR to add a fitler_heartbeats param to send to the API. This PR requires:
cds-snc/notification-api#2108
to be merged.


Test instructions | Instructions pour tester la modification

NOTE: This PR has no tests! I will add the tests when I come back, just putting the PR as a ready to review if it absolutely needs to go out.

Once the api PR is merged to staging, the best way to test this PR is to use the REVIEW APP.
When you go to notification.canada.ca MAIN page and scroll to the bottom, you should see a different number in the review app and a different number on staging.notification.canada.a (if this PR is not merged)

on the main page
Screenshot 2024-02-09 at 2 49 17 PM

on the /activity page
Screenshot 2024-02-09 at 2 47 24 PM

Copy link

github-actions bot commented Feb 8, 2024

@jzbahrai jzbahrai marked this pull request as ready for review February 9, 2024 20:08
Copy link
Contributor

@whabanks whabanks left a comment

Choose a reason for hiding this comment

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

LGTM! Tested locally by adding rows into ft_notification_status with each heartbeat template. Filtering is working!

@jzbahrai jzbahrai enabled auto-merge (squash) February 20, 2024 20:03
@jzbahrai jzbahrai merged commit adc84d5 into main Feb 20, 2024
7 of 8 checks passed
@jzbahrai jzbahrai deleted the task/fix-filterin-heartbeat branch February 20, 2024 20:10
whabanks added a commit that referenced this pull request Feb 21, 2024
whabanks added a commit that referenced this pull request Feb 21, 2024
jzbahrai added a commit that referenced this pull request Feb 26, 2024
* Filtering heartbeats

* add missing filter for main page

* Added tests

---------

Co-authored-by: wbanks <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants