• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lucyparsons / OpenOversight / 13506583170
89%

Build:
DEFAULT BRANCH: develop
Ran 24 Feb 2025 07:54PM UTC
Jobs 1
Files 100
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Feb 2025 07:51PM UTC coverage: 89.08% (+0.005%) from 89.075%
13506583170

push

github

web-flow
Default to "N/A" if dept state is invalid (#1159)

## Description of Changes
Default to "N/A" if department state is invalid

In [the
migration](https://github.com/lucyparsons/OpenOversight/blob/develop/OpenOversight/migrations/versions/2023-07-26-1551_18f43ac4622f_add_state_column_to_departments.py)
where we introduced the department state column, we defaulted to empty
string for existing departments. We think this may have broken the
browse page when trying to load the browse page.

## Notes for Deployment
None!

## Screenshots (if appropriate)
N/A

## Tests and Linting
Reproduced the internal server error by setting the department state to
empty string
```
openoversight-dev=# update departments set state='' where id = 1;                                                                                                                       
```

Checked that the error was no longer displayed once this change was
implemented

- [x] This branch is up-to-date with the `develop` branch.
- [ ] Ran `make create_db_diagram` command.
- [x] `pytest` passes on my local development environment.
- [x] `pre-commit` passes on my local development environment.

8867 of 9954 relevant lines covered (89.08%)

0.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 13506583170.1 24 Feb 2025 07:54PM UTC 100
89.08
GitHub Action Run
Source Files on build 13506583170
  • Tree
  • List 100
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13506583170
  • a57b8209 on github
  • Prev Build on develop (#13505519862)
  • Next Build on develop (#13593559662)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc