Skip to content
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

Enterprise Date Range Tiles do not display for translated languages #35499

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

mjriley
Copy link
Contributor

@mjriley mjriley commented Dec 10, 2024

Product Description

Technical Summary

We display a partial template for each enterprise tile. Within that template, there is conditional logic for whether or not to display the date range picker. That logic is currently based on the translated title of the report. This PR switches that to instead be based on the slug, so that translated languages still see the tiles correctly.

It also generalizes the date range logic.

Feature Flag

None

Safety Assurance

Safety story

Locally verified that the tiles continue to display and respond correctly.

Automated test coverage

None

QA Plan

No QA

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@mjriley mjriley added the product/invisible Change has no end-user visible impact label Dec 10, 2024
@mjriley mjriley changed the title Mjr/enterprise tile display fix Enterprise Date Range Tiles do not display for translated languages Dec 10, 2024
Copy link
Contributor

@jingcheng16 jingcheng16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@@ -93,6 +93,7 @@ def platform_overview(request, domain):
EnterpriseReport.ODATA_FEEDS,
EnterpriseReport.SMS,
)],
'uses_date_range': [EnterpriseReport.FORM_SUBMISSIONS, EnterpriseReport.SMS],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it.

@mjriley mjriley merged commit e56ef3e into master Dec 10, 2024
13 checks passed
@mjriley mjriley deleted the mjr/enterprise_tile_display_fix branch December 10, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/invisible Change has no end-user visible impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants