Skip to content

Conversation

@drdavella
Copy link
Member

Instead explicitly convert V2 findings into V3 findings where necessary. This simplifies some assumptions for consumers of FixResult

@drdavella drdavella requested a review from gilday May 21, 2025 14:46
assert f.changeSets and f.changeSets[0].diff == v2changeset.diff
assert isinstance(f.finding, Finding) and f.changeSets[0].changes == [
v2_finding_to_change[f.finding].to_common()
assert isinstance(f.finding, FindingV3) and f.changeSets[0].changes == [
Copy link
Contributor

Choose a reason for hiding this comment

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

What is FindingV3?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just an alias for the CodeTFv3 version of Finding

@drdavella drdavella added this pull request to the merge queue May 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 21, 2025
@drdavella drdavella added this pull request to the merge queue May 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 22, 2025
@drdavella drdavella added this pull request to the merge queue May 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 22, 2025
@drdavella drdavella added this pull request to the merge queue May 27, 2025
@drdavella drdavella removed this pull request from the merge queue due to the queue being cleared May 27, 2025
@drdavella drdavella force-pushed the remove-backwards-compatible-findings branch from afd9a7f to 90d4d45 Compare May 27, 2025 15:39
@drdavella drdavella force-pushed the remove-backwards-compatible-findings branch from 90d4d45 to 6589613 Compare May 27, 2025 16:08
@sonarqubecloud
Copy link

@drdavella drdavella merged commit ca41524 into main May 27, 2025
13 checks passed
@drdavella drdavella deleted the remove-backwards-compatible-findings branch May 27, 2025 16:17
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