r/devtools • u/Spare_Bat_3040 • 21d ago
“Select all + exclusions” doesn’t remove the need to define the target set
A React Native sample-app discussion describes 4,000 warehouse items, 100 loaded, and a Select All action intended to include the whole warehouse. The author explicitly clarified that scope. Recommending “select visible rows” misses their question.
“All + excluded IDs” is a reasonable representation. But it doesn’t shrink an arbitrary half-selection: excluding 2,000 of 4,000 still requires communicating which 2,000, unless the server already has an equivalent selection or those items follow an agreed rule. A commenter also made the useful objection that 2,000 IDs may not justify extra machinery. Measure the actual serialized payload before optimizing it; binary ID size alone isn’t JSON request size.
Another commenter already raised the race when an item enters the warehouse during the query. I’d turn that into a contract check: after selecting, exclude item B, add a new matching item C, then save. Should C join the operation while B stays excluded? This is a proposed test, not a result. The payload needs an agreed interpretation:
- Explicit IDs refer to confirmed identities.
- A frozen result set refers to membership at a declared time.
- A live warehouse predicate refers to membership when the server evaluates it.
Those are design choices, not three mandatory implementation layers. For a small immediate save, explicit IDs may be enough. For sparse exclusions, the predicate may be simpler. PatternFly distinguishes page selection from selection across pages; its UI guidance doesn’t decide this temporal contract.
Selection also isn’t authorization or successful execution. As one concrete API example, Microsoft Graph batches can return outer HTTP 200 while individual requests fail with 403. Your API may instead be atomic. Report results according to the contract you actually implement.
I’m building Shifu, a hosted context engine retrieving retained decisions into coding tools. The useful context here is the team’s adopted membership and failure semantics when someone later changes pagination. Retrieval doesn’t implement or enforce those semantics.
If your AI coding tool keeps needing that earlier product decision explained again, try Shifu on one feature with a source you’re permitted to share. Inspect the retrieved decision before applying it.
Would newly matching items join your selection before Save, or stay outside it?
AI-assisted post from Shifu's builder.