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

chore(gatsby): disable loki stuff without dropping it #23646

Merged
merged 3 commits into from
May 1, 2020

Conversation

pvdz
Copy link
Contributor

@pvdz pvdz commented Apr 30, 2020

This PR prevents Loki from being used anymore within Gatsby.

The PR is only disabling Loki specific code paths, not removing them. That'll be a followup commit that's much more invasive than this one.

Basically, after this commit, GATSBY_DB_NODES=loki shouldn't change anything anymore in terms of how Gatsby works.

Also tried to disable circle ci checks for loki.

@pvdz pvdz requested a review from a team as a code owner April 30, 2020 13:03
@pvdz pvdz force-pushed the noloki branch 2 times, most recently from 09bb003 to e1293bf Compare April 30, 2020 13:48
@pvdz pvdz marked this pull request as draft April 30, 2020 13:49
@pvdz pvdz force-pushed the noloki branch 3 times, most recently from 8f0e8b6 to 82a446e Compare April 30, 2020 13:52
@pvdz pvdz marked this pull request as ready for review April 30, 2020 13:52
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

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

Phew

Want to comment out the switch cases in packages/gatsby/src/db/nodes.js as well? You mentioned that you'd follow up to clean up, so can happen then

@pvdz
Copy link
Contributor Author

pvdz commented May 1, 2020

Yeah we'll drop the whole thing at once next sprint. This is only commenting out the pieces that change things based on the flag.

@pvdz
Copy link
Contributor Author

pvdz commented May 1, 2020

Added message to warn against usage.

Co-authored-by: Sidhartha Chatterjee <[email protected]>
@sidharthachatterjee sidharthachatterjee merged commit e643d6b into master May 1, 2020
@sidharthachatterjee sidharthachatterjee deleted the noloki branch May 1, 2020 11:36
@pvdz
Copy link
Contributor Author

pvdz commented May 1, 2020

Published in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants