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

Conditional DataStore Tab in Resource Edit #49

Conversation

JVickery-TBS
Copy link

feat(templates): conditional DataStore tab;

Added helper for valid xloader formats.
Added condition to display the DataStore tab in Resource Edit.

See ckan#190 for more details/discussion.

- Added helper for valid xloader formats.
- Added condition to display the DataStore tab in Resource Edit.
…tore link in resource read;

- Added condition for `datastore_rw_resource_url_types`.
- Added DataStore action link to resource read if perms are correct.
…, added new helper;

- Added the conditional DataStore action link to more templates.
- Added another new helper to handle possible non-existant core helper.
@JVickery-TBS
Copy link
Author

DataStore action link now added to more templates as to feedback here: ckan/ckan#7647 (review)

ckanext/xloader/plugin.py Outdated Show resolved Hide resolved
- Combined helpers and conditions into one helper.
- Moved `XLoaderFormats` class to utils script to prevent circular imports.
@ThrawnCA
Copy link

Looking good! Just need to resolve the merge conflict.

It looks like we've removed an unused full-text import, while you've added the utils import on an adjacent line, and so Git is confused about what to do.

@JVickery-TBS
Copy link
Author

Remade PR in divergent branch: #50

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