Skip to content

RUBY-3220 Add databaseName property to command events#3031

Merged
comandeo-mongo merged 1 commit intomongodb:masterfrom
comandeo-mongo:3220
Apr 30, 2026
Merged

RUBY-3220 Add databaseName property to command events#3031
comandeo-mongo merged 1 commit intomongodb:masterfrom
comandeo-mongo:3220

Conversation

@comandeo-mongo
Copy link
Copy Markdown
Contributor

@comandeo-mongo comandeo-mongo commented Apr 28, 2026

Summary

  • Sync find.yml from the command-logging-and-monitoring spec so commandSucceededEvent and commandFailedEvent expectations include databaseName. Schema bumped from 1.1 to 1.15.
  • The Ruby driver's event classes already exposed database_name on CommandStarted, CommandSucceeded, and CommandFailed, and the unified runner already supports asserting databaseName on any command event — this change exercises that path through the unified spec tests.

Sync find.yml from the command-logging-and-monitoring spec to assert
databaseName on commandSucceededEvent and commandFailedEvent. The
events themselves already expose database_name; this update exercises
the spec change in the unified test fixture.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the unified command monitoring spec test for find to align with the upstream command-logging-and-monitoring specification by asserting databaseName on command succeeded/failed events.

Changes:

  • Bump unified spec schemaVersion in find.yml from 1.1 to 1.15.
  • Add databaseName: *databaseName expectations to commandSucceededEvent and commandFailedEvent entries (including getMore).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@comandeo-mongo comandeo-mongo merged commit e2efaeb into mongodb:master Apr 30, 2026
202 checks passed
@comandeo-mongo comandeo-mongo deleted the 3220 branch April 30, 2026 16:28
@comandeo-mongo comandeo-mongo added feature A PR for a new feature bug and removed feature A PR for a new feature labels Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants