Skip to content

DBC22-6169: Fixed long delays and blank image showing when turning on/off cameras#1394

Open
bcgov-brwang wants to merge 1 commit into
mainfrom
bugfix/DBC22-6169
Open

DBC22-6169: Fixed long delays and blank image showing when turning on/off cameras#1394
bcgov-brwang wants to merge 1 commit into
mainfrom
bugfix/DBC22-6169

Conversation

@bcgov-brwang

@bcgov-brwang bcgov-brwang commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

📝 Submitter

🔗 JIRA Ticket


✅ Quality Assurance & Requirements

  • Requirements Met: I have confirmed that all acceptance criteria from the JIRA ticket are fulfilled.
  • Tested desktop in local or dev envs
  • Tested mobile in local or dev envs
  • Ran unit tests locally
  • SonarCloud: I have verified that the SonarCloud analysis is clean/passing for this branch.

⚙️ Configuration & Environment

  • New Env Variables: Does this PR require new environment variables? (Yes/No)

    If yes, please list them here and ensure they are added to secret manager, the .env.example. and the Vault by an STA.

🧪 How to Test (if required)

  1. Deploy to dev.
  2. Go to a camera detail page.
  3. Turn on a camera (i.e., camera 11) from camera control panel. (https://dev.drivebc.ca/cameras/11?pan=-118.21833040000001%2C51.0072615&zoom=12)
  4. Verify the unavailable image shows up within a min.
  5. Verify the image is a blank image. (https://dev.drivebc.ca/images/11.jpg).
  6. Turn the camera back on.
  7. Verify the image shows up within a min.
  8. Verify the image is not a blank image.

🔍 Reviewer Checklist

  • Reviewed code for logic and cleanliness
  • Re-tested desktop/mobile in local or dev envs
  • Verified no new console warnings/errors
  • Confirmed that any new env variables are understood/documented

Comment thread src/backend/apps/webcam/models.py Fixed
Comment thread src/backend/apps/webcam/models.py Fixed
Comment thread src/backend/apps/webcam/tasks.py Fixed
Comment thread src/backend/apps/webcam/tasks.py Fixed
Comment thread src/backend/apps/webcam/tests/test_tasks.py Fixed
revert back

revert back

DBC22-6169: check camera is on status every 5 seconds

removed migration files no need

debug test 1

debug test 2

debug test 3

debug test 4

debug test 5

debug test 6

debug test 7

debug test 8

debug test 9

debug test 10

fixed backup and restore logic

removed comments unused

fixed failed test cases

fixed failed test case 1

fixed sonarcloud alerts 1

fixed failed test case 2

fixed failed test case 2

added new test cases for processor

added more test case to improve coverage

improve test coverage 1

improve test coverage 2

improve test coverage 2

improve test coverage 3

improve test coverage 4

improve test coverage 5

improve test coverage 6

improve test coverage 7

removed unused import
@sonarqubecloud

Copy link
Copy Markdown

@bcgov-brwang bcgov-brwang changed the title Bugfix/dbc22 6169 DBC22-6169: Fixed long delays and blank image showing when turning on/off cameras Jul 22, 2026
@bcgov-brwang
bcgov-brwang requested a review from wmuldergov July 22, 2026 23:04
@bcgov-brwang bcgov-brwang added the ready for review The PR is ready for review label Jul 22, 2026
@bcgov-brwang
bcgov-brwang marked this pull request as ready for review July 22, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review The PR is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant