-
Notifications
You must be signed in to change notification settings - Fork 469
snyk: add attributes.status and attributes.updated_at field values to fingerprint #14430
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
base: main
Are you sure you want to change the base?
Conversation
🚀 Benchmarks reportPackage
|
Data stream | Previous EPS | New EPS | Diff (%) | Result |
---|---|---|---|---|
issues |
4310.34 | 3021.15 | -1289.19 (-29.91%) | 💔 |
To see the full report comment with /test benchmark fullreport
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Waiting for @clement-fouque. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the API and we have 2 options:
- Either we add the
ignored
field along withstatus
andupdated_at
- Either we remove the
status
as theupdated_at
should be updated anyway
I'm proposing the first option (all fields) as it's clearer to understand what is affecting fingerprint and it protects from issues on Snyk API (if status changes and updated_at
field is not updated).
@@ -28,7 +28,10 @@ processors: | |||
- fingerprint: | |||
fields: | |||
- snyk.issues.id | |||
- snyk.issues.attributes.status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- snyk.issues.attributes.status | |
- snyk.issues.attributes.ignored | |
- snyk.issues.attributes.status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comment in the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the position is that it may be the case that ignored changes but updated does not? Looking at the API, I don't think that is the case. The reason I included status in the fingerprint is to avoid timestamp collision even though that would be very unlikely. I have added the ignored field though.
packages/snyk/changelog.yml
Outdated
@@ -1,4 +1,9 @@ | |||
# newer versions go on top | |||
- version: "2.2.0" | |||
changes: | |||
- description: Add `attributes.status` and `attributes.updated_at` field values to fingerprint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- description: Add `attributes.status` and `attributes.updated_at` field values to fingerprint. | |
- description: Add `attributes.ignored`, `attributes.status` and `attributes.updated_at` field values to fingerprint. |
|
💚 Build Succeeded
History
cc @efd6 |
Proposed commit message
See title.
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots