mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-27 09:42:16 +00:00
fix(features): increment version to deal with removed event types (#11402)
# Which Problems Are Solved User with older instances, created at version 3.3.3 or earlier may have been affected with feature flags no longer applying. Older version of Zitadel had a bug in console where toggling a single feature would apply a state to all features, creating around 12 events each request. Then 4 feature flags and their event types were removed in v4, meaning that the `offset` value in the projection's current state could be wrong by 4 if the instance was affected by the above bug. # How the Problems Are Solved Increment the feature projection versions, so that the tables get recomputed and the current states entries becomes accurate again. # Additional Changes - none # Additional Context - Original bug: https://github.com/zitadel/zitadel/issues/10459 - Reported through support
This commit is contained in:
@@ -6,14 +6,14 @@ with domain as (
|
||||
), instance_features as (
|
||||
select i.*
|
||||
from domain d
|
||||
join projections.instance_features2 i on d.instance_id = i.instance_id
|
||||
join projections.instance_features3 i on d.instance_id = i.instance_id
|
||||
), features as (
|
||||
select instance_id, json_object_agg(
|
||||
coalesce(i.key, s.key),
|
||||
coalesce(i.value, s.value)
|
||||
) features
|
||||
from domain d
|
||||
cross join projections.system_features s
|
||||
cross join projections.system_features2 s
|
||||
full outer join instance_features i using (instance_id, key)
|
||||
group by instance_id
|
||||
), external_domains as (
|
||||
|
||||
Reference in New Issue
Block a user