Commit c7f621c
authored
Stop reporting expected student validation errors to Sentry (#938)
Related to Sentry issue
RaspberryPiFoundation/digital-editor-issues#1583
## Points for consideration:
- No security impact.
- No performance impact.
## What's changed?
- When someone tries to create a student with:
- Username already taken
- Password matches the username
- Password too short
- Missing or invalid student details
Profile API returns an isComplex validation error.
- This is an expected error that is shown to the user, but we were also
sending it to Sentry.
- This change handles student validation errors separately, so they are
no longer sent to Sentry (since i don't think they add value and cause
noise)..
## Steps to perform after deploying to production
No additional steps are required. There are no migrations, configuration
changes, or data backfills.1 parent 173fdbe commit c7f621c
2 files changed
Lines changed: 20 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | | - | |
| 94 | + | |
89 | 95 | | |
90 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| |||
0 commit comments