newrelic / opensource-website

Source code for New Relic's Opensource site.
https://opensource.newrelic.com
Apache License 2.0
152 stars 91 forks source link

Add License Information to the left-hand standard project data #314

Closed tangollama closed 4 years ago

tangollama commented 4 years ago
Screen Shot 2020-04-27 at 9 04 08 AM

We'll need to add metadata to the project file. Example:

{
  "license": {
    "title": "Apache 2",
    "licenseUrl": "https://github.com/newrelic/nr1-workload-geoops/blob/master/LICENSE"
  }
}
tangollama commented 4 years ago

If the API tells us this, update the project data accordingly for this initial launch.

devfreddy commented 4 years ago

We can get this data from the GraphQL API, but I don't think the REST one, which is what the original scripts for project generation was based off of.

I've added the license info to the project-stats Gatsby schema in 069d032. Updated project-stats files in 8695f89.

The way the scripts are setup it is not possible to take it from GraphQL and put it into the project data. They run independently from each other.

We could:

devfreddy commented 4 years ago

@jbeveland27 Is going to switch the "generate projects" script from REST -> GraphQL, this should simplify the scripts a bit and provide us what we need where we need it.

I'll add the license info into the UI somewhere and @danielgolden can adjust placement/formatting/style.

danielgolden commented 4 years ago

Shifted it up into the place where the support section used to live

Captura de Pantalla 2020-05-04 a la(s) 12 02 05 p  m
danielgolden commented 4 years ago

I think this issue is ready to close. What do you thin, @jbeveland27?

jbeveland27 commented 4 years ago

Yep, this is good to close. I created a new issue to track the remaining work I'm doing with the project-stats generation, but that's somewhat tangental to this issue.