Skip to content

Feature: Suppression Expression Support (#2530)#2575

Merged
michaelcfanning merged 3 commits into
devfrom
2529/suppression-updates
Jun 17, 2026
Merged

Feature: Suppression Expression Support (#2530)#2575
michaelcfanning merged 3 commits into
devfrom
2529/suppression-updates

Conversation

@ejohn20

@ejohn20 ejohn20 commented Nov 8, 2022

Copy link
Copy Markdown
Collaborator

Pull request adds the features described in #2529

* Feature: Added GUID list and query suppression support

* Fixed bug: suppress options with guids type

* fixed bug in SuppressOptions with guids options

* Bug: Allowed using results-guids and expression arguments together.

* chore: typo in log message

* feat: console log number of suppressions applied

* bug: comma delimit results arg

* Fixed bug with ResultsGuids and added debug output

* fixed bug with ResultsGuids union to Query guids

* WIP - Added IsSuppressed evaluator and updated unit tests

* Fixed: Changes requested for #2530

* bug: validate result guid values are not whitespace

* bug: empty search suppresses all results

* bug: skip duplicate suppression entries

* bug: suppress visitor multiple test cases

* bug: fixed merge command unit test failure

* chore: formatting failures

* chore: codeql warnings

* chore: docs

* bug: suppression expiration no expiry logic flaw

* docs: release notes + query mode updates

* bug: fixed failing suppression test case

* feat: suppress expiryUtc command argument

* bug: reverted bad test data

Co-authored-by: Andrew Guggenberger <andrew.guggenberger@pumasecurity.io>
Co-authored-by: Andrew Guggenberger <aguggenberger@users.noreply.github.com>
@ejohn20 ejohn20 marked this pull request as draft November 9, 2022 03:05
@ejohn20

ejohn20 commented Nov 9, 2022

Copy link
Copy Markdown
Collaborator Author

@michaelcfanning Still working through a few modifications required due to the result guid changing from a string to a Guild?. I'll report back when this is stable.

@msandhaus

Copy link
Copy Markdown

@ejohn20 , any way to push this along? It seems the IsSuppressed option snuck into the docs anyhow. We were really hoping to use that as a filter.

@michaelcfanning michaelcfanning changed the base branch from main to dev May 27, 2026 13:58
Resolve conflicts and update the suppression-expression feature for the result/suppression guid migration from string to Guid?:

- RandomSarifLogGenerator.GenerateFakeResults now takes List<Guid>; SuppressVisitor compares result.Guid.ToString(); SuppressCommand projects matched result guids to strings.

- Port the suppress/query release notes to the relocated root ReleaseHistory.md (terse house style) and drop the deleted src/ReleaseHistory.md.

- Adopt dev's FluentAssertions BeCloseTo(TimeSpan) signature in the suppression tests; give the merge-dedup test a stable guid so cross-input results stay value-identical.

- Remove a stray 'using Kusto.Cloud.Platform.Utils' import in SuppressCommand.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@michaelcfanning michaelcfanning marked this pull request as ready for review June 17, 2026 20:40
The merge commit captured the auto-staged (pre-fix) versions of files I edited after resolving conflicts. This re-applies them: SuppressVisitor/SuppressCommand guid-to-string projection, the List<Guid> test call sites, the stable merge-dedup guid, and the Kusto using removal. Also fixes the trailing newline check-format flagged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@michaelcfanning michaelcfanning merged commit 690d658 into dev Jun 17, 2026
6 checks passed
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.

3 participants