Skip to content

Commit

Permalink
Merge branch 'master' of github.com:okfn/ckan into 943-writing-extens…
Browse files Browse the repository at this point in the history
…ions-tutorial

Conflicts:
	ckan/logic/__init__.py
	ckan/plugins/toolkit.py
	doc/conf.py
  • Loading branch information
Sean Hammond committed Aug 27, 2013
2 parents 64b32d1 + 6e9421d commit e6fcf1e
Show file tree
Hide file tree
Showing 494 changed files with 132,813 additions and 88,705 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
@@ -1,3 +1,3 @@
[submodule "doc/_themes/sphinx-theme-okfn"]
path = doc/_themes/sphinx-theme-okfn
url = git://github.com/okfn/sphinx-theme-okfn.git
url = https://github.com/okfn/sphinx-theme-okfn.git
1 change: 1 addition & 0 deletions .pipignore
@@ -0,0 +1 @@
ckan
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
137 changes: 134 additions & 3 deletions CHANGELOG.rst
@@ -1,20 +1,134 @@
.. _changelog:
.. This tocdepth stops Sphinx from putting every subsection title in this file
into the master table of contents.
:tocdepth: 1

---------
Changelog
---------

v2.0.1
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
=================

Bug fixes:
* Use IDatasetForm schema for resource_update (#897)
* Fixes for CKAN being run on a non-root URL (#948, #913)
* Fix resource edit errors losing info (#580)
* Fix Czech translation (#900)
* Allow JSON filters for datastore_search on GET requests (#917)
* Install vdm from the Python Package Index (#764)
* Allow extra parameters on Solr queries (#739)
* Create site user at startup if it does not exist (#952)
* Fix modal popups positioning (#828)
* Fix wrong redirect on dataset form on IE (#963)


v2.0 2013-05-10
Expand Down Expand Up @@ -175,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 @@ -240,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 Expand Up @@ -417,7 +548,7 @@ v1.5 2011-11-07
Major:
* New visual theme (#1108)
* Package & Resource edit overhaul (#1294/#1348/#1351/#1368/#1296)
* JS and CSS reorganisation (#1282, #1349, #1380)
* JS and CSS reorganization (#1282, #1349, #1380)
* Apache Solr used for search in core instead of Postgres (#1275, #1361, #1365)
* Authorization system now embedded in the logic layer (#1253)
* Captcha added for user registration (#1307, #1431)
Expand Down
7 changes: 3 additions & 4 deletions CONTRIBUTING.rst
Expand Up @@ -162,11 +162,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
2 changes: 1 addition & 1 deletion LICENSE.txt
Expand Up @@ -22,7 +22,7 @@ Note
====

CKAN is sometimes packaged directly with other software (listed in
pip-requirements.txt, pip-requirements-test.txt and pip-requirements-docs.txt).
requirements.txt and dev-requirements.txt).
In these cases, we are required to list the licenses of the packaged softare
too. They are all AGPL compatible and read as follows in the next sections.

Expand Down
1 change: 1 addition & 0 deletions bin/ckan_edit_local.py
Expand Up @@ -84,6 +84,7 @@ def canada_extras():
'Level of Government':'level_of_government',
}
license_mapping = {
# CS: bad_spelling ignore
'http://geogratis.ca/geogratis/en/licence.jsp':'geogratis',
'Crown Copyright':'canada-crown',
}
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
28 changes: 25 additions & 3 deletions bin/travis-build
Expand Up @@ -23,11 +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 pip-requirements.txt --use-mirrors
pip install -r pip-requirements-test.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 @@ -48,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.

2 changes: 1 addition & 1 deletion ckan/__init__.py
@@ -1,4 +1,4 @@
__version__ = '2.1a'
__version__ = '2.2a'

__description__ = 'Comprehensive Knowledge Archive Network (CKAN) Software'
__long_description__ = \
Expand Down
8 changes: 7 additions & 1 deletion ckan/config/deployment.ini_tmpl
Expand Up @@ -107,7 +107,7 @@ ckan.preview.loadable = html htm rdf+xml owl+xml xml n3 n-triples turtle plain a
ckan.locale_default = en
ckan.locale_order = en pt_BR ja it cs_CZ ca es fr el sv sr sr@latin no sk fi ru de pl nl bg ko_KR hu sa sl lv
ckan.locales_offered =
ckan.locales_filtered_out =
ckan.locales_filtered_out = en_GB


## Feeds Settings
Expand All @@ -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 e6fcf1e

Please sign in to comment.