Skip to content

to main - #248

Merged
JoshuaVSherman merged 12 commits into
mainfrom
dev
Jul 25, 2026
Merged

to main#248
JoshuaVSherman merged 12 commits into
mainfrom
dev

Conversation

@JoshuaVSherman

Copy link
Copy Markdown
Contributor

No description provided.

dependabot Bot and others added 12 commits July 21, 2026 11:07
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.6 to 5.0.7.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.6...v5.0.7)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…-expansion-5.0.7

chore(deps): Bump brace-expansion from 5.0.6 to 5.0.7
Preserves working-tree changes that were left uncommitted on `dev`
since 2026-07-17 (no branch/issue/PR). Adds a `venueId` ObjectId ref to
the gig schema plus a minimal Venue model, and makes gig find/findSort
populate the linked venue's name/city/usState/website so the SocketCluster
gig feed can carry venue details.

Relates to the gig↔venue linkage effort (JaM#1220 render-time venue link,
JaM#1242 Gigs Location column). INCOMPLETE for the current design: the
venue schema here lacks a street `address` field that JaM#1242 needs.
Not reviewed, not tested, no issue yet — parked pending decision.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Reformat gig-facade.ts try/catch blocks to multi-line so the
  populate() calls no longer trip max-len (fixes the RED lint gate).
- Add a street `address` field to the Venue schema and include it in
  the gig find/findSort populate alongside name/city/usState/website,
  for JaM#1242's Gigs Location column.
- Add gig-facade tests covering find/findSort populate behaviour
  (success returns a populated venue subdocument incl. address;
  failure propagates the rejection), matching the existing
  Facade test style.
…ulate

Populate linked venue on the gig feed (gig↔venue linkage)
The catch block in AgController.newGig() transmitted socketError then
broke out of the receiver loop, permanently killing that client
socket's newGig/newTour consumer after the first error. Sibling
handlers (editDoc, removeGig) already transmit-and-continue; newGig
now matches that behavior.

Bump 3.0.8 -> 3.0.10 (skipping 3.0.9, already claimed by PR #245/#244).
…or (#246)

CircleCI build 474 timed out in test/AgController/index.spec.ts. Root cause:
after the earlier fix removed the error-path `break`, `newGig()`'s
`if (receiver.done) break;` remained INSIDE the try block, right after the
success path — so it was skipped whenever the catch fired. Several existing
tests mock the receiver consumer to always resolve `{ ..., done: true }` on
a payload that throws (invalid token/gig data); with the check unreachable
on that path, those tests' un-awaited background loops spin forever,
starving the event loop and hanging the whole suite.

Fix: move the done-check to run unconditionally after the try/catch,
matching the sibling editDoc/removeGig handlers. Production behavior is
now correct too — the loop keeps serving newGig events after an error and
still terminates cleanly when the client stream truly ends.

Also fixed a latent test-pollution bug this hang had been masking: a test
replaces the shared `utils.handleGig`/`utils.removeGig` exports with
vi.fn() stubs and never restores them, which silently broke the #246
regression test's assertion that createDocs gets called on the second,
valid newGig. Added restoration in afterEach.

npm test: 10 test files / 86 tests passed, lint clean, no hang.
newGig receiver loop breaks permanently after one error — later newGig events on that socket are dropped
@JoshuaVSherman
JoshuaVSherman merged commit 6b985fe into main Jul 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant