-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(project-creation): Introduce useCreateProjectRules hook #92186
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
ref(project-creation): Introduce useCreateProjectRules hook #92186
Conversation
| interface Variables | ||
| extends Partial< | ||
| Pick< | ||
| RequestDataFragment, | ||
| 'conditions' | 'actions' | 'actionMatch' | 'frequency' | 'name' | ||
| > | ||
| > { | ||
| projectSlug: string; | ||
| } |
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.
we should also improve the types here and make it reusable. but step-by-step
…e-create-project-rules-hook
…ect-rules-hook' of github.com:getsentry/sentry into priscila/ref/project-creation/introduce-use-create-project-rules-hook
| } | ||
|
|
||
| export function useCreateProjectRules() { | ||
| const api = useApi(); |
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.
For mutations, usually best to add persistInFlight: true
…e-create-project-rules-hook
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #92186 +/- ##
==========================================
- Coverage 87.89% 86.80% -1.09%
==========================================
Files 10239 10170 -69
Lines 587425 582350 -5075
Branches 22812 22513 -299
==========================================
- Hits 516312 505528 -10784
- Misses 70683 76376 +5693
- Partials 430 446 +16 |
…e-create-project-rules-hook
* master: (249 commits) feat(source-maps): Do not show pagination together with empty state (#92287) ref(project-creation): Introduce useCreateProjectRules hook (#92186) feat(agent-insights): Handle new keys (#92613) feat(source-maps): Introduce new empty state copies and react-native callout (#92286) ref(issues): Remove project from group activity type (#92600) feat(ourlogs): Use /trace-logs endpoint (#92577) feat(issues): Only update group hasSeen when user is member (#92597) fix(workflow_engine): Graceful Data Condition Eval Handling (#92591) feat(uptime): Implement detector handler (#91107) chore(autofix): Remove logs from response payload (#92589) fix(search): Fix issue with tags name 'constructor' (#92586) fix(autofix): Fix condition for onboarding check (#92584) fix(ourlogs): Return the same format as /events & limit 1000 for trace-logs (#92580) fix(autofix): Fix automation onboarding condition (#92579) feat(explore): Remove group by timestamp from explore (#92546) feat(trace-items): Autocomplete for semver attributes (#92515) feat(processing) Define EventProcessingStore.__all__ (#92555) feat(autofix): Better errored state (#92571) chore(autofix): Seer beta banner copy changes (#92576) feat(crons): Add endpoint to return counts by status (#92574) ...
This hook was introduced to follow our standard use of react-query and will be used in this [PR](#92183).
Adds `persistInFlight` to onboarding's mutations as it was recommended [here](#92186 (comment))
Adds `persistInFlight` to onboarding's mutations as it was recommended [here](#92186 (comment))
This hook was introduced to follow our standard use of react-query and will be used in this PR.