Ticket #43 (new enhancement) — at Version 3
Generic Attributes for Packages
Reported by: | rgrp | Owned by: | rgrp |
---|---|---|---|
Priority: | critical | Milestone: | v0.10 |
Component: | ckan | Keywords: | |
Cc: | Repository: | ||
Theme: |
Description (last modified by rgrp) (diff)
As A
User
I Want To
Add arbitrary named attributes to packages (an attribute being a name, type, value triple).
Details
- We will do this using a dedicated (versioned) table associated to Package
- Do we allow multiple attributes of the same name?
- For the present: No (since we will key by attribute name)
- Could allow for single attribute but with multiple values using json list ...
- What types do we allow or do we just rely on JSON to take care of this?
Questions (Original)
- How complex is this to implement?
- What would an arbitrary user be able to edit? Possibilities:
- 'create new attribute' and setting the value (so name and type would be chosen from predefined list).
- 'create', setting of name and value (but not type -- type already set in predefined list)
- Could just use (machine) tags -- though this could be seen as a bit of a hack.
- Would solve having to create special file/url attributes (though I think that perhaps file stuff is important enough to merit first class support in the domain model -- though, that said, since one won't want to have a file limit adding unlimited file support is very similar to unlimited attributes of arbitrary type).
Change History
Note: See
TracTickets for help on using
tickets.