Skip to content

Drush migration command for removing distribution references - #4770

Open
dafeder wants to merge 14 commits into
feat-non-ref-distrofrom
non-ref-dist-migration
Open

Drush migration command for removing distribution references#4770
dafeder wants to merge 14 commits into
feat-non-ref-distrofrom
non-ref-dist-migration

Conversation

@dafeder

@dafeder dafeder commented Aug 3, 2026

Copy link
Copy Markdown
Member

Re-saves all datasets with un-referenced distributions (or any referenced property).

QA steps

w/orphans

  1. Build site and import sample content
  2. Run drush dkan:metastore:unreference-datasets (or drush dkan:unref)
  3. Output should go through each dataset and show it is un-referencing distributions
  4. Go to /admin/dkan/properties and confirm "distribution" is no longer checked in the "Dataset properties to be stored as separate entities" list
  5. Go to /admin/dkan/datasets. Filter for "distributions". Ensure all are set to "orphaned"
  6. Filter again for "datasets". Load one or two and confirm the distributions still appear (ie, there are download links).
  7. Visit a datastore endpoint (e.g. /api/1/datastore/query/cedcd327-4e5d-43f9-8eb1-c11850fa7c55/0) and confirm data still loads

w/delete

  1. Build site and import sample content
  2. Run drush dkan:metastore:unreference-datasets --delete (or drush dkan:unref --delete)
  3. Go to /admin/dkan/datasets. Filter for "distributions". Ensure list is empty.
  4. Repeat 6-7 from above.

@dafeder
dafeder changed the base branch from 4.x to feat-non-ref-distro August 3, 2026 13:25
@dafeder
dafeder force-pushed the non-ref-dist-migration branch from 3bbea21 to c1fc170 Compare August 3, 2026 13:28
@dafeder
dafeder force-pushed the non-ref-dist-migration branch from c1fc170 to c9b6bf0 Compare August 3, 2026 14:21
dafeder and others added 2 commits August 3, 2026 09:41
Co-authored-by: Copilot <copilot@github.com>
@dafeder
dafeder marked this pull request as ready for review August 3, 2026 16:37
@dafeder dafeder linked an issue Aug 4, 2026 that may be closed by this pull request
4 tasks
dafeder and others added 3 commits August 9, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Referenced-to-Embedded Distribution Migration and Guidance

1 participant