New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Maine to Spotlight #562
Conversation
Pull Request Test Coverage Report for Build 2303760533
💛 - Coveralls |
import programRegionsTopology from "./usNdProgramRegions"; | ||
|
||
// localities for both sentencing and probation | ||
const judicialDistricts = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the process for updating the sources file for a new state?
Is there an authoritative source for correctness?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally this has already been created somewhere within the data platform as part of the ingest setup. In the past there has not really been a clear and obvious source for it, I've just had to hunt around for it. Now that we have State Pods I would say you should ask Kris or Daniela (I don't know how much of the ME ingest she has handed off yet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I did this for ID/TN I ran this query in BQ and just used those:
SELECT supervision_type, district
FROM `recidiviz-staging.public_dashboard_views.supervision_population_by_district_by_demographics`
WHERE state_code = 'US_ME'
group by supervision_type, district
order by supervision_type, district;
It looks like for probation they aren't hydrated yet, but for parole there are some that you could use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I have bigquery access to this project? What are you getting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added those in before, however I find it strange that the data I fetch gives me the same numbers for both "ALL" and "EXTERNAL_UNKNOWN", and I think Maine doesn't have parole, yet district breakdowns are all in the "PAROLE" category...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The end result being in the Sentencing by district and Probation by district charts, selecting "All" and "Unknown" gives me the same result, and selecting a district gives me "No Data".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fetching sentence_type_by_district_by_demographics
gives me no district breakdowns, and fetching supervision_population_by_district_by_demographics
gives me district breakdowns only in the Parole category. Is this data that should be available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@terryttsai thanks for calling this out, these are great questions. Can you upload screenshots or videos of this behavior?
@hobuobi maybe you can help here? Or we can involve Kris/Daniela?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any idea what the data prognosis is for Maine? this is fine with me if it unblocks development but obviously it's completely broken ... if we at least have a listing of what metrics we expect to actually have it might be worth culling the rest of them now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is fine with me if it unblocks development but obviously it's completely broken
@macfarlandian can you help us out a bit further here? Obviously this is me and @terryttsai 's first time doing this so we're learning the process. In the task @hobuobi has said that all data for the BASELINE metrics should be available. Does that not seem to be the case? (I haven't checked this out or ran it locally)
@terryttsai maybe what you could do is go through the app and start a doc where you record some screenshots and thoughts about what seems to be working, what's broken, etc, and then we can involve the ME state pod?
@@ -30,6 +30,7 @@ export function getTenantFromDomain(): TenantId | undefined { | |||
// production domains | |||
if (domain.endsWith(".gov")) { | |||
// TODO(#530): Add ID here | |||
// TODO(#): Add ME here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's create an actual issue to track this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import programRegionsTopology from "./usNdProgramRegions"; | ||
|
||
// localities for both sentencing and probation | ||
const judicialDistricts = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@terryttsai thanks for calling this out, these are great questions. Can you upload screenshots or videos of this behavior?
@hobuobi maybe you can help here? Or we can involve Kris/Daniela?
], | ||
}, | ||
}, | ||
// TODO(#540): Update localities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the right TODO for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I see this in both us_id.ts and us_tn.ts, but it points to #540. @colincadams is this the right TODO?
wow sorry @lilidworkin my local environment was broken and I assumed it was a data issue but in fact it was my own configuration error! The only metrics that are actually "totally broken" are the two recidivism sections, same as we have seen with the other new Spotlight states so far; if that's a similar known issue then I guess we're actually in pretty good shape |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending Lili's comments
@hobuobi who should we talk to about this missing data in the screenshots above? |
@terryttsai if you address my remaining two comments about Zenhub issues, then I think we should land this, and then once it's in staging we can work with the state pod to address the data issues? |
81503ad
to
42564ef
Compare
Description of the change
Add Maine to Spotlight, the copy and data is not accurate right now.
Type of change
Related issues
Checklists
Development
These boxes should be checked by the submitter prior to merging:
Code review
These boxes should be checked by reviewers prior to merging: