OpenDataNode / odn-box

0 stars 2 forks source link

NOT working with ckan 2.3 - Allows creating dataset without the need to specify resource #18

Closed Jan-Marcek closed 9 years ago

Jan-Marcek commented 9 years ago

It seems that it doesn't work with ckan 2.3. related commit https://github.com/OpenDataNode/odn-ckan/commit/35c34f39cbc17a90368d1d136897839bc58a8c71

Steps to reproduce:

  1. create dataset -> fulfill name of dataset then press next
  2. add dataset -> leave all fields empty then press finish

get messages:

404 Not Found
The resource could not be found.
[Thu Apr 09 15:00:28 2015] [error] 2015-04-09 15:00:28,100 CRITI [ckan.lib.uploader] Please specify a ckan.storage_path in your config
[Thu Apr 09 15:00:28 2015] [error]                          for your uploads
[Thu Apr 09 15:00:29 2015] [error] 2015-04-09 15:00:29,044 INFO  [ckan.lib.base]  / render time 0.791 seconds
[Thu Apr 09 15:00:30 2015] [error] 2015-04-09 15:00:30,287 CRITI [ckan.lib.uploader] Please specify a ckan.storage_path in your config
[Thu Apr 09 15:00:30 2015] [error]                          for your uploads
[Thu Apr 09 15:00:30 2015] [error] 2015-04-09 15:00:30,345 INFO  [ckan.lib.base]  /base/images/methodology.jpg render time 0.021 seconds
[Thu Apr 09 15:00:30 2015] [error] 2015-04-09 15:00:30,545 INFO  [ckan.lib.base]  /base/images/methodology.jpg render time 0.198 seconds
[Thu Apr 09 15:00:30 2015] [error] 2015-04-09 15:00:30,552 INFO  [ckan.lib.base]  /base/images/odnschemesmall.jpg render time 0.012 seconds
[Thu Apr 09 15:00:30 2015] [error] 2015-04-09 15:00:30,776 INFO  [ckan.lib.base]  /api/i18n/en render time 0.002 seconds
[Thu Apr 09 15:00:31 2015] [error] 2015-04-09 15:00:31,545 INFO  [ckan.lib.base]  /base/images/odnschemesmall.jpg render time 0.991 seconds
[Thu Apr 09 15:00:32 2015] [error] 2015-04-09 15:00:32,601 INFO  [ckan.lib.base]  /organization render time 0.279 seconds
[Thu Apr 09 15:00:32 2015] [error] 2015-04-09 15:00:32,820 INFO  [ckan.lib.base]  /api/i18n/en render time 0.002 seconds
[Thu Apr 09 15:00:33 2015] [error] 2015-04-09 15:00:33,838 INFO  [ckan.lib.base]  /organization/new render time 0.154 seconds
[Thu Apr 09 15:00:34 2015] [error] 2015-04-09 15:00:34,063 INFO  [ckan.lib.base]  /api/i18n/en render time 0.002 seconds
[Thu Apr 09 15:00:38 2015] [error] /usr/share/python/odn-ckan-shared/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py:79: SAWarning: Usage of the 'related attribute set' operation is not currently supported within the execution stage of the flush process. Results may not be consistent.  Consider using alternative event listeners or connection-level operations instead.
[Thu Apr 09 15:00:38 2015] [error]   sess._flush_warning("related attribute set")
[Thu Apr 09 15:00:38 2015] [error] 2015-04-09 15:00:38,188 INFO  [ckan.lib.base]  /organization/new render time 0.143 seconds
[Thu Apr 09 15:00:38 2015] [error] 2015-04-09 15:00:38,284 WARNI [ckan.lib.maintain] Use `c.search_facets` instead.
[Thu Apr 09 15:00:38 2015] [error] 2015-04-09 15:00:38,644 INFO  [ckan.lib.base]  /organization/com render time 0.445 seconds
[Thu Apr 09 15:00:39 2015] [error] 2015-04-09 15:00:39,116 INFO  [ckan.lib.base]  /api/i18n/en render time 0.002 seconds
[Thu Apr 09 15:00:40 2015] [error] 2015-04-09 15:00:40,913 INFO  [ckan.lib.base]  /dataset/new render time 0.270 seconds
[Thu Apr 09 15:00:41 2015] [error] 2015-04-09 15:00:41,384 INFO  [ckan.lib.base]  /api/i18n/en render time 0.002 seconds
[Thu Apr 09 15:00:46 2015] [error] /usr/share/python/odn-ckan-shared/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py:79: SAWarning: Usage of the 'related attribute set' operation is not currently supported within the execution stage of the flush process. Results may not be consistent.  Consider using alternative event listeners or connection-level operations instead.
[Thu Apr 09 15:00:46 2015] [error]   sess._flush_warning("related attribute set")
[Thu Apr 09 15:00:46 2015] [error] 2015-04-09 15:00:46,816 INFO  [ckan.lib.base]  /dataset/new render time 0.442 seconds
[Thu Apr 09 15:00:47 2015] [error] 2015-04-09 15:00:47,170 INFO  [ckan.lib.base]  /dataset/new_resource/tetstt render time 0.335 seconds
[Thu Apr 09 15:00:47 2015] [error] 2015-04-09 15:00:47,699 INFO  [ckan.lib.base]  /api/i18n/en render time 0.002 seconds
[Thu Apr 09 15:00:50 2015] [error] 2015-04-09 15:00:50,297 INFO  [ckan.lib.base]  /dataset/new_resource/tetstt render time 0.034 seconds
[Thu Apr 09 15:00:50 2015] [error] 2015-04-09 15:00:50,314 INFO  [ckan.lib.base]  /dataset/new_metadata/tetstt render time 0.004 seconds
[Thu Apr 09 15:00:50 2015] [error] 2015-04-09 15:00:50,383 INFO  [ckan.lib.base]  /dataset/new_metadata/tetstt render time 0.068 seconds
[Thu Apr 09 15:00:50 2015] [error] 2015-04-09 15:00:50,688 INFO  [ckan.lib.base]  /api/i18n/en render time 0.004 seconds
Jan-Marcek commented 9 years ago

please do follow this post https://github.com/ckan/ckan/pull/2327#issuecomment-85452728 we should create test for it.

Jan-Marcek commented 9 years ago

Tested on https://github.com/OpenDataNode/odn-ckan/commit/2e93a7db2f4cb0300c3500d9e181f34a0d0b2798

mvi-eea-sk commented 9 years ago

Its not error of this feature but ckan 2.3 bug. The dataset creation process was changed to two stage process (was three before), the code for the third action was deleted, but it's still referenced.

repaired in https://github.com/ckan/ckan/issues/2392