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

270 Dashboard Filters. #381

Merged
merged 12 commits into from
Feb 6, 2024
Merged

270 Dashboard Filters. #381

merged 12 commits into from
Feb 6, 2024

Conversation

eddieleeper
Copy link
Contributor

Description

Refactor multiple queries used to generate KPIs, allowing for more flexible date range scopes. Update the system admin dashboard UI to add simple links to filter KPIs based on predefined date ranges aligned with the application windows.

Additionally to help with local ssl testing, add cert.pem, key.pem to .gitignore.

Trello Card Link

https://trello.com/c/6iP14Inp/270-dashboard-updates-by-application-window

Refactor multiple queries used to generate KPIs, allowing for more flexible date range scopes. Update the system admin dashboard UI to add simple links to filter KPIs based on predefined date ranges aligned with the application windows.

Additionally to help with local ssl testing, add cert.pem, key.pem to .gitignore.
The external links in erb templates have been updated to open in a new tab using the 'new_tab: true' attribute instead of 'target: "_blank"'. This change was required to support the latest view_component gem that was required by the govuk_components gem. The versions of dependencies 'puma' and 'govuk-components' in the Gemfile have been updated to the latest to address the security advisories.
… to ensure security vulnerabilities are addressed. Add CVE-2024-21636 to be ignored in the bundler audit configuration.
Add missing tests to ensure the filters work in all queries.
Extract common logic into new InflectionHelper. Refactor "time_to_" queries code reuse. Extend test coverage to ensure that the day calculation and pluralization are accurate for all cases.
@eddieleeper eddieleeper self-assigned this Jan 29, 2024
@eddieleeper eddieleeper requested a review from Reyko January 29, 2024 14:23
@eddieleeper eddieleeper marked this pull request as ready for review January 29, 2024 14:31
@eddieleeper eddieleeper added the deploy Deploy review app label Jan 29, 2024
app/models/kpis.rb Outdated Show resolved Hide resolved
app/queries/gender_breakdown_query.rb Outdated Show resolved Hide resolved
app/queries/nationality_breakdown_query.rb Outdated Show resolved Hide resolved
app/queries/rejection_reason_breakdown_query.rb Outdated Show resolved Hide resolved
app/queries/average_age_query.rb Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to review-381 January 29, 2024 15:05 Destroyed
…' before 'joins' method in several query classes. Make 'window' a readable attribute.
@github-actions github-actions bot temporarily deployed to review-381 January 29, 2024 16:01 Destroyed
@github-actions github-actions bot temporarily deployed to review-381 February 6, 2024 09:55 Destroyed
@github-actions github-actions bot temporarily deployed to review-381 February 6, 2024 11:20 Destroyed
@eddieleeper eddieleeper merged commit d9a5dfc into main Feb 6, 2024
6 checks passed
@eddieleeper eddieleeper deleted the 270-dashboard-filters-by-dates branch February 6, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants