Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Mar 7, 2014
2 parents 23bd1c6 + fc1edfd commit 4753adc
Show file tree
Hide file tree
Showing 286 changed files with 72,339 additions and 38,100 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ python:
env:
- PGVERSION=9.1
- PGVERSION=8.4
matrix:
exclude:
- python: "2.7"
env: PGVERSION=8.4
- python: "2.6"
env: PGVERSION=9.1
install: ./bin/travis-install-dependencies
script: ./bin/travis-run-tests
notifications:
Expand Down
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[main]
host = https://www.transifex.com

[ckan.2-1]
[ckan.2-2]
file_filter = ckan/i18n/<lang>/LC_MESSAGES/ckan.po
source_file = ckan/i18n/ckan.pot
source_lang = en
Expand Down
206 changes: 189 additions & 17 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,183 @@
Changelog
---------

v2.2
====
v2.2 2014-02-04
===============

Note: This version does not require a requirements upgrade on source installations

Note: This version requires a database upgrade

Note: This version requires a Solr schema upgrade (The Solr schema file has
been renamed, the schema file from the previous release is compatible
with this version, but users are encouraged to point to the new one,
see "API changes and deprecations")


Major:
* Brand new automatic importer of tabular data to the DataStore, the
DataPusher. This is much more robust and simple to deploy and maintain than
its predecesor (ckanext-datastorer). Whole new UI for re-importing data to
the DataStore and view the import logs (#932, #938, #940, #981, #1196, #1200
...)
* Completely revamped file uploads that allow closer integration with resources
and the DataStore, as well as making easir to integrate file uploads in other
features. For example users can now upload images for organizations and
groups. See "API changes and deprecations" if you are using the current
FileStore. (#1273, #1173 ... )
* UI and API endpoints for resource reordering (#1277)
* Backend support for organization hierarchy, allowing parent and children
organizations. Frontend needs to be implemented in extensions (#1038)
* User invitations: it is now possible to create new users with just their
email address. An invite email is sent to them, allowing to change their user
name and password (#1178)
* Disable user registration with a configuration option (#1226)
* Great effort in improving documentation, specially for customizing CKAN, with
a complete tutorial for writing extensions and customizing the theme. User
and sysadmin guides have also been moved to the main documentation
(#943, #847, #1253)

Minor:
* Homepage modules to allow predefined layouts (#1126)
* Ability to delete users (#1163)
* Dedicated dataset groups page for displaying and managing them (#1102)
* Implement organization_purge and group_purge action functions (#707)
* Improve package_show performance (#1078)
* Support internationalization of rendered dates and times (#1041)
* Improve plugin load handling (#549)
* Authorization function auditing for action functions (#1060)
* Improve datetime rendering (#518)
* New SQL indexes to improve performance (#1164)
* Changes in requirements management (#1149)
* Add offset/limit to package_list action (#1179)
* Document all available configuraton options (#848)
* Make CKAN sqlalchemy 0.8.4 compatible (#1427)
* UI labelling and cleanup (#1030)
* Better UX for empty groups/orgs (#1094)
* Improve performance of group_dictize when the group has a lot of packages
(#1208)
* Hide __extras from extras on package_show (#1218)
* "Clear all" link within each facet block is unnecessary (#1263)
* Term translations of organizations (#1274)
* '--reset-db' option for when running tests (#1304)

Bug fixes:
* Fix plugins load/unload issues (#547)
* Improve performance when new_activities not needed (#1013)
* Resource preview breaks when CSV headers include percent sign (#1067)
* Package index not rebuilt when resources deleted (#1081)
* Don't accept invalid URLs in resource proxy (#1106)
* UI language reset after account creation (#1429)
* Catch non-integer facet limits (#1118)
* Error when deleting custom tags (#1114)
* Organization images do not display on Organization user dashboard page
(#1127)
* Can not reactivate a deleted dataset from the UI (#607)
* Non-existent user profile should give error (#1068)
* Recaptcha not working in CKAN 2.0 (jinja templates) (#1070)
* Groups and organizations can be visited with interchangeable URLs (#1180)
* Dataset Source (url) and Version fields missing (#1187)
* Fix problems with private / public datasets and organizations (#1188)
* group_show should never return private data (#1191)
* When editing a dataset, the organization field is not set (#1199)
* Fix resource_delete action (#1216)
* Fix trash purge action redirect broken for CKAN instances not at / (#1217)
* Title edit for existing dataset changes the URL (#1232)
* 'facet.limit' in package_search wrongly handled (#1237)
* h.SI_number_span doesn't close <span /> correctly (#1238)
* CkanVersionException wrongly raised (#1241)
* (group|organization)_member_create only accepts username (and not id) (#1243)
* package_create uses the wrong parameter for organization (#1257)
* ValueError for non-int limit and offset query params (#1258)
* Visibility field value not kept if there are errors on the form (#1265)
* package_list should not return private datasets (#1295)
* Fix 404 on organization activity stream and about page (#1298)
* Fix placeholder images broken on non-root locations (#1309)
* "Add Dataset" button shown on org pages when not authorized (#1348)
* Fix exception when visiting organization history page (#1359)
* Fix search ordering on organization home page (#1368)
* datastore_search_sql failing for some anonymous users (#1373)
* related_list logic function throws a 503 without any parameters (#1384)
* Disabling activity_streams borks editing groups and user (#1421)
* Member Editing Fixes (#1454)
* Bulk editing broken in IE7 (#1455)
* Fix group deletion in IE7 (#1460)
* And many, many more!

API changes and deprecations:
* The Solr schema file is now always named ``schema.xml`` regardless of the
CKAN version. Old schema files have been kept for backwards compatibility
but users are encouraged to point to the new unified one (#1314)
* The FileStore and file uploads have been completely refactored and simplified
to only support local storage backend. The links from previous versions of
the FileStore to hosted files will still work, but there is a command
available to migrate the files to new Filestore. See this page for more
details:
http://docs.ckan.org/en/latest/filestore.html#filestore-21-to-22-migration
* By default, the authorization for any action defined from an extension will
require a logged in user, otherwise a :py:class:`ckan.logic.NotAuthorized`
exception will be raised. If an action function allows anonymous access (eg
search, show status, etc) the ``auth_allow_anonymous_access`` decorator
(available on the plugins toolkit) must be used (#1210)
* ``package_search`` now returns results with custom schemas applied like
``package_show``, a ``use_default_schema`` parameter was added to request the
old behaviour, this change may affect customized search result templates
(#1255)
* The ``ckan.api_url`` configuration option has been completely removed and it
can no longer be used (#960)
* 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)
* Dataset moderation has been deprecated, and the code will probably be removed
in later CKAN versions (#1139)
* Some front end libraries have been updated, this may affect existing custom
themes: Bootstrap 2.0.3 > 2.3.2, Font Awesome 3.0.2 > 3.2.1,
jQuery 1.7.2 > 1.10.2 (#1082)
* SQLite is officially no longer supported as the tests backend

Troubleshooting:
* Exception on startup after upgrading from a previous CKAN version::

AttributeError: 'instancemethod' object has no attribute 'auth_audit_exempt'

Make sure that you are not loading a 2.1-only plugin (eg ``datapusher-ext``)
and update all the plugin in your configuration file to the latest stable
version.

* Exception on startup after upgrading from a previous CKAN version::

File "/usr/lib/ckan/default/src/ckan/ckan/lib/dictization/model_dictize.py", line 330, in package_dictize
result_dict['metadata_modified'] = pkg.metadata_modified.isoformat()
AttributeError: 'NoneType' object has no attribute 'isoformat'

One of the database changes on this version is the addition of a
``metadata_modified`` field in the package table, that was filled during the
DB migration process. If you have previously migrated the database and revert
to an older CKAN version the migration process may have failed at this step,
leaving the fields empty. Also make sure to restart running processes like
harvesters after the update to make sure they use the new code base.

v2.1.2 2014-02-04
=================

* The Solr schema file is now always named ``schema.xml`` regardless of the
CKAN version. Old schema files have been kept for backwards compatibility
but users are encouraged to point to the new unified one.
* The `ckan.api_url` has been completely removed and it can no longer be used
* 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]
* package_search now returns results with custom schemas applied like
package_show, a use_default_schema parameter was added to request the
old behaviour, this change may affect customized search result templates
(#1255)
Bug fixes:
* Fix context for group/about setup_template_variables (#1433)
* Call setup_template_variables in group/org read, about and bulk_process (#1281)
* Remove repeated sort code in package_search (#1461)
* Ensure that check_access is called on activity_create (#1421)
* Fix visibility validator (#1188)
* Remove p.toolkit.auth_allow_anonymous_access as it is not available on 2.1.x (#1373)
* Add organization_revision_list to avoid exception on org history page (#1359)
* Fix activity and about organization pages (#1298)
* Show 404 instead of login page on user not found (#1068)
* Don't show Add Dataset button on org pages unless authorized (#1348)
* Fix datastore_search_sql authorization function (#1373)
* Fix extras deletion (#1449)
* Better word breaking on long words (#1398)
* Fix activity and about organization pages (#1298)
* Remove limit of number of arguments passed to ``user add`` command.
* Fix related_list logic function (#1384)
* Avoid UnicodeEncodeError on feeds when params contains non ascii characters

v2.1.1 2013-11-8
================
Expand Down Expand Up @@ -120,6 +281,17 @@ Known issues:
* Under certain authorization setups the frontend for the groups functionality
may not work as expected (See #1176 #1175).

v2.0.4 2014-02-04
=================

Bug fixes:
* Fix extras deletion (#1449)
* Better word breaking on long words (#1398)
* Fix activity and about organization pages (#1298)
* Show 404 instead of login page on user not found (#1068)
* Remove limit of number of arguments passed to ``user add`` command.
* Fix related_list logic function (#1384)

v2.0.3 2013-11-8
================

Expand Down Expand Up @@ -175,7 +347,7 @@ v2.0 2013-05-10
to GitHub issues. For example:

* #3020 is http://trac.ckan.org/ticket/3020
* #271 is https://github.com/okfn/ckan/issues/271
* #271 is https://github.com/ckan/ckan/issues/271

Some GitHub issues URLs will redirect to GitHub pull request pages.

Expand All @@ -188,7 +360,7 @@ Note: This version requires a database upgrade

Note: This version requires a Solr schema upgrade

Organizations based authorization (see :doc:`authorization`):
Organizations based authorization (see :doc:`/maintaining/authorization`):
CKAN's new "organizations" feature replaces the old authorization system
with a new one based on publisher organizations. It replaces the "Publisher
Profile and Workflow" feature from CKAN 1.X, any instances relying on it will
Expand All @@ -200,7 +372,7 @@ Organizations based authorization (see :doc:`authorization`):
* New authorization ini file options


New frontend (see :doc:`theming/index`):
New frontend (see :doc:`/theming/index`):
CKAN's frontend has been completely redesigned, inside and out. There is
a new default theme and the template engine has moved from Genshi to
Jinja2. Any custom templates using Genshi will need to be updated, although
Expand Down Expand Up @@ -278,7 +450,7 @@ API:

Other highlights:
* CKAN now has continuous integration testing at
https://travis-ci.org/okfn/ckan/
https://travis-ci.org/ckan/ckan/
* Dataset pages now have <link rel="alternate" type="application/rdf+xml"
links in the HTML headers, allows linked-data tools to find CKAN's RDF
rendering of a dataset's metadata (#413)
Expand Down
16 changes: 6 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
CKAN: The Open Source Data Portal Software
==========================================

.. image:: https://secure.travis-ci.org/okfn/ckan.png?branch=master
:target: http://travis-ci.org/okfn/ckan
.. image:: https://secure.travis-ci.org/ckan/ckan.png?branch=master
:target: http://travis-ci.org/ckan/ckan
:alt: Build Status

.. image:: https://coveralls.io/repos/okfn/ckan/badge.png
:target: https://coveralls.io/r/okfn/ckan
:alt: Test coverage

**CKAN is the world’s leading open-source data portal platform**.
CKAN makes it easy to publish, share and work with data. It's a data management
system that provides a powerful platform for cataloging, storing and accessing
datasets with a rich front-end, full API (for both data and catalog), visualization
tools and more. Read more at `ckan.org <http://ckan.org/>`_.
tools and more. Read more at `ckan.org <http://ckan.org/>`_.


Installation
Expand All @@ -36,14 +32,14 @@ searching first to see if there's already an issue for your bug).

.. _CKAN tag on Stack Overflow: http://stackoverflow.com/questions/tagged/ckan
.. _ckan-discuss: http://lists.okfn.org/mailman/listinfo/ckan-discuss
.. _GitHub Issues: https://github.com/okfn/ckan/issues
.. _GitHub Issues: https://github.com/ckan/ckan/issues


Contributing to CKAN
--------------------

For contributing to CKAN or its documentation, see
`CONTRIBUTING <https://github.com/okfn/ckan/blob/master/CONTRIBUTING.rst>`_.
`CONTRIBUTING <https://github.com/ckan/ckan/blob/master/CONTRIBUTING.rst>`_.

If you want to talk about CKAN development say hi to the CKAN developers on the
`ckan-dev`_ mailing list or in the `#ckan`_ IRC channel on irc.freenode.net.
Expand All @@ -54,7 +50,7 @@ others, make a new page on the `CKAN wiki`_, and tell us about it on

.. _ckan-dev: http://lists.okfn.org/mailman/listinfo/ckan-dev
.. _#ckan: http://webchat.freenode.net/?channels=ckan
.. _CKAN Wiki: https://github.com/okfn/ckan/wiki
.. _CKAN Wiki: https://github.com/ckan/ckan/wiki


Copying and License
Expand Down
4 changes: 2 additions & 2 deletions bin/travis-install-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ 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;'

export PIP_USE_MIRRORS=true
pip install -r requirements.txt
pip install -r dev-requirements.txt
pip install -r requirements.txt --allow-all-external
pip install -r dev-requirements.txt --allow-all-external

python setup.py develop

Expand Down
5 changes: 2 additions & 3 deletions ckan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__version__ = '2.2a'
__version__ = '2.3a'

__description__ = 'Comprehensive Knowledge Archive Network (CKAN) Software'
__description__ = 'CKAN Software'
__long_description__ = \
'''CKAN software provides a hub for datasets. The flagship site running CKAN
is theDataHub.org but it is also used for dozens of other open data websites
Expand All @@ -11,7 +11,6 @@
population density database, the voting records of MPs, or 30 years of
US patents.
CKAN is an abbreviation for 'Comprehensive Knowledge Archive Network'.
Those familiar with Freshmeat or CPAN can think of CKAN as providing an
analogous service for open data and knowledge.
'''
Expand Down
6 changes: 2 additions & 4 deletions ckan/config/deployment.ini_tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ who.log_file = %(cache_dir)s/who_log.ini

## Database Settings
sqlalchemy.url = postgresql://ckan_default:pass@localhost/ckan_default
#sqlalchemy.url = sqlite:///
#sqlalchemy.url = sqlite:///%(here)s/somedb.db

#ckan.datastore.write_url = postgresql://ckan_default:pass@localhost/datastore_default
#ckan.datastore.read_url = postgresql://datastore_default:pass@localhost/datastore_default
Expand Down Expand Up @@ -130,8 +128,8 @@ ckan.feeds.author_link =

# Make sure you have set up the DataStore

ckan.datapusher.formats = csv
ckan.datapusher.url = http://datapusher.ckan.org/
#ckan.datapusher.formats =
#ckan.datapusher.url = http://127.0.0.1:8800/

## Activity Streams Settings

Expand Down
1 change: 1 addition & 0 deletions ckan/config/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def make_map():
# feeds
with SubMapper(map, controller='feed') as m:
m.connect('/feeds/group/{id}.atom', action='group')
m.connect('/feeds/organization/{id}.atom', action='organization')
m.connect('/feeds/tag/{id}.atom', action='tag')
m.connect('/feeds/dataset.atom', action='general')
m.connect('/feeds/custom.atom', action='custom')
Expand Down
Loading

0 comments on commit 4753adc

Please sign in to comment.