Skip to content

Resource views fixes#2242

Merged
joetsoi merged 7 commits intomasterfrom
2242-resource-views-fixes
Feb 4, 2015
Merged

Resource views fixes#2242
joetsoi merged 7 commits intomasterfrom
2242-resource-views-fixes

Conversation

@amercader
Copy link
Copy Markdown
Member

Various minor internal resource views stuff

  • Remove IPackageController stuff from text and PDF view plugin, views are now automatically created via ckan.views.default_views config option (Better handling of default resource views #1852)
  • Remove gen_new_resources from lib/datapreview and the toolkit
  • Add recline_view to DEFAULT_RESOURCE_VIEW_TYPES
  • Rename text and pdf view plugins for consistency
  • Remove redundant title from view page

As part of #2140 DataProxy was reenabled, so to keep the old behaviour
of showing a Recline data explorer when uploading or linking to a
csv/excel we added it to the default view types. The data explorer view
plugin no longer requires the DataStore, as it can use DataProxy.

Also tweaked the client side error message to reflect if the error came
from the DataStore or the DataProxy.
There is no need to implement `IPackageController` on the plugin as
default views are handled differently since #1852.

Made title translatable on image and web plugins
Better not to mess with low level session caches etc. It is no longer
relevant after #1852
@joetsoi joetsoi self-assigned this Jan 27, 2015
@joetsoi joetsoi merged commit 5a2331b into master Feb 4, 2015
amercader added a commit that referenced this pull request Feb 4, 2015
As part of #2140 DataProxy was reenabled, so to keep the old behaviour
of showing a Recline data explorer when uploading or linking to a
csv/excel we added it to the default view types. The data explorer view
plugin no longer requires the DataStore, as it can use DataProxy.

Also tweaked the client side error message to reflect if the error came
from the DataStore or the DataProxy.
amercader added a commit that referenced this pull request Feb 4, 2015
There is no need to implement `IPackageController` on the plugin as
default views are handled differently since #1852.

Made title translatable on image and web plugins
amercader added a commit that referenced this pull request Feb 4, 2015
Better not to mess with low level session caches etc. It is no longer
relevant after #1852
amercader added a commit that referenced this pull request Feb 4, 2015
amercader added a commit that referenced this pull request Feb 4, 2015
@amercader amercader deleted the 2242-resource-views-fixes branch February 4, 2015 11:00
@amercader
Copy link
Copy Markdown
Member Author

cheers @joetsoi

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