-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phoenix_live_view: Add longPollFallbackMs to SocketOptions #69617
Conversation
The [`phoenix_live_view.LiveSocket` passes its options to `phoenix.Socket`][liveview], and [longpoll fallback][phoenix] was added 4 months ago in [Phoenix 1.7.11][changelog]. [liveview]: https://github.com/phoenixframework/phoenix_live_view/blob/6648f774354e308efc26d7e44e6e68d5a1b12fe1/assets/js/phoenix_live_view/live_socket.js#L132 [phoenix]: https://github.com/phoenixframework/phoenix/blame/c54d90cd074e620bdc2f30146e072cbf25680705/assets/js/phoenix/socket.js#L119 [changelog]: https://hexdocs.pm/phoenix/changelog.html#1-7-11-2024-02-01
@rhcarvalho Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment which I will keep updated. 1 package in this PRCode ReviewsThis PR can be merged once it's reviewed by a DT maintainer. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 69617,
"author": "rhcarvalho",
"headCommitOid": "5bd1ae34e2e1436943163a9d3163546fc5f1cb8d",
"mergeBaseOid": "bfdcd1c2bad2ed372ebf698103824f4171e5e972",
"lastPushDate": "2024-05-15T10:03:41.000Z",
"lastActivityDate": "2024-05-16T15:50:18.000Z",
"mergeOfferDate": "2024-05-16T13:59:05.000Z",
"mergeRequestDate": "2024-05-16T15:50:18.000Z",
"mergeRequestUser": "rhcarvalho",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "phoenix_live_view",
"kind": "edit",
"files": [
{
"path": "types/phoenix_live_view/index.d.ts",
"kind": "definition"
}
],
"owners": [
"pzingg"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "sandersn",
"date": "2024-05-16T13:58:27.000Z",
"isMaintainer": true
},
{
"type": "approved",
"reviewer": "pzingg",
"date": "2024-05-15T14:46:20.000Z",
"isMaintainer": false
}
],
"mainBotCommentID": 2112092558,
"ciResult": "pass"
} |
Hey @rhcarvalho, 😒 Your PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Please consider adding tests to cover the change you're making. Including tests allows this PR to be merged by yourself and the owners of this module. This can potentially save days of time for you! |
🔔 @pzingg — please review this PR in the next few days. Be sure to explicitly select |
@rhcarvalho The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
Since the type change is in a related package https://www.npmjs.com/package/phoenix, and not https://www.npmjs.com/package/phoenix_live_view, I'm not sure what version to bump to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this! Approved.
@rhcarvalho: Everything looks good here. I am ready to merge this PR (at 5bd1ae3) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@pzingg: you can do this too.) |
Thank you for the reviews. Ready to merge! |
Ready to merge |
The
phoenix_live_view.LiveSocket
passes its options tophoenix.Socket
, and longpoll fallback was added 4 months ago in Phoenix 1.7.11.Please fill in this template.
pnpm test <package to test>
.Select one of these and delete the others:
If changing an existing definition:
package.json
. please see phoenix_live_view: Add longPollFallbackMs to SocketOptions #69617 (comment)