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 ScheduleModel Enum #128

Closed
eoyilmaz opened this issue Dec 10, 2024 · 0 comments · Fixed by #131
Closed

Create ScheduleModel Enum #128

eoyilmaz opened this issue Dec 10, 2024 · 0 comments · Fixed by #131
Assignees
Milestone

Comments

@eoyilmaz
Copy link
Owner

eoyilmaz commented Dec 10, 2024

User Story

As the developer of Stalker I want to have the schedule model value to be a enum class so that it is more modern and Pythonic.

Acceptance Criteria

  1. Create ScheduleModel enum in stalker.models.mixins:
class ScheduleModel(Enum):
    Effort = "effort"
    Duration = "duration"
    Length = "length"
  1. Implement ScheduleModelDecorator to parse values coming from the db as ScheduleModel enum values.
@eoyilmaz eoyilmaz added this to the 1.0.0 milestone Dec 10, 2024
@eoyilmaz eoyilmaz self-assigned this Dec 10, 2024
eoyilmaz added a commit that referenced this issue Dec 11, 2024
eoyilmaz added a commit that referenced this issue Dec 11, 2024
…umn nullable and `working_hours` attribute to be optional as before.
eoyilmaz added a commit that referenced this issue Dec 11, 2024
…llable and `stalker_version` attribute to be optional as before.
eoyilmaz added a commit that referenced this issue Dec 11, 2024
[#128] Implemented `ScheduleModel` Enum class to handle schedule mode…
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