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

lucyparsons / OpenOversight / 5671488378
89%

Build:
DEFAULT BRANCH: develop
Ran 26 Jul 2023 04:52PM UTC
Jobs 1
Files 85
Run time 2s
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

26 Jul 2023 04:46PM UTC coverage: 90.372% (-0.07%) from 90.438%
5671488378

push

github

web-flow
Add `state` to `departments` table (#981)

## Fixes issue
Partially addresses this:
https://github.com/lucyparsons/OpenOversight/issues/797

## Description of Changes
Add `state` column to the `departments` table and update all relevant
tests and features. This is the first step to addressing the Department
state searching feature.

While taking care of the `.format` in `models/database.py` for
`Department`, I took care of the other ones as well.

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.


<details><summary>DB Migration Output</summary>

```console
$ flask db upgrade
[2023-07-26 15:52:20,432] INFO in __init__: OpenOversight startup
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade 1931b987ce0d -> 18f43ac4622f, add state column to departments
$ flask db downgrade
[2023-07-26 15:52:25,802] INFO in __init__: OpenOversight startup
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running downgrade 18f43ac4622f -> 1931b987ce0d, add state column to departments
$ flask db upgrade
[2023-07-26 15:52:30,441] INFO in __init__: OpenOversight startup
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade 1931b987ce0d -> 18f43ac4622f, add state column to departments
$ 
```
</details>

7237 of 8008 relevant lines covered (90.37%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5671488378.1 26 Jul 2023 04:52PM UTC 0
90.37
GitHub Action Run
Source Files on build 5671488378
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #5671488378
  • 0e989eb8 on github
  • Prev Build on develop (#5652750018)
  • Next Build on develop (#5671718452)
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