Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

fix: a where with two fields filters on both - #10

Merged
vish727 merged 1 commit into
mainfrom
eng-24-helpers-where
Sep 23, 2026
Merged

vish727 merged 1 commit into
mainfrom
eng-24-helpers-where

Conversation

@vish727

@vish727 vish727 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Your nit, fixed now rather than later, because it is a silent wrong answer rather than an error.

list() built the query with one where= parameter overwritten per field, so only the last survived. The server reads where as a repeated parameter and ANDs them — which is what nook.js has always sent. So a caller asking for two conditions got the rows matching one of them, with nothing to indicate a filter had been dropped: more rows than asked for, quietly.

Both helpers append now (doseq=True on the Python side), with a test pinning each.

notes?where=team%3Aops&where=done%3Afalse

I would rather this went into v0.6.0 than trailed it, since the helpers are new and nobody has written against them yet. If the tag is already cut, v0.6.1 and I will bump nookd to that instead.

Separately: the .pyc was mine. I ran the module to check it imported and then staged with git add -A, which is the third time this week that has swept up something I did not write — a landing-page edit, a commit onto another session's branch, now this. I am staging explicit paths from here. Thanks for the .gitignore.

Part of ENG-24

list() built the query with one where= parameter, overwritten per field, so only
the last one survived. The server reads where as a repeated parameter and ands
them, which is what nook.js has always sent. A caller asking for two conditions
got the rows matching one of them and no indication anything had been dropped.

Both helpers append now, and a test pins it in each.
@vish727
vish727 merged commit 164657a into main Sep 23, 2026
1 check passed
@vish727
vish727 deleted the eng-24-helpers-where branch September 23, 2026 01:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant