mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-04 01:48:50 +00:00
If the feature is enabled the new packages are used to query org by id Part of: https://github.com/zitadel/zitadel/issues/7639 ### Definition of Ready - [x] I am happy with the code - [x] Short description of the feature/issue is added in the pr description - [x] PR is linked to the corresponding user story - [ ] Acceptance criteria are met - [ ] All open todos and follow ups are defined in a new ticket and justified - [ ] Deviations from the acceptance criteria and design are agreed with the PO and documented. - [x] No debug or dead code - [x] My code has no repetitions - [ ] Critical parts are tested automatically - [ ] Where possible E2E tests are implemented - [ ] Documentation/examples are up-to-date - [ ] All non-functional requirements are met - [x] Functionality of the acceptance criteria is checked manually on the dev system.
57 lines
1.7 KiB
Protocol Buffer
57 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package zitadel.feature.v2beta;
|
|
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
|
|
option go_package = "github.com/zitadel/zitadel/pkg/grpc/feature/v2beta;feature";
|
|
|
|
|
|
enum Source {
|
|
SOURCE_UNSPECIFIED = 0;
|
|
reserved 1; // in case we want to implement a "DEFAULT" level
|
|
SOURCE_SYSTEM = 2;
|
|
SOURCE_INSTANCE = 3;
|
|
SOURCE_ORGANIZATION = 4;
|
|
SOURCE_PROJECT = 5; // reserved for future use
|
|
SOURCE_APP = 6; // reserved for future use
|
|
SOURCE_USER = 7;
|
|
}
|
|
|
|
// FeatureFlag is a simple boolean Feature setting, without further payload.
|
|
message FeatureFlag {
|
|
bool enabled = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "false";
|
|
description: "Whether a feature is enabled.";
|
|
}
|
|
];
|
|
|
|
Source source = 2 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "The source where the setting of the feature was defined. The source may be the resource itself or a resource owner through inheritance.";
|
|
}
|
|
];
|
|
}
|
|
|
|
message ImprovedPerformanceFeatureFlag {
|
|
repeated ImprovedPerformance execution_paths = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "[1]";
|
|
description: "Which of the performance improvements is enabled";
|
|
}
|
|
];
|
|
|
|
Source source = 2 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "The source where the setting of the feature was defined. The source may be the resource itself or a resource owner through inheritance.";
|
|
}
|
|
];
|
|
}
|
|
|
|
enum ImprovedPerformance {
|
|
IMPROVED_PERFORMANCE_UNSPECIFIED = 0;
|
|
// Uses the eventstore to query the org by id
|
|
// instead of the sql table.
|
|
IMPROVED_PERFORMANCE_ORG_BY_ID = 1;
|
|
} |