Commit 751cf2b
feat(api): autoclosed DB sessions + fights selectinload + webhooks pagination (#68)
* feat(api): auto-commit get_sessions on success, rollback on exception
Signed-off-by: Roddy GitHub <roddy@users.noreply.github.com>
* feat(api): preload agents + skills on GET /fights (closes list N+1)
Signed-off-by: Roddy GitHub <roddy@users.noreply.github.com>
* feat(api): add limit/offset pagination to GET /webhooks
Signed-off-by: Roddy GitHub <roddy@users.noreply.github.com>
* chore(web): regen OpenAPI schema.d.ts for webhooks pagination
Signed-off-by: Roddy GitHub <roddy@users.noreply.github.com>
---------
Signed-off-by: Roddy GitHub <roddy@users.noreply.github.com>
Co-authored-by: Roddy GitHub <roddy@users.noreply.github.com>1 parent 36e522d commit 751cf2b
4 files changed
Lines changed: 28 additions & 3 deletions
File tree
- apps/api/src/gw2analytics_api
- routes
- fights
- web/src/lib/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
292 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2897 | 2897 | | |
2898 | 2898 | | |
2899 | 2899 | | |
2900 | | - | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
2901 | 2904 | | |
2902 | 2905 | | |
2903 | 2906 | | |
| |||
2913 | 2916 | | |
2914 | 2917 | | |
2915 | 2918 | | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
2916 | 2928 | | |
2917 | 2929 | | |
2918 | 2930 | | |
| |||
0 commit comments