Ticket #1775 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Enable adding many tags at once to controlled vocabularies via API

Reported by: seanh Owned by: seanh
Priority: awaiting triage Milestone: ckan-sprint-2012-03-05
Component: ecportal Keywords: taxonomies [0.5d] [a:1d]
Cc: Repository: ckan
Theme: none

Description (last modified by seanh) (diff)

We already have API calls for adding one tag or removing one tag at a time to/from a vocab. Want more convenient ways to add or remove many in one call, or just pass in a list of tags to completely replace a vocab's current list.

  • Add tags_create() function that calls the existing tag_create() many times?
  • Also tags_delete()?
  • Or just let tag_create() and tag_delete() accept a list?
  • Add tags argument to vocabulary_update() to pass in a list of tags to replace the vocab's current tags? (But it should still be possible to simply rename a vocab without changing its tags and without having to pass in the tag list.)

Change History

comment:1 Changed 2 years ago by seanh

  • Keywords [0.5d] added

comment:2 Changed 2 years ago by seanh

  • Component changed from ckan to ecportal

comment:3 Changed 2 years ago by seanh

  • Description modified (diff)
  • Summary changed from Enable adding tags to controlled vocabularies via API to Enable adding many tags at once to controlled vocabularies via API

comment:4 Changed 2 years ago by seanh

  • Milestone changed from current-ckan-sprint-2012-02-20 to ckan-sprint-2012-03-05

comment:5 Changed 2 years ago by seanh

  • Keywords [a:1d] added
  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.