Reapply: extend session events to cover raw connections and commands - #497
Closed
dagreen-st wants to merge 10 commits into
Closed
Reapply: extend session events to cover raw connections and commands#497dagreen-st wants to merge 10 commits into
dagreen-st wants to merge 10 commits into
Conversation
The ORM's own DbCommandExecuting/Executed events only fire for commands run through its own execution path, and there was no hook for a connection's first genuine open or for a raw connection handed out without a DbCommand. Code using DirectSqlAccessor, or needing the raw connection directly, had no way to observe any of this. Adds a DbConnectionOpened event fired on the Closed to Open transition, an EventNotifyingDbCommand wrapper so DirectSqlAccessor.CreateCommand() raises the same execute events ORM commands do, and an async GetConnectionAsync with an awaitable raw-connection-accessed hook so callers that need the connection itself can hook in without blocking a thread.
Five workflows still built Orm.sln, which was removed by the .slnx migration (#386), so every push to master-servicetitan has been failing CI with MSB1009. Points all of them at Orm.slnx instead.
The gawk pattern expected a 4-part version (x.y.z.w) to find a build number to increment, but Version.props now uses a 3-part scheme (e.g. 7.3.24), so it silently matched nothing and left the file unchanged. Matches through the second dot and increments the patch component instead.
fix CI build workflows to reference Orm.slnx
This reverts commit 0c79da6.
This reverts commit 7245752.
This reverts commit 1f127aa.
This reverts commit 8e9144d.
Collaborator
Author
|
superseded by #498 |
SergeiPavlov
reviewed
Aug 5, 2026
| <PropertyGroup> | ||
| <DoVersion>7.3.24</DoVersion> | ||
| <DoVersion>7.3.25</DoVersion> | ||
| <DoVersionSuffix>servicetitan</DoVersionSuffix> |
Collaborator
There was a problem hiding this comment.
Suggested change
| <DoVersionSuffix>servicetitan</DoVersionSuffix> | |
| <DoVersionSuffix>servicetitan-test-async</DoVersionSuffix> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reapplies #493, which was reverted after merge (commits 8e9144d and 1f127aa). This PR is a straight revert-of-the-reverts — no changes beyond restoring the original diff.
Discussion: https://servicetitan.enterprise.slack.com/archives/C0BP3S50BGQ