Skip to content

Implement filtering options for the URI type #413

Closed
@kgodey

Description

Problem

We need to ensure that records that include columns of the custom URI type support the following filters via API:

  • contains {x}
  • does not contain {x}
  • is {x}
  • is not {x}
  • is empty
  • is not empty
  • host contains {x}
  • host does not contain {x}
  • scheme is [select from list of choices of valid schemes]
  • scheme is not [select from list of choices of valid schemes]

The ones in bold are unique to the URI type.

This involves:

  • Implementing the filters in the backend
  • Updating the /api/v0/databases/<id>/types/ endpoint to store available filters on this type
    • Filter information should include the number of parameters needing to be passed in (e.g. is needs 1 parameter, is empty needs 0)
    • Filter information should also include the list of valid choices for the filter (e.g. scheme filters)

Additional context

Metadata

Assignees

Labels

readyReady for implementationwork: backendRelated to Python, Django, and simple SQL

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions