newrelic / opensource-website

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

[OSS Site] build on main is failing #901

Closed jpvajda closed 2 years ago

jpvajda commented 2 years ago

Related issue #902

it looks like the build on main is failing on Gatsby Cloud due the the github query for the sponsors component on the home page

Steps to reproduce

  1. Go to Gatsby Cloud
  2. view the opensource-website main branch
  3. look at the recent build

Expected

Error

There was an error in your GraphQL query:

Cannot query field "nodes" on type "GithubDataRawResultDataOrganizationSponsoring".

If you don't expect "nodes" to exist on the type "GithubDataRawResultDataOrganizationSponsoring" it is most likely a typo.
However, if you expect "nodes" to exist there are a couple of solutions to common problems:

    If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
    The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
    You want to optionally use your field "nodes" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add at least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "GithubDataRawResultDataOrganizationSponsoring":
https://www.gatsbyjs.com/docs/reference/graphql-data-layer/schema-customization#creating-type-definitions

For more details see https://gatsby.dev/issue-how-to

The error occured in src/pages/index.js@81,15
jpvajda commented 2 years ago

I'm going to take a crack at this one.

jpvajda commented 2 years ago

I'm trying to clarify what projects New Relic (Github org) is sponsoring now. We used to sponsor 50+ projects / users but when I visit this sponsor page on our org, it shows we sponsor 0. I've reached out to dev rel in slack to confirm.

jpvajda commented 2 years ago

from Dev Rel: That initial round of sponsorships was only meant to last for three months. For some reason, they continued on until the money we’d set aside for GitHub Sponsors was exhausted. but, as of right now, we’re not sponsoring anything and need to reevaluate how we manage these sponsorships.

What we can do is remove the component and if in the future we go back to sponsoring projects, just resurrect the code. Given the graphql query being used is causing us build issues on Gatsby, it's better if we just deprecate the component for now.