Skip to content

Fix enum string comparisons - #691

Open
Gaganshekar wants to merge 1 commit into
fireform-core:developmentfrom
Gaganshekar:fix-enum-string-comparisons
Open

Gaganshekar wants to merge 1 commit into
fireform-core:developmentfrom
Gaganshekar:fix-enum-string-comparisons

Conversation

@Gaganshekar

Copy link
Copy Markdown

Updated Job model and related job handling to use the existing JobStatus and JobType enums instead of raw string values.

Changes include:

Updated Job.status to use JobStatus
Updated Job.job_type to use JobType
Updated job creation and task status assignments
Updated affected tests to compare against enums
Preserved existing database VARCHAR-based enum storage

Tests: 146 passed, 5 warnings

This branch has not been deployed

No deployments
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.

1 participant