Skip to content

docs(changelog): note groups findGroups legacy group_id fix under 25.03.X#7582

Merged
davidecavaliere merged 1 commit into
masterfrom
fix/groups_legacy_string_group_id
May 21, 2026
Merged

docs(changelog): note groups findGroups legacy group_id fix under 25.03.X#7582
davidecavaliere merged 1 commit into
masterfrom
fix/groups_legacy_string_group_id

Conversation

@davidecavaliere
Copy link
Copy Markdown
Contributor

Summary

Adds a 25.03.X changelog entry for the groups findGroups legacy group_id regression fix. The actual code change lives in the plugins repo (see "Related" below) — this PR only updates CHANGELOG.md so the next 25.03.X release notes reflect the fix.

Why

Two customers hit MongoServerError: ... $in requires an array as a second argument, found: string (Mongo Location40081) after upgrading to v25.03.43, breaking the groups listing, User Management, Alerts and Preset Management screens. The new $lookup pipeline introduced in countly-platform 6fe036e3ad does $in: ["$$group_id", { $ifNull: ["$group_id", []] }] against members.group_id, which throws when the field is a string (pre-2021 schema, before d66a83b096).

Related

Tests

No code changes here — CHANGELOG.md only. The fix itself is covered by a new Legacy string group_id tolerance integration test in the plugins PR.

…03.X

Pairs with the actual fix in countly-enterprise-plugins PR #3179
(mirror of countly-platform #295). Read-path coercion in
plugins/groups/api/services/dbService.js so pre-2021 members docs with
group_id stored as a string no longer trip MongoDB Location40081 on the
new $in-based $lookup pipeline.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@davidecavaliere davidecavaliere merged commit 9bf0774 into master May 21, 2026
10 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.

2 participants