Recidiviz / justice-counts

Technical infrastructure for the Justice Counts initiative
GNU General Public License v3.0
2 stars 0 forks source link

[Publisher] Update breakdown view behavior on Explore Data page #1497

Closed nasaownsky closed 2 months ago

nasaownsky commented 2 months ago

Description of the change

Updated breakdown view behavior according to task description:

If a user is in a breakdown view for metric A and switches to metric B, we could show them the same breakdown if it exists in metric B, otherwise we show them the breakdown metric that is NOT the Biological Sex or Race Ethnicity breakdown.

Type of change

All pull requests must have at least one of the following labels applied (otherwise the PR will fail):

Label Description
Type: Bug non-breaking change that fixes an issue
Type: Feature non-breaking change that adds functionality
Type: Breaking Change fix or feature that would cause existing functionality to not work as expected
Type: Non-breaking refactor change addresses some tech debt item or prepares for a later change, but does not change functionality
Type: Configuration Change adjusts configuration to achieve some end related to functionality, development, performance, or security
Type: Dependency Upgrade upgrades a project dependency - these changes are not included in release notes

Related issues

closes #1454

Checklists

Development

This box MUST be checked by the submitter prior to merging:

These boxes should be checked by the submitter prior to merging:

Code review

These boxes should be checked by reviewers prior to merging:

nasaownsky commented 2 months ago

Hi @mxosman! If my understanding of Issue is correct then this change should bring the desired behavior.

mxosman commented 2 months ago

Hi @nasaownsky - can you take another look at this? I don't think it's working as intended for all of them. Feel free to test with other agencies.

https://github.com/user-attachments/assets/357861e5-5c7e-4b62-ba0d-6c121f9a94d6

nasaownsky commented 2 months ago

Can you tell me what is this agency? It would be easier to find a problem if I could look closer.

mxosman commented 2 months ago

Can you tell me what is this agency? It would be easier to find a problem if I could look closer.

Yes - this one was [Staging] Missouri Department of Corrections

nasaownsky commented 2 months ago

Oh, I think I can't see it. Can you please invite me to the team?

mxosman commented 2 months ago

Done!

nasaownsky commented 2 months ago

@mxosman can you check one more time please?