mirror of
https://github.com/zitadel/zitadel.git
synced 2025-07-13 08:08:32 +00:00

# Which Problems Are Solved Remove the feature flag that allowed triggers in introspection. This option was a fallback in case introspection would not function properly without triggers. The API documentation asked for anyone using this flag to raise an issue. No such issue was received, hence we concluded it is safe to remove it. # How the Problems Are Solved - Remove flags from the system and instance level feature APIs. - Remove trigger functions that are no longer used - Adjust tests that used the flag. # Additional Changes - none # Additional Context - Closes #10026 - Flag was introduced in #7356 --------- Co-authored-by: Silvan <27845747+adlerhurst@users.noreply.github.com>
42 lines
1.1 KiB
Go
42 lines
1.1 KiB
Go
package query
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
"github.com/zitadel/zitadel/internal/feature"
|
|
)
|
|
|
|
type FeatureSource[T any] struct {
|
|
Level feature.Level
|
|
Value T
|
|
}
|
|
|
|
func (f *FeatureSource[T]) set(level feature.Level, value any) {
|
|
f.Level = level
|
|
f.Value = value.(T)
|
|
}
|
|
|
|
type SystemFeatures struct {
|
|
Details *domain.ObjectDetails
|
|
|
|
LoginDefaultOrg FeatureSource[bool]
|
|
UserSchema FeatureSource[bool]
|
|
TokenExchange FeatureSource[bool]
|
|
ImprovedPerformance FeatureSource[[]feature.ImprovedPerformanceType]
|
|
OIDCSingleV1SessionTermination FeatureSource[bool]
|
|
DisableUserTokenEvent FeatureSource[bool]
|
|
EnableBackChannelLogout FeatureSource[bool]
|
|
LoginV2 FeatureSource[*feature.LoginV2]
|
|
PermissionCheckV2 FeatureSource[bool]
|
|
}
|
|
|
|
func (q *Queries) GetSystemFeatures(ctx context.Context) (_ *SystemFeatures, err error) {
|
|
m := NewSystemFeaturesReadModel()
|
|
if err := q.eventstore.FilterToQueryReducer(ctx, m); err != nil {
|
|
return nil, err
|
|
}
|
|
m.system.Details = readModelToObjectDetails(m.ReadModel)
|
|
return m.system, nil
|
|
}
|