Skip to content

Fix API alerts and storing of PII alerts #1075

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

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Conversation

aponcedeleonch
Copy link
Contributor

We had some small bugs related with alerts:

  1. The function for deduping alerts was only returning alerts related to secrets. All the other alerts were being dropped when calling this function.
  2. We were returning non-critical alerts in the /messages/ endpoint
  3. PII alerts were never recorded because the context was never passed to the function. Discovered by @kantord

This PR fixes the 3 of them and introduces some unit tests.

@aponcedeleonch aponcedeleonch self-assigned this Feb 17, 2025
@aponcedeleonch aponcedeleonch changed the title Fix API alerts Fix API alerts and storing of PII alerts Feb 17, 2025
We had some small bugs related with alerts:
1. The function for deduping alerts was only returning alerts related to secrets.
All the other alerts were being dropped when calling this function.
2. We were returning non-critical alerts in the `/messages/` endpoint
3. PII alerts were never recorded because the context was never passed to the function.
Discovered by @kd

This PR fixes the 3 of them and introduces some unit tests.
@aponcedeleonch aponcedeleonch merged commit e8a70ac into main Feb 17, 2025
11 checks passed
@aponcedeleonch aponcedeleonch deleted the fix-pii-alerts branch February 17, 2025 16:42
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy