Skip to content
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

feat: add Netlify Graph support #3904

Merged
merged 67 commits into from
Jan 22, 2022
Merged

Conversation

sgrove
Copy link
Contributor

@sgrove sgrove commented Dec 23, 2021

Summary

Basic, preliminary support for Netlify Graph

@erezrokah erezrokah added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Dec 27, 2021
@sgrove sgrove marked this pull request as ready for review January 11, 2022 21:44
@sgrove sgrove requested a review from a team as a code owner January 11, 2022 21:44
Copy link
Collaborator

@lukasholzer lukasholzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for submitting the PR! Looks already nice overall :) Nevertheless I think you have to rerun the docs command as the docs build is failing. After that try to fix the failing tests and the formatting by running npm test.

Furthermore please try to add some tests to test the newly added functionality. I know the CLI has not the best testcoverage, but we try to test all the added features as good as possible.

Maybe @KyleBlankRollins can provide some feedback on the documentation if it is ready :)

If you think the PR is not ready for reviewing yet I always tend to move/create a Draft PR on GitHub as the reviewers don't get flooded with mails then :)

package.json Outdated Show resolved Hide resolved
src/commands/dev/dev.js Outdated Show resolved Hide resolved
@erezrokah erezrokah requested a review from lukasholzer January 12, 2022 11:20
@erezrokah erezrokah removed their assignment Jan 12, 2022
@lukasholzer
Copy link
Collaborator

Tests are now failing because snapshots are not matching I guess something changed the behaviour of the dev server will investigate but its actually a code change you introduced @sgrove that is triggering that:

CleanShot 2022-01-21 at 12 03 00

@lukasholzer
Copy link
Collaborator

@sgrove I fixed you the failing tests ;)

@@ -0,0 +1,278 @@
/* eslint-disable eslint-comments/disable-enable-pair */
/* eslint-disable fp/no-loops */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opened up discussion regarding this lint rule netlify/eslint-config-node#426

lukasholzer
lukasholzer previously approved these changes Jan 21, 2022
Copy link
Collaborator

@lukasholzer lukasholzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my point of view it is ready to go 🥳

log,
warn,
error,
debug: console.debug,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a package for debugging

const debug = require('debug')

debug('oneGraph')('My message')

this will only be executed if called with DEBUG=* netlify ... or DEBUG=oneGraph netlify ....

With that you get fine grained console logs on different debugs scopes

@lukasholzer
Copy link
Collaborator

From my point of view it is ready to go 🥳

Maybe @ascorbic can provide a last review as well

ascorbic
ascorbic previously approved these changes Jan 21, 2022
Copy link
Contributor

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@sgrove sgrove dismissed stale reviews from ascorbic and lukasholzer via 97e04ef January 21, 2022 23:06
localden
localden previously approved these changes Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants