Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Use string for RPC message IDs #3507

Merged
merged 3 commits into from
Oct 31, 2024
Merged

Use string for RPC message IDs #3507

merged 3 commits into from
Oct 31, 2024

Conversation

mcintyre94
Copy link
Contributor

@mcintyre94 mcintyre94 commented Oct 31, 2024

  • Still an autoincrementing integer, but sent to the server as a string
  • This means the server will return it to us as a string, and we don't need to worry about number/bigint upcasting
  • This fixes the bug in subscriptions, caused by upcasting the ID to a bigint
Screenshot 2024-10-31 at 16 06 51 Screenshot 2024-10-31 at 16 07 32

Copy link

changeset-bot bot commented Oct 31, 2024

🦋 Changeset detected

Latest commit: feff254

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor Author

mcintyre94 commented Oct 31, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @mcintyre94 and the rest of your teammates on Graphite Graphite

Copy link
Contributor

@steveluscher steveluscher left a comment

Choose a reason for hiding this comment

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

Added via Giphy

Copy link
Contributor

@steveluscher steveluscher left a comment

Choose a reason for hiding this comment

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

Slap a changeset on this puppy.

# From the root
pnpm changeset

Copy link
Contributor

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Contributor

steveluscher commented Oct 31, 2024

Merge activity

  • Oct 31, 10:05 AM PDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 31, 10:07 AM PDT: Graphite rebased this pull request as part of a merge.
  • Oct 31, 10:08 AM PDT: A user merged this pull request with Graphite.

@steveluscher steveluscher changed the base branch from subscriptions-failing-test to graphite-base/3507 October 31, 2024 17:05
@steveluscher steveluscher changed the base branch from graphite-base/3507 to master October 31, 2024 17:05
mcintyre94 and others added 3 commits October 31, 2024 17:06
- Still an autoincrementing integer, but sent to the server as a string
- This means the server will return it to us as a string, and we don't need to worry about number/bigint upcasting
- This fixes the bug in subscriptions, caused by upcasting the ID to a bigint
@steveluscher steveluscher merged commit 45df702 into master Oct 31, 2024
7 checks passed
@steveluscher steveluscher deleted the rpc-string-ids branch October 31, 2024 17:08
@github-actions github-actions bot mentioned this pull request Oct 31, 2024
Copy link
Contributor

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants