-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block level reports via Regions (#1477)
* Start spiking out Region backed reports * Fix duplicate districts and blocks getting spun up * Make region type creation idempotent * Ensure the slugs stay consistent w/ source slug Need to explicitly set them from the source, otherwise facility slugs are getting set to different hings. Which is oging to lead to problems and confusion. * find the correct region * Arel deprecation error for some reason... but the find is getting to the point where it should work * Delegate assigned patients to a region's source This works for now because the source is either a facility group or a facility. This wont work once we have proper block level reports * Check district region correctly * Define singlular 'foo_region?' methods for Region instances; remove plural methods this cleans up some confusion that is a result of the rails auto-generated enum methods * Get basic region reports working duck typing where possible * Get block level reports working Need to figure out the virtual vs ActiveRecord source piece on Region * Dont try to render blocks for FacilityDistrict I'm not sure if that is a valid thing to even show .../cc harimohanraj89 do you know? * linting * Less type checks * Avoid type checks * Fix logging * Add a test for block level control rates * explain this magic number * Simplify how we get assigned_patients for a Region * remove Block, dont need it anymore * Need to return a relation, not the single model treat everything as a collection of facilities so that calling code doesn't need to worry about it * Add a better error message for FG factories w/ regions Make it easier to track down dependancy issues here as we enable regions_prep more broadly * Add block spec; render views only CI * typo * back to debug in dev; info for test * linting * Update standard To pull in standardrb/standard#228 * Remove this not needed anymore, and I don't know if itw as even working * remove dead code * better local name Co-authored-by: prabhanshuguptagit <[email protected]>
- Loading branch information
1 parent
53a0a8c
commit ebabedd
Showing
16 changed files
with
603 additions
and
14 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
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
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
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
Oops, something went wrong.