Title: Refuse a data copy the target can't hold before restoring (S-007-6..11) · Issue #125 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Refuse a data copy the target can't hold before restoring (S-007-6..11) · Issue #125 · cloudfall-dev/cloudfall
X Title: Refuse a data copy the target can't hold before restoring (S-007-6..11) · Issue #125 · cloudfall-dev/cloudfall
Description: Builds part of spec S-007, docs/specs/007-data-copy-schemas.md (feature issue #82): the acceptance criteria below. Each needs a test that names its id (test_s007_
Open Graph Description: Builds part of spec S-007, docs/specs/007-data-copy-schemas.md (feature issue #82): the acceptance criteria below. Each needs a test that names its id (test_s007_
X Description: Builds part of spec S-007, docs/specs/007-data-copy-schemas.md (feature issue #82): the acceptance criteria below. Each needs a test that names its id (test_s007_<k>_..., or a proves: S-007-6...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/125
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Refuse a data copy the target can't hold before restoring (S-007-6..11)","articleBody":"Builds part of spec S-007, `docs/specs/007-data-copy-schemas.md` (feature issue #82): the acceptance criteria below. Each needs a test that names its id (`test_s007_\u003ck>_...`, or a `proves: S-007-6` comment line).\n\nThis is the `data copy` preflight (missing schemas, extensions, roles, `auth.` references) and a restore that leaves no partial target. The flag is `--source-schema` (MCP `source_schema`), on the maintainer's answer on #134.\n\n- S-007-6: `--source-schema missing` for a schema the source lacks exits `PRECONDITION` with code `data_copy_preflight_refused` and `missingSchemas` of `[\"missing\"]`, and no dump file is written\n- S-007-7: A selected table using a type from an extension that is not in the target's `pg_available_extensions` exits `PRECONDITION` with code `data_copy_preflight_refused` naming that extension under `extensions`, the target holds no new table, and no receipt is written\n- S-007-8: A policy `TO anon, authenticated` on a selected table, with neither role on the target, exits `PRECONDITION` with code `data_copy_preflight_refused` and `roles` of `[\"anon\", \"authenticated\"]`\n- S-007-9: With `--source-schema public`, a function `public.current_tenant()` whose body calls `auth.uid()` and a policy on `public.notes` whose `USING` calls `auth.uid()` are both named under `authReferences`, and the copy is refused\n- S-007-10: A source with a missing extension, a missing role, and an `auth.` reference at once is refused with all three named in one answer\n- S-007-11: A restore that fails after the preflight passes exits `ENGINE_STEP_FAILED`, leaves no table in the selected schemas of the target, writes no receipt, and a second run against the same target passes the empty-target check\n\nDepends on cloudfall-dev/cloudfall#124\n","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-10-27T07:55:52Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/125"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b9f4287f-de1d-a8c0-efb3-5e10e313ff63 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D62A:1460D3:ECDBE4:144CFAC:6B05599E |
| html-safe-nonce | b0197d7bad098e20c37bfc0484ad2fabb96ec75206d3093e5a7e8ff4f609c110 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjJBOjE0NjBEMzpFQ0RCRTQ6MTQ0Q0ZBQzo2QjA1NTk5RSIsInZpc2l0b3JfaWQiOiIxNzY5Nzc5NDMxNTgxNTE1ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5acdc6cb6a8d6ff3e90de62eeab04f1ebab5b1bb9eded7485c349f8473b03d97 |
| hovercard-subject-tag | issue:6055167838 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/125/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad9d71534b1365d9e0abfb506dbc71cca24c0499dfc463b5e8864a6c9494d184/cloudfall-dev/cloudfall/issues/125 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad9d71534b1365d9e0abfb506dbc71cca24c0499dfc463b5e8864a6c9494d184/cloudfall-dev/cloudfall/issues/125 |
| og:image:alt | Builds part of spec S-007, docs/specs/007-data-copy-schemas.md (feature issue #82): the acceptance criteria below. Each needs a test that names its id (test_s007_ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width