which finding is the active (original) one
you mean now or in this setup?
I believe now the “latest finding” (the one under analysis) is always the duplicate.
In this scenario, I was suggesting that deduplication would consider the “default branch” when doing this.
I think it still should keep the oldest as the main one (due to links as I mentioned including the clusters you mention), but it would have to “move it” to the default branch.
I haven’t looked into technical details but maybe the original finding could be moved from the test import on the non-default branch to the new test import that is on default branch. And the latest finding the other way around, and marked as duplicate as it would normally be.
Anything linked to finding_id would then still be linking to the original finding
However this ignores details such as a finding having a date different than the import it belongs to (among other things), not sure if there are expectations on those details