Commit 7780484
committed
fix(sync): re-apply datastore GRANTs after restore so views generate
pg_restore --no-privileges strips every GRANT from the restored datastore
DB. The datastore_ro role then can't SELECT from _table_metadata, so
DataPusher's datastore_search call 500s, push_to_datastore aborts before
pushing rows, and the 'complete' callback that creates datatables_view
never fires. Uploads appear to succeed but views never show up.
Run 'ckan datastore set-permissions' after the restore and pipe the
canonical GRANT script into psql as ckan_admin against the datastore DB.1 parent f00c48d commit 7780484
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
433 | 458 | | |
434 | 459 | | |
435 | 460 | | |
| |||
566 | 591 | | |
567 | 592 | | |
568 | 593 | | |
| 594 | + | |
569 | 595 | | |
570 | 596 | | |
571 | 597 | | |
| |||
0 commit comments