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

Convert data dumps page to stimulus.js #5080

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

martinemde
Copy link
Member

I'm targeting the static pages for the first to receive the new design.

The data dump page uses javascript to fill the available dumps. Without a template based approach, it's difficult to switch to Tailwind. Rather than fuss with the original javascript, I quickly rewrote the page using stimulus controllers. It otherwise looks identical.

<template data-dump-target="template">
<li><a href="#"></a></li>
</template>
</ul>
<p>We also provide weekly dumps of the historial RubyGems.org Redis data. (We do not use redis anymore but these are here for historical purposes.)</p>
Copy link
Member Author

Choose a reason for hiding this comment

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

The latest redis dump is 2016. Can we drop it from the page?

Copy link
Member

Choose a reason for hiding this comment

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

IMO yes.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll remove it. I can't see a reason why we'd need 8 year old redis backups.

@martinemde martinemde added this to the Organizations milestone Sep 28, 2024
Copy link

codecov bot commented Sep 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.03%. Comparing base (46716f0) to head (d7f7059).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5080   +/-   ##
=======================================
  Coverage   97.03%   97.03%           
=======================================
  Files         421      421           
  Lines        8776     8776           
=======================================
  Hits         8516     8516           
  Misses        260      260           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martinemde martinemde merged commit a59fb3d into master Sep 28, 2024
18 checks passed
@martinemde martinemde deleted the martinemde/data-dump-stimulus branch September 28, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants