Skip to content

Commit

Permalink
Merge branch 'master' of github.com:okfn/ckan into 744-tests-for-page…
Browse files Browse the repository at this point in the history
…-view-tracking
  • Loading branch information
Sean Hammond committed Sep 2, 2013
2 parents 8d5c326 + b26147e commit 4ac6357
Show file tree
Hide file tree
Showing 311 changed files with 113,633 additions and 80,438 deletions.
4 changes: 2 additions & 2 deletions .tx/config
@@ -1,7 +1,7 @@
[main]
host = http://www.transifex.net
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
125 changes: 125 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -7,6 +7,114 @@
Changelog
---------

v2.2
====

API changes and deprecations:

* The edit() and after_update() methods of IPackageController plugins are now
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 @@ -181,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 @@ -246,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
7 changes: 3 additions & 4 deletions CONTRIBUTING.rst
Expand Up @@ -161,11 +161,10 @@ This section will walk you through the steps for making a pull request.
its own branch forked from the master branch.

The name of the branch should include the issue number (if this work has an
issue in the `CKAN issue tracker`_), the branch type (e.g. "feature" or
"bug"), and a brief one-line synopsis of the work, for example::
issue in the `CKAN issue tracker`_), and a brief one-line synopsis of the work,
for example::

2298-feature-add-sort-by-controls-to-search-page
1518-bug-upload-file-with-spaces
2298-add-sort-by-controls-to-search-page


#. Fork CKAN on GitHub
Expand Down
4 changes: 2 additions & 2 deletions bin/ckan_spam.py
Expand Up @@ -14,7 +14,7 @@

import os

from sqlobject import *
import sqlobject

import loadconfig
path = os.path.abspath(cfg_path)
Expand All @@ -36,7 +36,7 @@ def purge_packages_by_name():
pkg = model.Package.byName(pkg_name)
# for efficiency reasons best to have revisions in descending order
sel = model.PackageRevision.select(
AND(model.PackageRevision.q.baseID==pkg.id,
sqlobject.AND(model.PackageRevision.q.baseID==pkg.id,
model.PackageRevision.q.revisionID>=start_at_id),
orderBy=-model.PackageRevision.q.revisionID,
)
Expand Down
27 changes: 25 additions & 2 deletions bin/travis-build
Expand Up @@ -23,10 +23,15 @@ 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

# Install npm dpes for mocha
npm install -g mocha-phantomjs phantomjs

# Configure Solr
echo "NO_START=0\nJETTY_HOST=127.0.0.1\nJETTY_PORT=8983\nJAVA_HOME=$JAVA_HOME" | sudo tee /etc/default/jetty
# FIXME the solr schema cannot be hardcoded as it is dependent on the ckan version
Expand All @@ -47,5 +52,23 @@ fi

cat test-core.ini

# And finally, run the tests
# Run mocha front-end tests
# We need ckan to be running for some tests
paster serve test-core.ini &
sleep 5 # Make sure the server has fully started
mocha-phantomjs http://localhost:5000/base/test/index.html
# Did an error occur?
MOCHA_ERROR=$?
# We are done so kill ckan
killall paster

# And finally, run the nosetests
nosetests --ckan --with-pylons=test-core.ini --nologcapture ckan ckanext
# Did an error occur?
NOSE_ERROR=$?

[ "0" -ne "$MOCHA_ERROR" ] && echo MOCKA tests have failed
[ "0" -ne "$NOSE_ERROR" ] && echo NOSE tests have failed

# If an error occurred in our tests make sure travis knows
exit `expr $MOCHA_ERROR + $NOSE_ERROR`
74 changes: 0 additions & 74 deletions build.sh

This file was deleted.

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

0 comments on commit 4ac6357

Please sign in to comment.