Ticket #152 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Package has editable 'Extra' fields

Reported by: dread Owned by: dread
Priority: major Milestone: v0.11
Component: ckan Keywords:
Cc: Repository:

Description (last modified by dread) (diff)

Package edit page has fields for extra key-value pairs. Don't use formalchemy. The form displays the existing ones and new ones as follows:

Key           Value            delete
[ country   ] [ uk, spain   ]  [x]

When presenting the form, existing pairs and 3 blank pairs are provided.

When saving the data, keys that are not changed use the existing PackageExtra object (perhaps with new value). Deleted keys put the PackageExtra state to deleted. For new keys, only create a new PackageExtra if there isn't a state=deleted one to resurrect.

Validators ensure no repeated keys.

Change History

comment:1 Changed 5 years ago by dread

  • Description modified (diff)

comment:2 Changed 5 years ago by dread

  • Status changed from new to closed
  • Resolution set to fixed

Done in: cset:f57dbb45418e - main work cset:78930cfd01b7 - not requiring values now.

Note: See TracTickets for help on using tickets.