Skip to content

Datastore Filters #542

Open
Open
@jmank88

Description

@jmank88

Follow up from #523

models.AppFilter has a Name string field which is interpreted as an SQL LIKE query. The mock and bolt Datastore implementations use the util.SqlLikeToRegExp function to convert this into an equivalent regexp, but the function is incomplete. As commented, it currently only naively replaces '%', with no '_' or '\'-escape support.

Additionally, models.RouteFilter fields are currently being interpreted only as an exact string comparison, but should probably be treated as LIKE queries as well.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions