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 schedule update field to feature proto message #1499

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

cre8ivejp
Copy link
Member

Part of #893

The batch svc will check all the flags with scheduled updates.
If the update_at is older than the current time, it will replace the current feature object with the object in the ScheduleUpdate in the DB.

@@ -53,6 +53,7 @@ message Feature {
bool archived = 20;
repeated Prerequisite prerequisites = 21;
string sampling_seed = 22;
repeated ScheduleUpdate schedule_update = 23;
Copy link
Member Author

@cre8ivejp cre8ivejp Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the user might want to schedule multiple times, I'm using an array, so when implementing it on the frontend, we won't need to make changes on the backend.
For the first phase, I will allow the user to schedule only once at a time.

@cre8ivejp cre8ivejp marked this pull request as ready for review February 3, 2025 09:07
@cre8ivejp cre8ivejp requested review from hvn2k1 and removed request for kentakozuka February 3, 2025 09:07
Copy link
Contributor

@hvn2k1 hvn2k1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@cre8ivejp cre8ivejp merged commit ddbd7f0 into main Feb 4, 2025
17 checks passed
@cre8ivejp cre8ivejp deleted the chore-scheduled-flag branch February 4, 2025 05:42
cre8ivejp added a commit that referenced this pull request Feb 4, 2025
cre8ivejp added a commit that referenced this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants