Ticket #1724 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Update logic action functions for vocabularies

Reported by: seanh Owned by: seanh
Priority: awaiting triage Milestone: ckan-sprint-2012-02-20
Component: ecportal Keywords: taxonomies [4d]
Cc: Repository: ckan
Theme: none

Description (last modified by seanh) (diff)

ckan/logic/action/get.py:tag_list() Currently (I think) just returns all tags in the CKAN instance that the user has access to. Needs an optional argument to get only tags from a particular vocabulary? When called with no argument, should only return free tags? Also add an optional dataset argument, so you can get tags for a given dataset and/or vocabulary?

ckan/logic/action/get.py:tag_autocomplete() Add optional argument to get only tags for a given vocab? When called with no argument, should get only free tags?

ckan/logic/action/get.py:tag_search() Again, optional arguments for restricting by vocabulary and/or dataset.

Change History

comment:1 Changed 2 years ago by seanh

  • Description modified (diff)
  • Summary changed from Update tag_list() logic action function for taxonomies to Update logic action functions

comment:2 Changed 2 years ago by seanh

  • Milestone changed from ckan-v1.6 to current-ckan-sprint-2012-02-20

comment:3 Changed 2 years ago by seanh

  • Owner set to seanh
  • Status changed from new to assigned

comment:4 Changed 2 years ago by seanh

  • Summary changed from Update logic action functions to Update logic action functions for vocabularies

comment:5 Changed 2 years ago by seanh

  • Keywords [4d] added

comment:7 Changed 2 years ago by johnglover

  • Component changed from ckan to ecportal

comment:8 Changed 2 years ago by seanh

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

I've updated tag_search() and tag_autocomplete() and added tests for them. So this ticket is finished now on branch feature-1698-tag-taxonomies

Note: See TracTickets for help on using tickets.