Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1513 - 1515 of 2152)

Ticket Resolution Summary Owner Reporter
#126 fixed Change package state in the WUI (delete and undelete) dread dread

Reported by dread, 5 years ago.

Description

As a Package Admin I want to change the state of the package. In particular I wish to delete and undelete it.

(NB: this is quite separate from "purging" objects which is the term we shall use for irrevocable removal of an object from the domain model).

  • Only Package Admins (and sysadmins) should be able to change state

Implementation Suggestions

  • 'delete' action should be renamed to 'change-state' (NB: this requires a db migration ...)
  • Have new package formalchemy form (created via inheritance?) to incorporate state attribute. Suggest this is rendered as a dropdown (and may be simple object rendering of state, i.e. do NOT need to change it to a single name such 'active').
  • This form should then be used when the user satisfies is_authorized(..., model.Action.CHANGE_STATE) instead of the usual fieldset
#127 fixed Minor form and UI improvements dread dread

Reported by dread, 5 years ago.

Description
  • group form: description field for needs to be a text area
  • group form: make title and name field wider
  • package view: need to move tags and license above notes
#129 invalid Secure db access by channelling query generation through authz module rgrp dread

Reported by dread, 5 years ago.

Description

Controllers and templates should not access db objects directly - they should do all access via authz module giving username. They are handed by a query that has already been filtered by the packages they are authorized to read.

(Additional idea to be discussed: When they request a package object, they are handed an copy of the db object - disconnected from the database - so it the db object can't be changed.)

A couple of tests can be reenabled when this is done: ckan.tests.functional.test_authz.TestUsage?.test_admin_list_deleted ckan.tests.functional.test_authz.TestUsage?.test_search_deleted

Note: See TracQuery for help on using queries.