Skip to content

Add historic package lists - #133

Draft
andrewnaessens wants to merge 12 commits into
fedora-eln:masterfrom
andrewnaessens:feature/provide-history-record-#25
Draft

Add historic package lists#133
andrewnaessens wants to merge 12 commits into
fedora-eln:masterfrom
andrewnaessens:feature/provide-history-record-#25

Conversation

@andrewnaessens

Copy link
Copy Markdown

Add daily package list snapshots with browse, compare, and chart toggle UI features

Add daily snapshots of each view's package lists, viewable from chart data points and with browse and compare date pickers.

Resolves #25

Summary

  • Add daily snapshots with per view SRPM lists
  • Add week/day toggle to the existing chart
  • Add calendar date pickers for browsing and comparing snapshots
  • Add click chart data points to reveal package lists
  • Move generate_historic_data() before generate_pages() so date list is available to templates

@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@yselkowitz yselkowitz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There seems to be some boilerplate-like code here, is there an opportunity to create some functions which can be reused in multiple places?

Comment thread content_resolver/historia_data.py Outdated
Comment on lines +113 to +118
history_data = {}
history_data["date"] = str(now.strftime("%Y-%m-%d"))
history_data["workloads"] = {}
history_data["envs"] = {}
history_data["repos"] = {}
history_data["views"] = {}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IIUC we've settled on an initialization syntax for these.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated to dict literal syntax in save_current_historic_data_daily.

Comment thread content_resolver/historia_data.py Outdated
Comment on lines +721 to +722
# Generate daily Chart.js JSON — same chart types as _generate_chartjs_data
# but reading from daily snapshots instead of weekly

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need both? Or can we just use daily throughout?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Refactored _generate_chartjs_data to accept a prefix parameter, making it reusable for both weekly and daily charts. Removed _generate_chartjs_data_daily to avoid unnecessary code duplication.

Comment thread templates/layout.html Outdated
Comment on lines +31 to +32
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be like the others, with a version-specific src and integrity, and also make sure it's covered by the update checking workflow.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Pinned to v4.6.13 with SRI and added to check_cdn_updates.py.

@yselkowitz

Copy link
Copy Markdown
Member

Also, could the exisitng weekly data be of any use to "backfill" the daily data?

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.

Provide history record.

2 participants