Skip to content

Commit aa5f680

Browse files
committed
feat(taxcode): change prefix label
1 parent f34732b commit aa5f680

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/v3/handlers/taxcodes/convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func ConvertAppMappingsToAPIAppMappings(source taxcode.TaxCodeAppMappings) []api
8585

8686
// annotationLabelPrefix is the prefix added to annotation keys when they are
8787
// surfaced as v3 labels, distinguishing system annotations from user metadata.
88-
const annotationLabelPrefix = "openmeter.io/"
88+
const annotationLabelPrefix = "openmeter_"
8989

9090
// ConvertMetadataToLabels converts models.Metadata to api.Labels.
9191
// Always returns an initialized map (never nil) so JSON serializes to {} instead of null.

openmeter/taxcode/service/taxcode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (s *service) DeleteTaxCode(ctx context.Context, input taxcode.DeleteTaxCode
133133
}
134134

135135
return transaction.RunWithNoValue(ctx, s.adapter, func(ctx context.Context) error {
136-
existing, err := s.adapter.GetTaxCode(ctx, taxcode.GetTaxCodeInput{NamespacedID: input.NamespacedID})
136+
existing, err := s.adapter.GetTaxCode(ctx, taxcode.GetTaxCodeInput(input))
137137
if err != nil {
138138
return err
139139
}

openmeter/taxcode/testutils/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77

88
"github.com/stretchr/testify/require"
99

10+
entdb "github.com/openmeterio/openmeter/openmeter/ent/db"
1011
"github.com/openmeterio/openmeter/openmeter/taxcode"
1112
taxcodeadapter "github.com/openmeterio/openmeter/openmeter/taxcode/adapter"
1213
taxcodeservice "github.com/openmeterio/openmeter/openmeter/taxcode/service"
13-
entdb "github.com/openmeterio/openmeter/openmeter/ent/db"
1414
"github.com/openmeterio/openmeter/openmeter/testutils"
1515
)
1616

0 commit comments

Comments
 (0)