Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1144 - 1146 of 2152)

Ticket Resolution Summary Owner Reporter
#1050 invalid Authz lib improvement and refactor of ckan/lib/authztool.py thejimmyg johnlawrenceaspden

Reported by johnlawrenceaspden, 3 years ago.

Description

Refactor ckan/lib/authztool.py so that the relevant methods are independent of the command line interface.

The extracted methods should live in a new file ckan/authz.py. authztool.py should probably move into cli.py and will just do command line parsing and printing and use ckan/authz.py. The updated web gui for authz will also use this code.

Tests should be made. There's already a file ckan/tests/test_authz.py, which looks like the appropriate place for new tests.

all to go on a branch feature-1050-refactor-authtoolz

Optional extras

  • Rename ckan/authz.py to ckan/lib/authz.py or even ckan/logic/authz.py
#1049 invalid Fix database errors on offener.datenkatalog.at etc. dread

Reported by dread, 3 years ago.

Description

We're getting these sorts of exceptions from http://offener.datenkatalog.at/ like we had from ckan.net, which was due to small errors in migration scripts. Is it worth fixing this database, and in fact all the ckans on eu3 at once?

WebApp Error: <class 'sqlalchemy.exceptions.IntegrityError'>: (IntegrityError) duplicate key value violates unique constraint "group_revision_pkey" 'INSERT INTO group_revision (id, name, title, description, created, state, revision_id, continuity_id) VALUES (%(id)s, %(name)s, %(title)s, %(description)s, %(created)s, %(state)s, %(revision_id)s, ...

Thoughts James and Rufus?

#1048 fixed Complete making groups versioned dread dread

Reported by dread, 3 years ago.

Description
  • Deleting a group changes state to 'deleted' rather than purging it
  • Adding authz tests for deleted groups
Note: See TracQuery for help on using queries.