Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

submitReport: Capture if the report was originally flagged for review. #275

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

alexmv
Copy link
Member

@alexmv alexmv commented Apr 12, 2021

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.

@alexmv alexmv force-pushed the alexmv/originally-checked branch 2 times, most recently from d14c8ea to f981b67 Compare April 12, 2021 08:05
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.
@codecov
Copy link

codecov bot commented Apr 12, 2021

Codecov Report

Merging #275 (1d7a75e) into main (ebb459e) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #275      +/-   ##
==========================================
+ Coverage   83.58%   83.61%   +0.03%     
==========================================
  Files         140      141       +1     
  Lines        3679     3686       +7     
==========================================
+ Hits         3075     3082       +7     
  Misses        604      604              
Impacted Files Coverage Δ
vaccinate/core/admin.py 88.12% <ø> (ø)
vaccinate/core/test_admin.py 100.00% <ø> (ø)
vaccinate/api/views.py 81.30% <100.00%> (+0.10%) ⬆️
...igrations/0076_report_originally_pending_review.py 100.00% <100.00%> (ø)
vaccinate/core/models.py 96.84% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebb459e...1d7a75e. Read the comment docs.

@alexmv
Copy link
Member Author

alexmv commented Apr 12, 2021

I'm going to merge this so we don't lose data that we need for reporting. We can swap to a different solution later, but having the data is necessary to have that backfill.

I'm implementing and merging this, rather than switching revisions on for reports (#273), since that's a much larger change in terms of database load, and we've already noticed one place that there were perf implications of revision history (#225).

@alexmv alexmv merged commit c866931 into main Apr 12, 2021
@alexmv alexmv deleted the alexmv/originally-checked branch April 12, 2021 08:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant