-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[greasyfork] Add Greasy Fork service badges #8080
Conversation
|
#5157 too |
Could you help me understand the difference between daily and total installs, and why the total installs field is represented as users? |
Total installs = total number of installs I suppose total installs could be under "downloads" instead of users. I think I will change it to I was basing it mostly on the "Mozilla Add-on" badges code. |
Yeah let's do that, |
I have updated the code with the discussed change |
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.
Thanks for this! This is looking good overall, with a few inline questions and requests for changes below
Everything else looks good to me, so happy to move forward once we get the ratings badges pulled out to a separate PR or issue for discussion |
Thanks, I have removed them from this PR |
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.
Thanks a ton! This has been requested a few times over the years so will be nice to get this to users
As I'm not on GF usually you may want to double check multiple licenses and any other key that normally supports more than a single JSON key value pair just like was done on OUJS. As I mentioned on the OUJS PR all key value pairs in all .user.js engines are required to be LIFO. I don't know if GF reverses the arrays for multiple key or not like they should be. OUJS Admin |
I have tested it and found that GF does not seem to do anything about multiple licenses. If the key appears multiple times, only the first license appears in the JSON. As the value appears to only ever be a string, the solution I've done here seems to be the only option unless they change it on their end. (eg: see https://greasyfork.org/en/scripts/446487/code?version=1060911 and https://greasyfork.org/en/scripts/446487.json?version=1060911) |
Agreed. When he adopted our SPDX code implementation I think he may have missed that long time .user.js standard... perhaps even before that adoption. |
TBH I'm not 100% sure I followed all the recent commentary, but it sounds like it's sorted? @DenverCoder1 - I spotted one last minor thing, and if you could also rebase/merge to get your branch updated with the latest, or allow the maintainers to edit your PR (so our bots can do their thing) that'd be great. We have the branch protection policy enabled that requires branches be up to date, so that will be required for merging |
Co-authored-by: Caleb Cartwright <[email protected]>
Yeah, everything should be good. I'm not sure I see an option to allow maintainer edits and I'm not sure why it would be disabled, but I've gone ahead and merged master. |
This article may help, although there could just be something funky going on with GitHub |
Yeah, I've looked before and I'm still not seeing that option. Possibly it could have to do with contributing from an organization account? I'm not sure. |
Yup that's it. Didn't realize your account was setup as an org. Will just be something to keep an eye on for current open PRs and any potential future ones |
Closes #8074
Partially resolved issues: #5505, #829
Reverted rating badges