Skip to content

fix(tasks): prevent crash by checking if acoustic_enabled_stage is not None - #1264

Merged
Dhara124 merged 1 commit into
back-branch-masterfrom
feature/create-dataset-and-project
Aug 21, 2026
Merged

Dhara124 merged 1 commit into
back-branch-masterfrom
feature/create-dataset-and-project

Conversation

@Dhara124

Copy link
Copy Markdown
Collaborator

Description

This PR introduces a minor but critical bug fix in the tasks views to prevent API crashes when querying annotations.

Bug Fixes

  • Acoustic Stage Validation Safety: Added explicit is not None null-checks for acoustic_enabled_stage in tasks/views.py. Previously, if a project's metadata_json lacked an explicitly defined acoustic stage (leaving it as None), the application would throw a TypeError when attempting to evaluate it against integer values (e.g., <= 2). This patch ensures the comparisons are safely bypassed when the configuration is missing, stabilizing the annotation retrieval endpoints.

@Dhara124
Dhara124 merged commit 186753a into back-branch-master Aug 21, 2026
2 of 3 checks passed
@Dhara124
Dhara124 deleted the feature/create-dataset-and-project branch August 21, 2026 06:06
@Dhara124
Dhara124 restored the feature/create-dataset-and-project branch August 21, 2026 10:49
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