feat: add community leaderboard with nightly CI update#2710
feat: add community leaderboard with nightly CI update#2710Maanvi212006 wants to merge 17 commits into
Conversation
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
✅ Deploy Preview for mesheryio-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Code Review
This pull request introduces a community leaderboard feature by adding a script to fetch user metrics from the Discourse API, a Jekyll template to display the leaderboard with filtering capabilities, and a markdown page to host it. The review feedback highlights several critical improvements: utilizing the fetched DISCOURSE_API_KEY in the API request headers, adding defensive checks and default values in the script to prevent crashes or NaN values from unexpected API payloads, and preventing an infinite loop in the avatar image's onerror handler by setting it to null.
|
🚀 Preview deployment: https://meshery.github.io/meshery.io/pr-preview/pr-2710/
|
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
884d6e6 to
0713649
Compare
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
cdcdcfd to
5700d6d
Compare
|
The failing DCO check is on commit 19705b1, which was created automatically by the GitHub Actions bot during a test run of the nightly workflow. This is not a contributor commit — it was generated by the CI itself. |
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
Done @rishiraj38 |
|
@Maanvi212006 Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂 |
|
🚨 Alert! Git Police! We couldn’t help but notice that one or more of your commits is missing a sign-off. A what? A commit sign-off (your email address). To amend the commits in this PR with your signoff using the instructions provided in the DCO check. To configure your dev environment to automatically signoff on your commits in the future, see these instructions.
|
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
|
Hi @CodexRaunak |
|
@Maanvi212006 Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂 |
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
Signed-off-by: Maanvi Chetwani <maanvichetwani21@gmail.com>
…06/meshery.io into community-leaderboard
|
@Maanvi212006 Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂 |
Description
This PR fixes #947
Adds a community leaderboard to meshery.io that ranks members of the Layer5 discussion forum based on their contributions.
Inspired by Lee's PR #6773 : [Docs] Integrate Discussion Forum with Posts by Tag which introduced the static data + nightly CI pattern for integrating Discourse forum data into Meshery sites, this PR follows the same approach.
How it works:
_data/leaderboard.json_includes/leaderboard.htmlreads the pre-computed data and renders a ranked table with avatars, usernames, and scores/community/leaderboardscreen-capture.mp4
Files added:
.github/scripts/fetch-leaderboard.js— scoring logic.github/workflows/update-leaderboard.yml— nightly CI_data/leaderboard.json— pre-computed leaderboard data_includes/leaderboard.html— UIleaderboard.md— pageNotes for Reviewers
DISCOURSE_API_KEYsecret will need to be added to the main repo's secrets after mergeSigned commits