Ticket #126 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Change package state in the WUI (delete and undelete)

Reported by: dread Owned by: dread
Priority: critical Milestone: v0.10
Component: ckan Keywords:
Cc: Repository:
Theme:

Description (last modified by rgrp) (diff)

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

Change History

comment:1 Changed 5 years ago by rgrp

  • Priority changed from major to critical
  • Description modified (diff)
  • Summary changed from Provide UI to delete a package to Change package state in the WUI (delete and undelete)

comment:2 Changed 5 years ago by dread

  • Milestone changed from v0.10 to v0.11

comment:3 Changed 5 years ago by dread

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from v0.11 to v0.10

Done in cset:469b0ed6d682

Note: See TracTickets for help on using tickets.