Commit fdc0a01
feat(serenity): expose semrush provisioning status on brand reads (LLMO-7352/LLMO-7418)
Surfaces brands.semrush_provisioning_status/semrush_provisioning_error as
read-only fields (semrushProvisioningStatus/semrushProvisioningError) on the
V2 Brand DTO. These columns previously existed only for the async
provisioning worker's own internal CAS bookkeeping (getBrandProvisioningState's
narrow PROVISIONING_SELECT) -- no GET response exposed them, so a client had
no way to show a persistent provisioning-status indicator without relying on
an `async: true` create/activate response's one-shot jobId.
mapDbBrandToV2 is the single mapping point for all 3 GET paths
(listBrandsForOrg/getBrandForOrg/getBrandForOrgSite) and the create/update
write-response paths (all route through withSerenityState, which just spreads
whatever the mapper produced) -- fixing it there propagates everywhere for
free, no SELECT/query changes needed since PostgREST's `'*'` already returns
every brands column.
Prerequisite for the frontend UI-states work (LLMO-7419): a persistent
Setting-up/Ready/Setup-failed indicator on the brand list/detail views can't
exist without a backend field to read it from.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent f77926a commit fdc0a01
3 files changed
Lines changed: 61 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7920 | 7920 | | |
7921 | 7921 | | |
7922 | 7922 | | |
| 7923 | + | |
| 7924 | + | |
| 7925 | + | |
| 7926 | + | |
| 7927 | + | |
| 7928 | + | |
| 7929 | + | |
| 7930 | + | |
| 7931 | + | |
| 7932 | + | |
| 7933 | + | |
| 7934 | + | |
| 7935 | + | |
| 7936 | + | |
| 7937 | + | |
| 7938 | + | |
| 7939 | + | |
| 7940 | + | |
| 7941 | + | |
| 7942 | + | |
| 7943 | + | |
7923 | 7944 | | |
7924 | 7945 | | |
7925 | 7946 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
315 | 327 | | |
316 | 328 | | |
317 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
415 | 443 | | |
416 | 444 | | |
417 | 445 | | |
| |||
0 commit comments