-
Notifications
You must be signed in to change notification settings - Fork 630
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
add new badges #704 #742
add new badges #704 #742
Conversation
Hi @marti1125! Thank you for the PR and I'm sorry it's taken me so long to look at this! Regarding the errors you got, was this when you ran Could you run Regarding the code, I think I was unclear when we chatted last. I was imagining one new enum variant for maintenance that would have ActivelyDeveloped, PassivelyMaintained, and so on as the possible values for that variant. Also, this variant would not need the In other words, what I think crate authors should be able to specify in their [badges]
maintenance = { value = "passively-maintained" } That will have cargo send this JSON to crates.io when a crate gets published: {
"name": "your-crate-name",
// all the other metadata in here
"badges": {"maintenance": {"value":"passively-maintained"}}
} Then, when crates.io uses serde to deserialize this JSON, it should match a When we go to display the badge, the text of the badge will come from looking up the Does that make sense? Are you up for making that change to this PR? Please ask questions if I'm still not being clear! Thank you!! |
Hi @marti1125, just checking in on this PR-- will you have time soon to make changes to this PR? Thanks! |
@carols10cents sorry for the big delay I will restart with this issue tomorrow. I will see you at irc channel 👍 |
@carols10cents please review my commit thanks! |
This nests the data too much; serialized JSON looks like this, which has an extra value key: ``` { "badge_type": "maintenance", "attributes": { "value": { "value": "looking-for-maintainer" } } } ```
Hi! The code needed a few more changes, and I added some tests to make sure everything was working. I also updated the checklist! Thank you!! 🌞 🌝 🌷 |
@carols10cents great! 👍 |
could you explain me more about the others tasks? please 😄 |
what would you like to know? |
|
What questions do you have about these tasks? |
|
You do not need to modify any components, you need to create a new component in a file named app/components/badge-maintenance.js. In the app/components/ directory, there are other badge components that will be good examples for what needs to go in that new file. Does that make sense? Do you have the frontend of the app running on your local machine? Do you have the backend running on your local machine? If so, have you tried publishing a crate to your local backend? If you are able to do that, you should be able to publish a crate with a maintenance badge in that crate's That way, you can better see the results of what you're doing. Does that make sense? If not, please ask more questions!! |
I added new Badges @carols10cents please review the enums. Thanks!!
And also I had this error =/
https://gist.github.com/marti1125/d2ddda017b9e1c8a4224cf48cc2a42b1