dandi / dandi/dandi-archive

path in assets GET could be a regex or substring filtering

Open
#230 2 comments 0 reactions 1 assignee Claimed by @waxlamp View on GitHub
enhancement search UX
Dominant language
Python
Stars
26
Forks
21
Avg merge
4d 23h
Merged PRs (30d)
15

Description

it would be nice to be able to filter quickly on items in a dataset by any substring. technically on the db side this should be a simple query on the path column.

instead of
```
https://api.dandiarchive.org/api/dandisets/000003/versions/draft/assets/?path=sub-YutaMouse20
```
we should also be able to do:
```
https://api.dandiarchive.org/api/dandisets/000003/versions/draft/assets/?path=YutaMouse20
```
and
```
https://api.dandiarchive.org/api/dandisets/000003/versions/draft/assets/?path=behavior
```

one possibility is to change `path` to `path-contains`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.