Skip to content

Add PRE_CKAN_ORGANIZATION environment variable for publish endpoint#70

Merged
rbardaji merged 3 commits intomainfrom
feat/pre-ckan-organization
Mar 3, 2026
Merged

Add PRE_CKAN_ORGANIZATION environment variable for publish endpoint#70
rbardaji merged 3 commits intomainfrom
feat/pre-ckan-organization

Conversation

@rbardaji
Copy link
Collaborator

@rbardaji rbardaji commented Mar 3, 2026

Summary

Adds a new PRE_CKAN_ORGANIZATION environment variable that overrides the owner_org when publishing datasets to PRE-CKAN.

Changes

  1. New endpoint POST /dataset/{id}/publish - copies datasets from local catalog to PRE-CKAN
  2. New setting PRE_CKAN_ORGANIZATION - configures the target organization for PRE-CKAN
  3. Documentation - updated README, example.env, and CHANGELOG

Use Case

  • Local catalog: datasets can use any organization
  • PRE-CKAN: all published datasets use the configured organization (assigned by NDP)

Closes #69

Raul Bardaji added 3 commits March 3, 2026 21:38
- New endpoint to publish datasets from local catalog to PRE-CKAN
- Copies dataset metadata and all associated resources
- Proper error handling for disabled PRE-CKAN and duplicate names
- New setting to configure organization for PRE-CKAN publishing
- When set, overrides owner_org from local catalog
- Add configuration examples in README.md
- Document new variable in example.env
- Update CHANGELOG.md with v0.8.0 changes
@rbardaji rbardaji merged commit 2d5ce2c into main Mar 3, 2026
1 check failed
@rbardaji rbardaji deleted the feat/pre-ckan-organization branch March 3, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PRE_CKAN_ORGANIZATION environment variable for publish endpoint

1 participant