You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The config seems to be a base64 encoded version of:
# echo eyJ4eHgiOiAxfQ== | base64 -d
{"xxx": 1}
But the table has the following schema:
Table "public.entitlements"
Column | Type | Collation | Nullable | Default
----------------------------+--------------------------+-----------+----------+---------
id | character(26) | | not null |
namespace | character varying | | not null |
metadata | jsonb | | |
created_at | timestamp with time zone | | not null |
updated_at | timestamp with time zone | | not null |
deleted_at | timestamp with time zone | | |
feature_id | character(26) | | not null |
subject_key | character varying | | not null |
measure_usage_from | timestamp with time zone | | |
entitlement_type | character varying | | not null |
issue_after_reset | double precision | | |
is_soft_limit | boolean | | |
config | jsonb | | |
usage_period_interval | character varying | | |
usage_period_anchor | timestamp with time zone | | |
current_usage_period_start | timestamp with time zone | | |
current_usage_period_end | timestamp with time zone | | |
feature_key | character varying | | not null |
issue_after_reset_priority | smallint | | |
So I would expect the config field to contain a json string, not a base64 encoded json value (I suppose that's the []byte's encoding).
If I create a new entitlement using the dev.openmeter.cloud UI, then I get this record in the database:
The config seems to be a base64 encoded version of:
But the table has the following schema:
So I would expect the config field to contain a json string, not a base64 encoded json value (I suppose that's the []byte's encoding).
The schema seems up to date:
openmeter/internal/entitlement/postgresadapter/ent/schema/entitlement.go
Lines 40 to 42 in 01de191
The text was updated successfully, but these errors were encountered: