Skip to content

Automatic CKAN Alias creation #9

Description

@jqnatividad

When a resource is inserted into the Datastore, automatically create a CKAN alias (aka PostgreSQL view) so we have a human-readable name apart from the resource-id we can use in API calls, datastore-choices helper in scheming, etc.

To minimize namespace collisions - the alias should be - resource_name-package_name-owner_org.

However, PostgreSQL by default limits object names to be 63 characters long, so we need to create some biz rules in case of namespace collisions - perhaps, adding a sequence at the end, or flagging it during the datapusher+ job.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions