[ckan-changes] [ckan/ckan] 3f0062: [#2429] Add storage path and datapusher URL to env...

GitHub noreply at github.com
Fri May 22 17:20:15 UTC 2015


  Branch: refs/heads/2429-remote-config
  Home:   https://github.com/ckan/ckan
  Commit: 3f0062e962bfa857f715d180b9ef0d91d8a5b821
      https://github.com/ckan/ckan/commit/3f0062e962bfa857f715d180b9ef0d91d8a5b821
  Author: amercader <amercadero at gmail.com>
  Date:   2015-05-22 (Fri, 22 May 2015)

  Changed paths:
    M ckan/config/environment.py

  Log Message:
  -----------
  [#2429] Add storage path and datapusher URL to env vars

Both are critical and useful to set up via env vars on cloud
environments


  Commit: a3d6988a1ebc08c51ee0b67530375886a2280b7f
      https://github.com/ckan/ckan/commit/a3d6988a1ebc08c51ee0b67530375886a2280b7f
  Author: amercader <amercadero at gmail.com>
  Date:   2015-05-22 (Fri, 22 May 2015)

  Changed paths:
    M ckan/controllers/admin.py
    M ckan/lib/app_globals.py
    M ckan/logic/action/update.py

  Log Message:
  -----------
  [#2429] Cenrtalize code for setting app_globals in a single place

The logic for adding keys to app_globals was not consistenly applied
from all places. Right now this only happens in two places, in
`config_option_update` and on the `_init` [sic] method of the `_Globals`
object. There is some processing, eg casting as int or list depending on
the options of `app_globals_from_config_details`.

Cleaned up the functions on app_globals to remove model stuff.

TODO: improve the reset method.


  Commit: 960e4c374659540895daeb53b81a2b85610b661c
      https://github.com/ckan/ckan/commit/960e4c374659540895daeb53b81a2b85610b661c
  Author: amercader <amercadero at gmail.com>
  Date:   2015-05-22 (Fri, 22 May 2015)

  Changed paths:
    M ckan/config/environment.py
    M ckan/logic/action/get.py
    M ckan/logic/action/update.py
    A ckanext/example_iconfigurer/plugin_v1.py
    A ckanext/example_iconfigurer/plugin_v2.py
    M ckanext/example_iconfigurer/templates/admin/config.html
    M doc/extensions/index.rst
    A doc/extensions/remote-config-update.rst
    A doc/images/custom_config_fields.png
    M doc/maintaining/configuration.rst
    M setup.py

  Log Message:
  -----------
  [#2429] Add documentation for remote config

* Section about env vars and runtime config editing in
  `configuration.rst`
* Env vars are pulled automatically from `environment.py`
* Tutorial for adding custom config options from an extension and adding
  fields to the admin form
* Improved action docstrings


  Commit: 4634c3ff329c798e4c85812f69f5a7978a2fe2ed
      https://github.com/ckan/ckan/commit/4634c3ff329c798e4c85812f69f5a7978a2fe2ed
  Author: amercader <amercadero at gmail.com>
  Date:   2015-05-22 (Fri, 22 May 2015)

  Changed paths:
    M ckanext/example_iconfigurer/tests/test_iconfigurer_update_config.py

  Log Message:
  -----------
  Merge branch '2429-remote-config' of github.com:ckan/ckan into 2429-remote-config


Compare: https://github.com/ckan/ckan/compare/9bba20cfb63d...4634c3ff329c


More information about the ckan-changes mailing list