Results 187 issues of Stephen Haberman

Unfortunately I'm trying to change: ``` export class BookReview extends BookReviewCodegen { // had been explicitly typed as `: Reference` readonly publisher = this.orm.hasOneDerived( { book: { author: "publisher" }...

For example: ``` class Book { readonly canBeDraft = newAsyncProperty("reviews" => b.reviews.length === 0) } class Author {} authorConfig.addRule({ "currentDraftBook:rx": "canBeDraft:rx" }, a => { if (!a.currentDraftBook.canBeDraft.get) { return "Book...

I.e.: ``` const [projectStage, location] = await Promise.all([ selection.load((hs) => hs.projectItem.projectStage), selection.load((hs) => hs.projectItem.location), ]); ``` Could be: ``` const [projectStage, location] = await hs.load( (hs) => hs.projectItem.projectStage, (hs) =>...

It looks like Joist's "only do _one_ `UPDATE`" maybe be too complicated for Postgres's transaction conflict detection: ``` UPDATE units SET "updated_at" = data."updated_at", "duration" = data."duration", "task_status_rollup_id" = data."task_status_rollup_id"...

AFAIU, Postgres itself (the server) has great support for "1 connection making multiple / simultaneous in-flight queries", but that the client driver libpq only just gained this functionality (todo add...

hack day

I.e. so that: ```typescript const tasksByDefinitionId = target.stages.get .flatMap((s) => s.units.get) .flatMap((u) => u.activities.get) .flatMap((a) => a.tasks.get) .filter((t) => t.taskDefinition.isSet) .mapToObject((t) => [t.taskDefinition.idOrFail, t]); ``` Could be: ```typescript const tasksByDefinitionId...

hack day