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
Generate CRUD by default for SDL and Services to mitigate issues in GraphQL used in cells #4785
Generate CRUD by default for SDL and Services to mitigate issues in GraphQL used in cells #4785
Conversation
✅ Deploy Preview for redwoodjs-docs ready! 🔨 Explore the source changes: ba13525 🔍 Inspect the deploy log: https://app.netlify.com/sites/redwoodjs-docs/deploys/6234f3a9865e7a0009d7eb26 😎 Browse the preview: https://deploy-preview-4785--redwoodjs-docs.netlify.app |
Oh @jtoar I just realized I can now update the docs in this same repo -- and part of this PR! Amazing. |
To stay consistent (not passing the flag is the same as |
I don't think there is a dedicated On the web side there are But, on the api side, the tests use scenarios so I think it's all or nothing. I'll check again (but that was my impression when making the change). |
I was just thinking remove these two lines since https://github.com/redwoodjs/redwood/blob/main/packages/cli/src/commands/generate/scaffold/scaffold.js#L161 |
Oh, I see in scaffold. Ok that makes sense. Thanks! |
I updated https://github.com/redwoodjs/redwood/blob/main/packages/cli/src/commands/generate/scaffold/scaffold.js#L161 for the SDL default in scaffold. But - the one in services since it passes along in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the --no-crud
syntax. I think it's easier to read (and shorter to type) than --crud=false
. A quick search through the docs shows we use both variants for other commands, but the --no-
version is more common.
Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
Thanks! I had forgotten about the “—no” option. That’s much better. |
@cannikin I'll get this in when CI passes. Will the tutorial need updating? |
Yep: https://redwoodjs.com/docs/tutorial/saving-data#create-an-sdl--service I actually make a point of saying we're NOT using the |
Understood. Will you still keep that flow then and just start with |
Maybe...I tend to want to teach the plain, basic forms of commands and then mention specialty flags in a little callout... I can reword, it's fine. Just makes it look like Redwood does even more stuff for you! |
Fixes issue: #4766
As noted in the above issue:
This PR updates the sdl and service generator to always create CRUD artifacts.
Note: