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

Improve auth cli filesystem calls #2007

Merged
merged 2 commits into from
Mar 16, 2021

Conversation

renansoares
Copy link
Contributor

@renansoares renansoares commented Mar 15, 2021

Added to use functions instead of const declarations makes it possible to avoid the unneeded filesystem calls.

Fixes #1938

@github-actions
Copy link

github-actions bot commented Mar 15, 2021

📦 PR Packages

Click to Show Package Download Links

https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/create-redwood-app-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-api-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-api-server-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-auth-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-cli-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-core-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-dev-server-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-eslint-config-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-eslint-plugin-redwood-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-forms-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-internal-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-prerender-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-router-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-structure-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-testing-0.27.1-0e7b09f.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2007/redwoodjs-web-0.27.1-0e7b09f.tgz

Install this PR by running yarn rw upgrade --pr 2007:0.27.1-0e7b09f

@renansoares renansoares force-pushed the improve-auth-cli-expressions branch 2 times, most recently from 7a45216 to 349e738 Compare March 15, 2021 14:51
@Tobbe
Copy link
Member

Tobbe commented Mar 15, 2021

Hey @renansoares, thanks for working on this. Can you please try to fix the lint warnings? Makes it much easier to review the code 🙂

@renansoares renansoares force-pushed the improve-auth-cli-expressions branch from 349e738 to 438cec2 Compare March 15, 2021 15:27
@renansoares
Copy link
Contributor Author

renansoares commented Mar 15, 2021

Hey @renansoares, thanks for working on this. Can you please try to fix the lint warnings? Makes it much easier to review the code 🙂

😅 thank you. I did not notice the errors. it should be ok now.

Copy link
Member

@Tobbe Tobbe left a comment

Choose a reason for hiding this comment

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

I've posted two review comments. Please consider them more like questions than requests for change 🙂

@renansoares renansoares force-pushed the improve-auth-cli-expressions branch from 438cec2 to ed79c23 Compare March 15, 2021 16:13
@renansoares renansoares requested a review from Tobbe March 15, 2021 16:28
Copy link
Member

@Tobbe Tobbe left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

Let's wait for @peterp to review as well.

Using functions instead of const declarations makes it possible to avoid unneeded file system calls.
@renansoares renansoares force-pushed the improve-auth-cli-expressions branch from ed79c23 to 7390f61 Compare March 15, 2021 18:27
@Tobbe Tobbe requested a review from peterp March 16, 2021 14:25
Copy link
Contributor

@peterp peterp left a comment

Choose a reason for hiding this comment

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

Thanks for this, looks good to me.

Thanks @Tobbe for the review :)

@peterp peterp added this to the next release milestone Mar 16, 2021
@Tobbe Tobbe merged commit 4927efd into redwoodjs:main Mar 16, 2021
dac09 added a commit to dac09/redwood that referenced this pull request Mar 22, 2021
…r-rwt-link

* 'main' of github.com:redwoodjs/redwood: (26 commits)
  Router: Fix auth (redwoodjs#2038)
  Steps towards a11y for Redwood Router (redwoodjs#1817)
  Router: <Set wrap={}> (redwoodjs#1898)
  Pass event and context into getCurrentUser (redwoodjs#1908)
  Implement Redwood API side Logger (redwoodjs#1937)
  Fixed path on windows to allow for pages under subdirectories (redwoodjs#2022)
  Add experimental ESBuild for api side (redwoodjs#1948)
  Upgrade to Prisma 2.19.0 (Prisma Migrate GA) (redwoodjs#2021)
  Fix lint breaking when deleting a side (redwoodjs#2017)
  Refactor: Converted Prisma.ts to js (redwoodjs#1958)
  Fix issue with verify email redirect using Auth0 (redwoodjs#1990)
  add GitHub Action CodeQL Analysis (redwoodjs#1951)
  fix: correct var name for grabbing user config (redwoodjs#2002)
  Create functions to fs calls (redwoodjs#2007)
  Return signup Output (redwoodjs#1992)
  Add makeExecSchema options (redwoodjs#1964)
  upgrade gotrue-js to 0.9.29 (redwoodjs#2011)
  Azure Active Directory Auth: Adding try-catch block on callback to capture empty key (redwoodjs#2010)
  withCellHOC: Fix TS error (redwoodjs#1967)
  Update error message in tasks/publish-local to point to tasks/run-local-npm when Verdaccio isn't running (redwoodjs#2004)
  ...
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.

Improve CLI speed by making FS calls lazy
3 participants