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

fix: trigger schedule fill #1116

Merged
merged 8 commits into from
Nov 6, 2024
Merged

Conversation

AleksandrMatsko
Copy link
Member

@AleksandrMatsko AleksandrMatsko commented Oct 29, 2024

PR Summary

Before this PR Trigger with not all days in the schedule could be created.

Now the following rules will be applied:

  • if some days are missed they will be marked Enabled = false;
  • if day name not in [Mon, Tue, Wed, Thu, Fri, Sat, Sun] the error will be returned;
  • if days are unordered they will be ordered from Mon to Sun;
  • if there is no days with Enabled = true the error will be returned;

@AleksandrMatsko AleksandrMatsko requested a review from a team as a code owner October 29, 2024 11:50
@AleksandrMatsko AleksandrMatsko changed the title fix: trigger schedule validation fix: trigger schedule fill Oct 29, 2024
api/dto/triggers.go Outdated Show resolved Hide resolved
@AleksandrMatsko
Copy link
Member Author

/build

@AleksandrMatsko AleksandrMatsko merged commit a16c390 into master Nov 6, 2024
7 checks passed
@AleksandrMatsko AleksandrMatsko deleted the fix/trigger-schedule-fill branch November 6, 2024 13:46
Copy link

github-actions bot commented Nov 6, 2024

Build and push Docker images with tag: 2024-11-06.a16c390

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.

4 participants