any languages search param only looks at first language on a claim
Open
Nobody has claimed this yet.
type: bug
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 493
- PR merge metrics
- No merged PRs in 30d
Description
{"jsonrpc":"2.0","method":"claim_search","params":{"page_size":20,"page":1,"claim_type":["stream"],
"no_totals":true, "order_by":["release_time"],"fee_amount":">=0","channel_ids":["c43829de0501611df20b2223304a10c142aa6ab1"],"release_time":"<1623342240",
"any_languages":["en"],"include_purchase_receipt":true},"id":1623342293609}
claim that's not returned: 06932f603dcc276e9836e7e8c06cfad850df669d
"languages": [
"fr",
"en"
],
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the JSON-RPC claim_search entry point and trace how the any_languages parameter is applied to a claim's languages array. Reproduce the example with claim 06932f603dcc276e9836e7e8c06cfad850df669d and verify that a claim matching any requested language is returned, including when the match is not the first language.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100