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

feat(adoption-insights): add grouping configuration in insights endpoints. #488

Merged

Conversation

karthikjeeyar
Copy link
Member

Fixes

https://issues.redhat.com/browse/RHDHPAI-658

This PR contains following changes:

  • Add grouping query param configuration to provide fine grain control to the consumers. Now users can explicitly fetch the queries based on their need, if not then backend will choose them a better grouping strategy based on the date interval.
  • added hourly grouping strategy to get data points for every hour in a day.
  • Updated the documentation.

Screenshots:

Grouping_param

unit tests:

image

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Mar 11, 2025

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-adoption-insights-backend workspaces/adoption-insights/plugins/adoption-insights-backend none v0.0.1

@Eswaraiahsapram
Copy link
Contributor

Pulled the changes to my local and tested it. Everything /lgtm

Copy link
Contributor

@rohitkrai03 rohitkrai03 left a comment

Choose a reason for hiding this comment

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

/approve

@rohitkrai03 rohitkrai03 merged commit 728cc31 into redhat-developer:main Mar 12, 2025
9 checks passed
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.

3 participants