Skip to content

Commit

Permalink
Merge branch 'master' into 1117-start-new-test-suite
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 29, 2013
2 parents 669aefb + aa8a8e2 commit 8bd5d35
Show file tree
Hide file tree
Showing 150 changed files with 75,573 additions and 53,485 deletions.
2 changes: 1 addition & 1 deletion .tx/config
@@ -1,7 +1,7 @@
[main]
host = https://www.transifex.com

[ckan.2-0]
[ckan.2-1]
file_filter = ckan/i18n/<lang>/LC_MESSAGES/ckan.po
source_file = ckan/i18n/ckan.pot
source_lang = en
Expand Down
116 changes: 116 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -16,6 +16,105 @@ API changes and deprecations:
called when updating a resource using the web frontend or the
resource_update API action [#1052]


v2.1 2013-08-13
===============

Note: This version requires a requirements upgrade on source installations

Note: This version requires a database upgrade

Note: This version does not require a Solr schema upgrade

.. note:: The ``json_preview`` plugin has been renamed to ``text_preview``
(see #266). If you are upgrading CKAN from a previous version you need
to change the plugin name on your CKAN config file after upgrading to avoid
a PluginNotFound exception.


Major:
* Bulk updates of datasets within organizations (delete, make public/private) (#278)
* Organizations and Groups search (#303)
* Generic text preview extension for JSON, XML and plain text files (#226)
* Improve consistency of the Action API (#473)
* IAuthenticator interface for plugging into authorization platforms (Work
in progress) (#1007)
* New clearer dashboard with more information easier to access (#626)
* New ``rebuild_fast`` command to speed up reindex using multiple cores (#700)
* Complete restructure of the documentation, with updated sections on
installation, upgrading, release process, etc and guidelines on how to write
new documentation (#769 and multiple others)

Minor:
* Add group members page to templates (#844)
* Show search facets on organization page (#776)
* Changed default sort ordering (#869)
* More consistent display of buttons across pages (#890)
* History page ported to new templates (#368)
* More blocks to templates to allow furhter customization (#688)
* Improve imports from lib.helpers (#262)
* Add support for callback parameter on Action API (#414)
* Create site_user at startup (#952)
* Add warning before deleting an organization (#803)
* Remove flags from language selector (#822)
* Hide the Data API button when datastore is disabled (#752)
* Pin all requirements and separate minimal requirements in a separate file (#491, #1149)
* Better preview plugin selection (#1002)
* Add new functions to the plugins toolkit (#1015)
* Improve ExampleIDatasetFormPlugin (#2750)
* Extend h.sorted_extras() to do substitutions and auto clean keys (#440)
* Separate default database for development and testing (#517)
* More descriptive Solr exceptions when indexing (#674)
* Validate datastore input through schemas (#905)

Bug fixes:
* Fix 500 on password reset (#264)
* Fix exception when indexing a wrong date on a _date field (#267)
* Fix datastore permissions issues (#652)
* Placeholder images are not linked with h.url_for_static (#948)
* Explore dropdown menu is hidden behind other resources in IE (#915)
* Buttons interrupt file uploading (#902)
* Fix resource proxy encoding errors (#896)
* Enable streaming in resource proxy (#989)
* Fix cache_dir and beaker paths on deployment.ini_tmpl (#888)
* Fix multiple issues on create dataset form on IE (#881)
* Fix internal server error when adding member (#869)
* Fix license faceting (#853)
* Fix exception in dashboard (#830)
* Fix Google Analytics integration (#827)
* Fix ValueError when resource size is not an integer (#1009)
* Catch NotFound on new resource when package does not exist (#1010)
* Fix Celery configuration to allow overriding from config (#1027)
* came_from after login is validated to not redidirect to another site (#1039)
* And many, many more!

Deprecated and removed:
* The ``json_preview`` plugin has been replaced by a new ``text_preview``
one. Please update your config files if using it. (#226)

Known issues:
* Under certain authorization setups the forntend for the groups functionality
may not work as expected (See #1176 #1175).


v2.0.2 2013-08-13
=================

Bug fixes:
* Fix markdown in group descriptions (#303)
* Fix resource proxy encoding errors (#896)
* Fix datastore exception on first run (#907)
* Enable streaming in resource proxy (#989)
* Fix in user search (#1024)
* Fix Celery configuration to allow overriding from config (#1027)
* Undefined function on organizations controller (#1036)
* Fix license not translated in orgs/groups (#1040)
* Fix link to documentation from the footer (#1062)
* Fix missing close breadcrumb tag in org templates (#1071)
* Fix recently_changed_packages_activity_stream function (#1159)
* Fix Recline map sidebar not showing in IE 7-8 (#1133)


v2.0.1 2013-06-11
=================

Expand Down Expand Up @@ -190,6 +289,15 @@ Deprecated and removed:
* Removed deprecated datetime_to_datestr() template helper function (#2257)


v1.8.2 2013-08-13
=================

Bug fixes:
* Fix for using harvesters with organization setup
* Refactor for user update logic
* Tweak resources visibility query


v1.8.1 2013-05-10
=================

Expand Down Expand Up @@ -255,6 +363,14 @@ API changes and deprecation:
but is deprecated, and will be removed in future versions. (#2313)


v1.7.4 2013-08-13
=================

Bug fixes:
* Refactor for user update logic
* Tweak resources visibility query


v1.7.3 2013-05-10
=================

Expand Down
6 changes: 4 additions & 2 deletions bin/travis-build
Expand Up @@ -23,7 +23,9 @@ sudo -u postgres psql -c "CREATE USER datastore_default WITH PASSWORD 'pass';"
sudo -u postgres psql -c 'CREATE DATABASE ckan_test WITH OWNER ckan_default;'
sudo -u postgres psql -c 'CREATE DATABASE datastore_test WITH OWNER ckan_default;'

pip install -r requirements.txt -r dev-requirements.txt --use-mirrors
export PIP_USE_MIRRORS=true
pip install -r requirements.txt
pip install -r dev-requirements.txt

python setup.py develop

Expand Down Expand Up @@ -68,5 +70,5 @@ NOSE_ERROR=$?
[ "0" -ne "$MOCHA_ERROR" ] && echo MOCKA tests have failed
[ "0" -ne "$NOSE_ERROR" ] && echo NOSE tests have failed

# If an error occured in our tests make sure travis knows
# If an error occurred in our tests make sure travis knows
exit `expr $MOCHA_ERROR + $NOSE_ERROR`
6 changes: 6 additions & 0 deletions ckan/config/deployment.ini_tmpl
Expand Up @@ -133,6 +133,12 @@ ckan.feeds.author_link =
#ofs.aws_access_key_id = ....
#ofs.aws_secret_access_key = ....

## Datapusher settings

# Make sure you have set up the DataStore

datapusher.formats = csv
datapusher.url = http://datapusher.ckan.org/

## Activity Streams Settings

Expand Down
4 changes: 2 additions & 2 deletions ckan/config/middleware.py
Expand Up @@ -338,8 +338,8 @@ def __call__(self, environ, start_response):
key = ''.join([
environ['HTTP_USER_AGENT'],
environ['REMOTE_ADDR'],
environ['HTTP_ACCEPT_LANGUAGE'],
environ['HTTP_ACCEPT_ENCODING'],
environ.get('HTTP_ACCEPT_LANGUAGE', ''),
environ.get('HTTP_ACCEPT_ENCODING', ''),
])
key = hashlib.md5(key).hexdigest()
# store key/data here
Expand Down
1 change: 1 addition & 0 deletions ckan/config/solr/schema-2.0.xml
Expand Up @@ -129,6 +129,7 @@
<field name="title_string" type="string" indexed="true" stored="false" />

<field name="data_dict" type="string" indexed="false" stored="true" />
<field name="validated_data_dict" type="string" indexed="false" stored="true" />

<field name="_version_" type="string" indexed="true" stored="true"/>

Expand Down
20 changes: 10 additions & 10 deletions ckan/controllers/feed.py
Expand Up @@ -195,14 +195,14 @@ def group(self, id):
alternate_url = self._alternate_url(params, groups=id)

return self.output_feed(results,
feed_title=u'%s - Group: "%s"' % (g.site_title,
group_dict['title']),
feed_title=u'%s - Group: "%s"' %
(g.site_title, group_dict['title']),
feed_description=u'Recently created or '
'updated datasets on %s by group: "%s"' %
(g.site_title, group_dict['title']),
feed_link=alternate_url,
feed_guid=_create_atom_id(
u'/feeds/groups/%s.atom' % id),
feed_guid=_create_atom_id
(u'/feeds/groups/%s.atom' % id),
feed_url=feed_url,
navigation_urls=navigation_urls)

Expand Down Expand Up @@ -233,8 +233,8 @@ def tag(self, id):
'updated datasets on %s by tag: "%s"' %
(g.site_title, id),
feed_link=alternate_url,
feed_guid=_create_atom_id(
u'/feeds/tag/%s.atom' % id),
feed_guid=_create_atom_id
(u'/feeds/tag/%s.atom' % id),
feed_url=feed_url,
navigation_urls=navigation_urls)

Expand All @@ -261,8 +261,8 @@ def general(self):
feed_description=u'Recently created or '
'updated datasets on %s' % g.site_title,
feed_link=alternate_url,
feed_guid=_create_atom_id(
u'/feeds/dataset.atom'),
feed_guid=_create_atom_id
(u'/feeds/dataset.atom'),
feed_url=feed_url,
navigation_urls=navigation_urls)

Expand Down Expand Up @@ -315,8 +315,8 @@ def custom(self):
' datasets on %s. Custom query: \'%s\'' %
(g.site_title, q),
feed_link=alternate_url,
feed_guid=_create_atom_id(
u'/feeds/custom.atom?%s' % search_url_params),
feed_guid=_create_atom_id
(u'/feeds/custom.atom?%s' % search_url_params),
feed_url=feed_url,
navigation_urls=navigation_urls)

Expand Down
Binary file added ckan/i18n/ar/LC_MESSAGES/ckan.mo
Binary file not shown.

0 comments on commit 8bd5d35

Please sign in to comment.