Commit 03087e1
committed
refactor(bias-audit): simplify based on code review
- Run PDF generation on a threadpool via asyncio.to_thread() so ReportLab
does not block the FastAPI event loop during concurrent downloads.
- Drop the duplicated metadata fields (aedt_name, description,
data_source_description) in the run request. The modal already writes
the top-level systemName/systemDescription/dataSource fields, and the
report generator reads those directly. The metadata dict now only
carries distribution_date, which has no top-level counterpart.
- Reuse the existing triggerBrowserDownload helper from
browserDownload.utils instead of rolling a new blob-download pattern
in BiasAuditDetail.tsx. Applies to both JSON and PDF downloads.1 parent 95f958d commit 03087e1
File tree
4 files changed
+12
-28
lines changed- Clients/src/presentation/pages/EvalsDashboard
- EvalServer/src
- controllers
- engines/bias_audit
4 files changed
+12
-28
lines changedLines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| 315 | + | |
322 | 316 | | |
323 | 317 | | |
324 | 318 | | |
| |||
329 | 323 | | |
330 | 324 | | |
331 | 325 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 326 | + | |
340 | 327 | | |
341 | 328 | | |
342 | 329 | | |
| |||
368 | 355 | | |
369 | 356 | | |
370 | 357 | | |
371 | | - | |
| 358 | + | |
372 | 359 | | |
373 | 360 | | |
374 | 361 | | |
| |||
381 | 368 | | |
382 | 369 | | |
383 | 370 | | |
384 | | - | |
| 371 | + | |
385 | 372 | | |
386 | 373 | | |
387 | 374 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
347 | | - | |
348 | 346 | | |
349 | | - | |
350 | 347 | | |
351 | 348 | | |
352 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
422 | | - | |
| 423 | + | |
| 424 | + | |
423 | 425 | | |
424 | 426 | | |
425 | 427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
241 | | - | |
| 240 | + | |
242 | 241 | | |
243 | | - | |
| 242 | + | |
244 | 243 | | |
245 | 244 | | |
246 | 245 | | |
| |||
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
252 | | - | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
| |||
265 | 263 | | |
266 | 264 | | |
267 | 265 | | |
268 | | - | |
| 266 | + | |
269 | 267 | | |
270 | 268 | | |
271 | 269 | | |
| |||
0 commit comments