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

Create ScheduleConstraint Enum #87

Closed
eoyilmaz opened this issue Oct 30, 2024 · 0 comments · Fixed by #126
Closed

Create ScheduleConstraint Enum #87

eoyilmaz opened this issue Oct 30, 2024 · 0 comments · Fixed by #126
Assignees
Milestone

Comments

@eoyilmaz
Copy link
Owner

eoyilmaz commented Oct 30, 2024

User Story

As the devleoper of Stalker I want to represent the schedule constraints with a proper IntEnum instance so that Stalker is more modern.

Acceptance Criteria

  1. Create a new IntEnum with:

    from enum import IntEnum
    class ScheduleConstraint(IntEnum):
        NONE = 0
        Start = 1
        End = 2
        Both = 3
  2. Create a ScheduleConstraintDecorator to parse values coming from db as ScheduleConstraint enum values.

@eoyilmaz eoyilmaz self-assigned this Oct 30, 2024
@eoyilmaz eoyilmaz added this to the 1.0.0 milestone Nov 1, 2024
eoyilmaz added a commit that referenced this issue Dec 10, 2024
@eoyilmaz eoyilmaz linked a pull request Dec 10, 2024 that will close this issue
eoyilmaz added a commit that referenced this issue Dec 10, 2024
eoyilmaz added a commit that referenced this issue Dec 10, 2024
eoyilmaz added a commit that referenced this issue Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant