• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / Iznik / 23475
71%
master: 72%

Build:
Build:
LAST BUILD BRANCH: feature/bulk-offer-management
DEFAULT BRANCH: master
Ran 25 Jun 2026 07:00PM UTC
Jobs 4
Files 1320
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jun 2026 06:14PM UTC coverage: 71.401%. First build
23475

Pull #899

circleci

edwh
fix(message): use LastInsertId for new message id, not SELECT max-id

PutMessage created a message then read its id back with
"SELECT id FROM messages WHERE fromuser=? ORDER BY id DESC LIMIT 1". With the
read/write split (MYSQL_HOST_READ set) that SELECT is routed to a replica, which
under Galera's cross-node apply window had not yet applied the just-done INSERT -
so it returned the user's PREVIOUS message id. The new message's draft, its
photos (UPDATE messages_attachments SET msgid=newMsgID) and the subsequent
JoinAndPost then all bound to that old post, grafting a new offer onto an
existing one and merging the photos (Discourse 9832 "mixed up offers").

Read the id from the INSERT's own LastInsertId on the write connection
(db.DB() returns the source even with dbresolver registered), matching the
pattern in CreateGroup. The freshly-inserted message is then used for everything
downstream.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SwyetpbkbQV4AWWdqkBcvv
Pull Request #899: fix(message): use LastInsertId for new message id, not SELECT max-id

11282 of 15003 branches covered (75.2%)

Branch coverage included in aggregate %.

7 of 9 new or added lines in 1 file covered. (77.78%)

123765 of 174136 relevant lines covered (71.07%)

37.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
86.98
-0.04% iznik-server-go/message/message.go
Jobs
ID Job ID Ran Files Coverage
23475 go - 23475 25 Jun 2026 07:00PM UTC 140
83.83
CircleCI Job 23475
23475 vitest - 23475 25 Jun 2026 07:01PM UTC 717
69.04
CircleCI Job 23475
23475 playwright - 23475 25 Jun 2026 07:01PM UTC 74
22.86
CircleCI Job 23475
23475 laravel - 23475 25 Jun 2026 07:01PM UTC 462
68.53
CircleCI Job 23475
Source Files on build 23475
  • Tree
  • List 1320
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #23475
  • Pull Request #899
  • PR Base - master (#23454)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc