From c12fb429e28eb2f1c8a9039650070747065c6c77 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Sat, 18 Apr 2026 11:25:35 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20fix=20stale=20`\$bitsAll?= =?UTF-8?q?Set`=20references=20in=20FerretDB=20spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The describe block and header comment in the FerretDB parity spec still referenced `\$bitsAllSet queries` after the Cosmos DB compatibility fix moved the bit mask into application code. Update the title to \"Bitwise permission queries\" and rewrite the header comment to describe the application-layer behavior being validated. Refs #12729. --- .../misc/ferretdb/aclBitops.ferretdb.spec.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/data-schemas/misc/ferretdb/aclBitops.ferretdb.spec.ts b/packages/data-schemas/misc/ferretdb/aclBitops.ferretdb.spec.ts index d8fb4ec84b..5759396ae0 100644 --- a/packages/data-schemas/misc/ferretdb/aclBitops.ferretdb.spec.ts +++ b/packages/data-schemas/misc/ferretdb/aclBitops.ferretdb.spec.ts @@ -5,10 +5,13 @@ import { createAclEntryMethods } from '~/methods/aclEntry'; import aclEntrySchema from '~/schema/aclEntry'; /** - * Integration tests for $bit and $bitsAllSet on FerretDB. + * Integration tests for ACL bitwise operations on FerretDB. * - * Validates that modifyPermissionBits (using atomic $bit) - * and $bitsAllSet queries work identically on both MongoDB and FerretDB. + * Validates that `modifyPermissionBits` (using the atomic `$bit` operator) and + * the application-layer bitwise filtering used by `hasPermission` / + * `findAccessibleResources` behave identically on both MongoDB and FerretDB. + * The query methods no longer use `$bitsAllSet` — see #12729 for the Cosmos DB + * compatibility fix that moved the bit mask into application code. * * Run against FerretDB: * FERRETDB_URI="mongodb://ferretdb:ferretdb@127.0.0.1:27020/aclbit_test" npx jest aclBitops.ferretdb @@ -282,7 +285,7 @@ describeIfFerretDB('ACL bitwise operations - FerretDB compatibility', () => { }); }); - describe('$bitsAllSet queries (hasPermission + findAccessibleResources)', () => { + describe('Bitwise permission queries (hasPermission + findAccessibleResources)', () => { it('should find entries with specific bits set via hasPermission', async () => { const resourceId = new mongoose.Types.ObjectId();