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

fix(dbAuth): Print the correct "post message" after generation #10813

Merged
merged 14 commits into from
Jun 13, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Jun 13, 2024

After running yarn rw generate dbAuth a message is printed telling the user what files they need to edit, and what edits needs to be made.

However, what exact edits needs to be made depends on whether WebAuthn is setup or not. So the "post message" needs to be different depending on what the user chose during generation.

We already had code for this, but it'd always print the message for when WebAuthn is not selected, even if the user did in fact chose to enable WebAuthn support.

This PR makes sure the correct message is printed, and that we have proper test coverage for this.

@Tobbe Tobbe added the release:fix This PR is a fix label Jun 13, 2024
@Tobbe Tobbe added this to the next-release-patch milestone Jun 13, 2024
@Tobbe Tobbe changed the title feat(dbAuth): Only suggest dbAuth setup if needed fix(dbAuth): Print the correct "post message" after setup Jun 13, 2024
@Tobbe Tobbe changed the title fix(dbAuth): Print the correct "post message" after setup fix(dbAuth): Print the correct "post message" after generation Jun 13, 2024
@Tobbe Tobbe enabled auto-merge (squash) June 13, 2024 23:00
@Tobbe Tobbe merged commit 4455a11 into redwoodjs:main Jun 13, 2024
51 checks passed
@Tobbe Tobbe deleted the tobbe-dbauth-fix-end-message branch June 13, 2024 23:13
dac09 added a commit to dac09/redwood that referenced this pull request Jun 17, 2024
…ckage-cjsonly-new-build

* 'main' of github.com:redwoodjs/redwood: (66 commits)
  chore(testing dbAuth): Add "yes" prompt testing for WebAuthn (redwoodjs#10823)
  chore(testing dbAuth): Mock console.log to silence test output (redwoodjs#10821)
  chore(testing dbAuth): Remove duplicated tests (redwoodjs#10822)
  chore(testing dbAuth): Remove outdated code (redwoodjs#10820)
  chore(testing dbAuth): Consistent naming and fix blue squiggles (redwoodjs#10819)
  chore(testing dbAuth): provide mock implementations (redwoodjs#10818)
  feat(dbAuth): Only suggest dbAuth setup if needed (redwoodjs#10793)
  chore(dbAuth): Fix test for webauthn prompt in `g dbAuth` (redwoodjs#10814)
  fix(dbAuth): Print the correct "post message" after generation (redwoodjs#10813)
  fix(dbauth): Fix spacing issue in task titles (redwoodjs#10811)
  deps(docs): update braces package (redwoodjs#10809)
  chore(deps): bump braces from 3.0.2 to 3.0.3 in /tasks/check (redwoodjs#10808)
  chore(deps): update yarn to v4.3.0 (redwoodjs#10801)
  chore(deps): update dependency tsx to v4.15.2 (redwoodjs#10800)
  chore(deps): update dependency @clerk/types to v3.65.2 (redwoodjs#10795)
  chore(deps): update dependency firebase to v10.12.2 (redwoodjs#10802)
  chore(deps): update dependency rollup to v4.18.0 (redwoodjs#10799)
  chore(deps): update dependency jsdom to v24.1.0 (redwoodjs#10798)
  chore(deps): update dependency @types/vscode to v1.90.0 (redwoodjs#10796)
  chore(deps): update dependency @clerk/clerk-react to v4.32.2 (redwoodjs#10794)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants