-
-
Notifications
You must be signed in to change notification settings - Fork 912
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
[riverpod_generator] Add provider_name_prefix
and provider_family_name_prefix
to build.yaml
#3348
[riverpod_generator] Add provider_name_prefix
and provider_family_name_prefix
to build.yaml
#3348
Conversation
2f74038
to
19e0f49
Compare
@rrousselGit I see some of the tests are timing out. Is it because of my changes? |
No don't worry about those tests. |
# providers with parameters ("families"). | ||
# This takes precedence over provider_name_suffix. | ||
provider_family_name_suffix: "Provider" # (default) | ||
``` | ||
|
||
You can change provider name prefix in the build.yaml file: | ||
|
||
```yaml |
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 don't think this warrants a separate code snippet. I'd fuse the doc for prefixes and suffixes
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 fused them in doc: Fuse the doc for prefixes and suffixes
@@ -30,6 +36,13 @@ extension CaseChangeExtension on String { | |||
); | |||
} | |||
|
|||
String get upperFirst { |
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.
There's a string.titled
extension already.
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 removed it in refactor: Use titled instead of upperFirst
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.
LGTM. Could you pull those changes in the dev branch too?
The codegenerator changes quite a bit there, and there will be merge conflicts. We need those sorted :)
Sure ! Does that mean you want us to merge this in
|
Please create two PRs. One on |
Okay understood! I've applied the requested changes to this PR. When merged, I'll work on creating another PR to merge |
I'd prefer if you could raise that PR about merging to dev before merging this PR. This way I can merge both at once I'd like to avoid |
Sure, I'll do that |
@rrousselGit I made the PR on |
LGTM, thanks! |
Related Issues
fixes #3189
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).I have updated the
CHANGELOG.md
of the relevant packages.Changelog files must be edited under the form:
If this contains new features or behavior changes,
I have updated the documentation to match those changes.