Skip to content

Create v2 of stats trends with segmentation #975

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

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

DJensen94
Copy link
Contributor

@DJensen94 DJensen94 commented Jun 25, 2025

Create v2 of stats trends with segmentation and requesting specific fields

🗣 Description

Adds segentation capability when a user requests a date range over 60 days. Also adds the ability to request specific fields to avoid getting irrelevant data.

💭 Motivation and context

There are future plans for long term trending being shown on the front end. To serve the relevant data we need to be able to streamline the return to be only the relevant data. This means the user should be able to specify specific fields and request data to be aggregated based on a date segments.

🧪 Testing

Tested locally and tests have been written in pytest to test different capabilities.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

Create v2 of stats trends with segmentation and requesting specific fields
Ignore R0915 warning
lint
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.

1 participant