Skip to content

Usage report tab for indirect nodes#167

Closed
ShaiahWren wants to merge 7 commits intoansible:develfrom
ShaiahWren:usage-report-tab
Closed

Usage report tab for indirect nodes#167
ShaiahWren wants to merge 7 commits intoansible:develfrom
ShaiahWren:usage-report-tab

Conversation

@ShaiahWren
Copy link
Copy Markdown
Contributor

@ShaiahWren ShaiahWren commented Jul 15, 2025

[AAP-48357]

##Description
An infrastructure summary of indirect nodes in new tab "Usage Report" MVP. The On-Premise infrastructure is included for now, although it can be removed if it cannot be used here or anywhere else. Further testing is needed. The next step will be to generate tarballs of broken data and test thoroughly.

Testing

ENV VARS:
export METRICS_UTILITY_SHIP_PATH=/Users/semighdo/work/metrics-utility/metrics_utility/test/test_data
export METRICS_UTILITY_SHIP_TARGET="directory"
export METRICS_UTILITY_OPTIONAL_CCSP_REPORT_SHEETS="ccsp_summary,indirectly_managed_nodes"
export METRICS_UTILITY_REPORT_TYPE="CCSPv2"

Run build report:
uv run ./manage.py build_report --since=2025-02-25 --until=2025-02-26 --force

Expected Results

Resulting xlsx should contain the new tab "Usage Report" showing infrastructure breakdown

Required Actions

  • Requires documentation updates
  • Requires downstream repository changes
  • Requires infrastructure/deployment changes
  • Requires coordination with other teams
  • Blocked by PR/MR: #XXX

Self-Review Checklist

Code Quality

  • Code is properly linted and formatted.
  • All tests (existing and new) pass successfully.
  • Tests are added or updated as needed.
  • Code includes relevant comments for complex sections.
  • Changes are reviewed and approved by at least two team members.
  • Documentation is updated where applicable.
    - If updates are required in the handbook, create a separate PR for the handbook repo.

Notes for Reviewers

Add any additional context or instructions for reviewers here - for example screenshots if needed.

@ShaiahWren ShaiahWren requested a review from Ladas July 15, 2025 17:33
ShaiahWren and others added 4 commits July 15, 2025 14:02
…report

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
return df.astype(types)

def summarize_merged_dataframes(self, df, columns, operations={}):
df_copy = df.copy()
Copy link
Copy Markdown
Contributor

@Ladas Ladas Jul 16, 2025

Choose a reason for hiding this comment

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

why is copy needed? it will double in memory everytime you copy, does pandas throw warnings it should be copied?

@Ladas
Copy link
Copy Markdown
Contributor

Ladas commented Jul 16, 2025

@ShaiahWren hm, it is doing a lot of changes and refactorings. Can you try with more directed change like we were able to generate? That basically changed just few functions to add the new sheet?

@ShaiahWren
Copy link
Copy Markdown
Contributor Author

Closing in favor of #169

@ShaiahWren ShaiahWren closed this Jul 16, 2025
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