dandi / dandi/dandi-archive

Replace `user=<STRING>` query parameters for `/dandisets/` endpoint with `mine=<true|false>`

Open
#1,879 0 comments 0 reactions 0 assignees View on GitHub
API
Dominant language
Python
Stars
26
Forks
21
Avg merge
4d 23h
Merged PRs (30d)
15

Description

(Requested by @yarikoptic in https://github.com/dandi/dandi-cli/pull/1414#discussion_r1507731964)

The `/dandisets/` endpoint currently takes an optional `user` query parameter that, when present, can only be set to `me` (in order to retrieve only the authenticated user's Dandisets). However, having a query parameter that can only be set to a single value doesn't make much sense. It would be better for the `user` parameter to be replaced with a parameter `mine` (or similar) that can be set to either `true` or `false` (default `false`).

Contributor guide

No contributing guide indexed for this repository

Research direction

Find the /dandisets/ endpoint implementation and its request tests; verify the current user=me behavior first. Update the endpoint contract so mine accepts true or false and defaults to false, then run the endpoint tests and confirm filtering the authenticated user's Dandisets works.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.