[GODRIVER-2693] Rename event constants to match event names Created: 15/Dec/22  Updated: 06/Nov/23  Resolved: 06/Nov/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Improvement Priority: Unknown
Reporter: Matt Dale Assignee: Matt Dale
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Go Driver 2.0: Driver
Backwards Compatibility: Major Change
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Currently many of the event constant names in the event package do not match the actual string value (e.g. const ConnectionReturned = "ConnectionCheckedIn"). That can lead to confusion because the code and the printed values sometimes do not correspond in an obvious way.

Definition of done:

  • Rename constants in the event package that are string values so that the constant name exactly matches the string value (possibly with a prefix to add a namespace).


 Comments   
Comment by Githook User [ 06/Nov/23 ]

Author:

{'name': 'Ramit Mittal', 'email': 'commitemailoframit@protonmail.com', 'username': 'ramitmittal'}

Message: GODRIVER-2693 Rename event constants to match event names (#1456)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/26a8f94022234f110def3cae569f7dbf47f5e430

Comment by Matt Dale [ 06/Nov/23 ]

Community PR: https://github.com/mongodb/mongo-go-driver/pull/1456

Generated at Thu Feb 08 08:39:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.