Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add scheduled_flag_update table and proto message #1535

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifests/bucketeer/charts/api/values.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions manifests/bucketeer/charts/web/values.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CREATE TABLE scheduled_flag_update (
id VARCHAR(255) NOT NULL,
feature_id VARCHAR(255) NOT NULL,
environment_id VARCHAR(255) NOT NULL,
scheduled_at BIGINT NOT NULL,
created_at BIGINT NOT NULL,
updated_at BIGINT NOT NULL,
changes JSON NOT NULL,
PRIMARY KEY (id),
CONSTRAINT fk_feature
FOREIGN KEY (feature_id, environment_id)
REFERENCES feature(id, environment_id)
ON DELETE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
3 changes: 2 additions & 1 deletion migration/mysql/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:XjjLwJJ5FWA8KDg5sv8/GSBwS7iEuZWaxwARAkKq9SE=
h1:aZlX2zI1Zl7hwD8UORP4v8DQ9kt6qCHeMmcCMNHyD3c=
20240626022133_initialization.sql h1:u9qmPkwWX7PN92qEcDDfR92lrMpwadQSMxUJgv6LjQ0=
20240708065726_update_audit_log_table.sql h1:k7gK8Njv1yHMsYXAQtSgMaSbXy4lxyZ9MPzbJyMyyoM=
20240815043128_update_auto_ops_rule_table.sql h1:6ib+XfS1uu9AUO3qESvkpUfOu3qUsLwHm9KHcrGEz0E=
Expand Down Expand Up @@ -27,3 +27,4 @@ h1:XjjLwJJ5FWA8KDg5sv8/GSBwS7iEuZWaxwARAkKq9SE=
20250122261736_update_subscription_table.sql h1:+TyXXsVb1NxYHBNQsnBENojIxV5AFORw48dcG9D0gxQ=
20250131035841_add_ext_coderef_table.sql h1:fUJZy1e0CI/tzuxgwr4r3tGaNk0zzgZ0bQwnDEB2JIo=
20250131084331_sync_type_goal_table.sql h1:NP6KZXieFSlxUPtRywy2S59/WnKne6z1z8eG9e11WGI=
20250226091538_create_scheduled_flag_update_table.sql h1:6T6fv8mwH/B5Cw/9++6k5N6kKIGakQM3nU3/omDthqs=
Binary file modified proto/auditlog/proto_descriptor.pb
Binary file not shown.
199 changes: 29 additions & 170 deletions proto/feature/feature.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions proto/feature/feature.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,3 @@ message Tag {
int64 updated_at = 3;
string name = 4;
}

message ScheduleUpdate {
Feature feature = 1;
int64 update_at = 2;
}

message ScheduleUpdateListValue {
repeated ScheduleUpdate value = 1;
}
Binary file modified proto/feature/proto_descriptor.pb
Binary file not shown.
Loading
Loading