This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
submitReport: Capture if the report was originally flagged for review.
Because the Journeyman role is randomly chosen for review 15% of the time, and we have no way to log changes to the "pending review" flag, it is not possible to report on if a particular report was _originally_ flagged for review, as that is not predictable from the original `api_log`, nor accurate from the current `report`. Add an immutable-in-the-UI column for if the report was originally chosen for review. We may have better solutions in the future (e.g. using revision objects) but this is a quick and dirty stopgap. A stopgap fix for #274.
- Loading branch information
Showing
5 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
vaccinate/core/migrations/0076_report_originally_pending_review.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 3.1.8 on 2021-04-12 07:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0075_various_model_field_options"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="report", | ||
name="originally_pending_review", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="Reports that were originally flagged as pending review", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters