-
Notifications
You must be signed in to change notification settings - Fork 10
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
Spam-report for juice-shop pull requests and issues #29
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retrieving the last 30 days every time is not the way to go. Take a look at the other GitHub stats, we pull the data of the previous day and append it to a JSON, then commit to the repo. This means we have a growing permanent history. For the initial JSON you'd need to run the script for each day starting with the first day that ever had a spam
PR/issue, then concatenate all subsequent days except the day that would be appended by the next CI run.
Also, the visualization is missing, and without the PR is too incomplete to merge.
Lastly, please remove your GitHub token. I think it works without - see the other GitHub stats again: https://github.com/juice-shop/juicy-statistics/blob/master/extractors/github.js
I will be occupied with my university exams until March 7th 😅 . After that I will go through the codebase to understand it better and implement a similar approach for the spam-report and make the necessary changes |
I am almost done with tihs , just need to figure out some stuff then i will push the changes |
…ion about which one to choose )
Populated the spam-report.json with a script to fetch the no.of spam pr/issue starting from the 1st ever spam pr/issue
added a similar function to achieve this after going throught the approach used in github.js.
added two graphs (1st one is the default what we are using and another alternative(chart.js)) since the google chart's one doesn't seem as promising. Take a look at both and let me know which one we should proceed with. I will further improve the chosen graph to make it even better if possible 1st GraphScreencast.from.2025-03-11.04-14-32.mp42nd Graph (chart.js)Screencast.from.2025-03-11.04-04-55.mp4 |
sorry for chiming in there late. probably still fine to collect and store it on a daily basis, but wouldn't display it this way. |
Collecting daily, displaying monthly sum sounds best, agreed. |
Signed-off-by: JuiceShopBot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -8,15 +8,16 @@ | |||
crossorigin="anonymous"></script> | |||
<title>OWASP Juice Shop - Open Source Statistics</title> | |||
|
|||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason this is pulling in another chart libary?
seems like this graph should also be achievable with the already used google visualization lib, don't want to pull in two libs unless we have a good reason for it
Description
Spam issues and Pull requests report graph for the Juice-shop app
Screencast.from.2025-02-22.03-06-25.mp4