fastmail / Ix

automatic generation of JMAP-style APIs
GNU General Public License v2.0
10 stars 5 forks source link

add methods for pre-limited resultsets #110

Closed rjbs closed 3 years ago

rjbs commented 6 years ago

This adds:

It also adds Ix::DBIC::AccountResult, for a result class that is not an entity but does have an accountId field and should be able to provide account_rs* methods.

These methods provide recordsets for the named collection, but also add stipulate whether isActive must be true and whether accountId must match the account of the invocant.

In general, all Ix applications should be writable with limited, if any, recourse to calling resultset directly.

wolfsage commented 6 years ago

Looks good. Should bakesale tests be updated?

mmcclimon commented 6 years ago

What he said. 👆

rjbs commented 6 years ago

I will add straightforward tests for these, but for now am relying on the way that downstream tests them.