Ticket #1800 (new refactor)

Opened 2 years ago

Last modified 2 years ago

Tidy up *_list() and *_search() functions in ckan/logic/action/get.py

Reported by: seanh Owned by:
Priority: awaiting triage Milestone: ckan-future
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

For consistency all the *_list() functions should list objects only and not accept an optional search query. There should be *_search() functions whenever search is needed.

Currently it is inconsistent, e.g. package_list() and resource_list() do not accept a search query option and there are package_search() and resource_search(), but user_list() does accept a query and there is no user_search(). tag_list() also accepts a query, and there is also a tag_search() that apparently duplicates the search functionality.

Change History

comment:1 Changed 2 years ago by seanh

  • Milestone changed from ckan-v1.7 to ckan-future
Note: See TracTickets for help on using tickets.