Skip to content

[Procedures] Fix Identityand ConnectionId Regression#5323

Merged
bfops merged 6 commits into
clockworklabs:masterfrom
kistz:fix-procedure-identity
Jun 17, 2026
Merged

[Procedures] Fix Identityand ConnectionId Regression#5323
bfops merged 6 commits into
clockworklabs:masterfrom
kistz:fix-procedure-identity

Conversation

@kistz

@kistz kistz commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

Closes #5250

#4636 introduced a regression where the ProcedureContext used to include the sender and connection_id from the caller while now it is always empty (which is wrong)

Correct it.

Also fully migrate to database_identity which was forgotten about so i deprecated it for procedures (since they are now stable) and just changed it for HttpHandlers (because they are still unstable)

@gefjon since you did the lil woopsie (ugh pinging you again lol hope im not annoying haha)

API and ABI breaking changes

Breaking the HttpHandler function which is unstable.

Restoring behaviour of 2.3 which got lost with 2.4.

Expected complexity level and risk

  1. Trivial refactoring

Testing

  • The caller identity is there again for Procedures.

@joshua-spacetime joshua-spacetime left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One small request, but otherwise LGTM.

Comment thread crates/bindings/src/http.rs
@kistz kistz requested a review from joshua-spacetime June 16, 2026 19:14
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Jun 17, 2026
@bfops bfops removed this pull request from the merge queue due to a manual request Jun 17, 2026
@bfops

bfops commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

this had merge conflicts in the queue

Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
@bfops bfops added this pull request to the merge queue Jun 17, 2026
Merged via the queue into clockworklabs:master with commit 3ec168d Jun 17, 2026
78 of 89 checks passed
rekhoff pushed a commit that referenced this pull request Jun 29, 2026
Closes #5250

the sender and connection_id from the caller while now it is always
empty (which is wrong)

Correct it.

Also fully migrate to `database_identity` which was forgotten about so i
deprecated it for procedures (since they are now stable) and just
changed it for HttpHandlers (because they are still unstable)

@gefjon since you did the lil woopsie (ugh pinging you again lol hope im
not annoying haha)

Breaking the HttpHandler function which is unstable.

Restoring behaviour of 2.3 which got lost with 2.4.
<!-- If this is an API or ABI breaking change, please apply the
corresponding GitHub label. -->

1. Trivial refactoring
<!--
How complicated do you think these changes are? Grade on a scale from 1
to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex
change.

This complexity rating applies not only to the complexity apparent in
the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning
ways. -->

<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->

- [x] The caller identity is there again for Procedures.

---------

Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
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.

TxContext does not have sender() information anymore

3 participants