Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespaced package names #45

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Namespaced package names #45

merged 2 commits into from
Sep 14, 2023

Conversation

aymanizz
Copy link
Member

These changes fix a conflict in method resolution for the group and form dataset by splitting the plugin, and introduce the concept of a global and local package names to support our S3 cloud storage convention, as package names may be reused across organizations.

Global package names are globally unique within CKAN, they identify the package and can be used to perform all CRUD operations on a package.

Local package names are only unique within the set of an organization's datasets. They can only be used to create packages as the implementation internally maps the name into a global one.

The transformation is based on prefixing the organization name to the local package name and separating them with '--' to create a globally unique name (since organization names are unique).

This mapping is completely transparent to the users and doesn't require special handling on extensions, unless an extension needs to map between S3 storage path and package names within ckan, in which case 3 helper methods are provided to convert between the two.

resolve issue with unrecognized templates because of method name conflicts
…age names

solves the issue of requiring globally unique package names across organizations
namespace package names by prefixing them with organization names using '--' as separator
@D-Simona-G D-Simona-G merged commit 195751a into main Sep 14, 2023
1 check passed
@D-Simona-G D-Simona-G deleted the namespaced-package-urls branch September 14, 2023 15:34
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.

2 participants