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

[docs] why can't I hold all these changelogs #7348

Merged
merged 9 commits into from
Nov 10, 2023

Conversation

cee-chen
Copy link
Contributor

@cee-chen cee-chen commented Nov 7, 2023

Summary

addresses #6347 (apparently nothing lights a fire under my butt like seeing an issue that mildly annoys me get pinged or closed by the stale bot 🔥)

Our changelogs (over 6k lines as of this PR) have gotten so large that they take over 10 seconds to load in our docs and on GitHub. This is no way to live life, so I decided to see what other large repos were doing, and particularly was inspired by Node.js (nodejs/node#5533).

Splitting up by year appealed to me a lot (based on EUI's current weekly versioning/release strategy) rather than by majors or # of releases. So, here's what resulted:

changelog

Also while here, I updated each changelog heading with a v prefix and updated their links to point at the release/tag rather than at the repo (more useful IMO).

QA

General checklist

N/A, docs/infra only change

- this is significantly more useful than the tree link (IMO) because it contains more - the option to view the repo at that tag, the option to download the source code, and the standalone changelog
@cee-chen cee-chen force-pushed the changelog-improvements branch from 6312ba1 to 13dae92 Compare November 7, 2023 22:17
@cee-chen cee-chen added documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog tech debt labels Nov 7, 2023
@cee-chen cee-chen force-pushed the changelog-improvements branch from 13dae92 to 488e37a Compare November 7, 2023 22:35
@cee-chen cee-chen force-pushed the changelog-improvements branch from 488e37a to 5d9930b Compare November 7, 2023 22:36
+ [UX] Add a skeleton loader - raw loader still takes a noticeable second or two for the larger years, so might as well make that behavior more intentional
@cee-chen cee-chen force-pushed the changelog-improvements branch from 403e47c to c4d4c28 Compare November 7, 2023 23:36
- using `new Date()` will cause old versions in the future to show dates with no changelogs, which is no bueno - we should freeze/make the data static to the release
+ references to the old file/directories
- broke in the version switcher PR, not this PR
@cee-chen cee-chen force-pushed the changelog-improvements branch from c4d4c28 to 2af9047 Compare November 7, 2023 23:41
@cee-chen cee-chen marked this pull request as ready for review November 7, 2023 23:44
@cee-chen cee-chen requested a review from a team as a code owner November 7, 2023 23:44
@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@breehall
Copy link
Contributor

breehall commented Nov 8, 2023

Yay for loading changelogs faster in the docs! And hopefully, this means there's a smaller chance we'll see the angry Github unicorn when viewing the raw changelogs!

@cee-chen
Copy link
Contributor Author

cee-chen commented Nov 8, 2023

Bree!!!!
Elmo waving hello

If only you could approve my PR like old times 😆

@tkajtoch tkajtoch self-requested a review November 9, 2023 18:00
Copy link
Member

@tkajtoch tkajtoch left a comment

Choose a reason for hiding this comment

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

I'm so excited about this one! As always, thank you for making EUI better! 🎉

The changes look and work great :shipit:

@cee-chen
Copy link
Contributor Author

Adding a note of nuance from @kyrspl from Slack - in EUI+/the new docs site, we should forego the changelog page in favor of linking directly to our GitHub release page or to our new changelogs/ directory. We still need the part of this work/PR that splits up the main CHANGELOG.md file however.

@cee-chen cee-chen merged commit 8bf5038 into elastic:main Nov 10, 2023
8 checks passed
@cee-chen cee-chen deleted the changelog-improvements branch November 10, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants