Set FirstLevel true for auto-created third parties

Third parties created by the tracker mapping worker are confirmed
active on the organization's cookie banner, making them first-level
by definition. Also remove unused ptr test helpers.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-28 19:49:41 +02:00
parent 7f4a66b310
commit 243c400115
3 changed files with 6 additions and 11 deletions

View File

@@ -28,9 +28,6 @@ import (
"go.probo.inc/probo/pkg/gid"
)
//go:fix inline
func ptr[T any](v T) *T { return new(v) }
// promotionFixture extends workerFixture with a CommonThirdParty and a
// CommonTrackerPattern linking the catalog to the test pattern. It is
// the minimum scaffolding promoteThirdParty needs to run end-to-end.
@@ -252,7 +249,7 @@ func TestPromoteThirdParty_FallbackCreate(t *testing.T) {
require.NotNil(t, reloaded.CommonThirdPartyID)
assert.Equal(t, fx.commonThirdPartyID, *reloaded.CommonThirdPartyID)
assert.Equal(t, coredata.ThirdPartyCategoryAnalytics, reloaded.Category)
assert.False(t, reloaded.FirstLevel)
assert.True(t, reloaded.FirstLevel)
assert.False(t, reloaded.ShowOnTrustCenter)
}