Commit 2f69649
authored
update Project.with_user to not call profile api when user is a student (#627)
## Status
- Closes #596
## What's changed?
Update `Project.with_user` to not call profile api when user is a
student as this call will always fail. Students cannot use that API at
the moment so this calls gets 500.
No outwards change should happen, but hopefully this will stop both
Profile and Editor API sentry being full of this error.
As far as I can tell, this call happens when a student first opens a
project (lesson). As they do not have their own remix yet, the fallback
gets the project, and that calls the `.with_user` that is causing this
problem.1 parent 51654a5 commit 2f69649
2 files changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
277 | 291 | | |
278 | 292 | | |
279 | 293 | | |
280 | 294 | | |
281 | 295 | | |
282 | 296 | | |
283 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
284 | 311 | | |
285 | 312 | | |
286 | 313 | | |
| |||
0 commit comments