Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (874 - 876 of 2152)

Ticket Resolution Summary Owner Reporter
#1046 fixed Dictization and the new logic layer kindly thejimmyg

Reported by thejimmyg, 3 years ago.

Description

The stages involved with doing this.

  • Convert model objects to standard dict format (DONE)
  • Convert standard dicts to current api formats (DONE)
  • Make standard dicts savable (DONE)
  • Validate standard dict format. (DONE)
  • Authorize actions
#1054 fixed Ordering of resources kindly dread

Reported by dread, 3 years ago.

Description

Changing an old resource and creating a new resource on the end results in the old resource moving to the end in the ordering.

This breaks tests:

  • (ckanext-dgu) ckanext/dgu/tests/ons/test_ons_loader.py:TestOnsLoadBasic.test_fields
  • (ckanext-importlib) ckanext/importlib/tests/test_loader.py:TestLoaderInsertingResources.test_0_reload

You can make a ckan test break with this patch:

diff -r e6643cf1324c ckan/tests/models/test_resource.py
--- a/ckan/tests/models/test_resource.py        Wed Mar 23 13:25:52 2011 +0000
+++ b/ckan/tests/models/test_resource.py        Wed Mar 23 19:22:35 2011 +0000
@@ -297,6 +297,8 @@
                'url':self.urls[1], 'format':u'OTHER FORMAT',
                'description':self.description, 'hash':self.hash,
                'id':original_res_ids[2]},
+            { #new
+                'url':'new'},
            ]
        pkg.update_resources(res_dicts)
        model.repo.commit_and_remove()

There seems to be a problem with vdm creating a replacement Resource for the old resource - because it has a duplicate position it is put to the end by the SQLAlchemy ordering_list function.

#1078 fixed Refactors WUI controllers and forms to use logic layer kindly rgrp

Reported by rgrp, 3 years ago.

Description
  • Deserialize forms to new dict format.
  • Replace controllers/forms to use dictization.
Note: See TracQuery for help on using queries.