-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Opt-in streaming to Prettier #29447
base: main
Are you sure you want to change the base?
Opt-in streaming to Prettier #29447
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #29447 +/- ##
==========================================
+ Coverage 85.01% 85.10% +0.08%
==========================================
Files 1059 1062 +3
Lines 28277 28352 +75
Branches 4538 4548 +10
==========================================
+ Hits 24040 24129 +89
+ Misses 3074 3061 -13
+ Partials 1163 1162 -1 ☔ View full report in Codecov by Sentry. |
This pull request has merge conflicts that must be resolved before it can be merged. |
eb4a23d
to
c8bc986
Compare
This pull request has resolved merge conflicts and is ready for review. |
This pull request has merge conflicts that must be resolved before it can be merged. |
c8bc986
to
9b2fdb7
Compare
This pull request has resolved merge conflicts and is ready for review. |
@ThisIsMissEm you're mainly the author of the files in this folder, so it would likely impact you most. If you're not interested I can just close this one |
This, as well as converting the streaming server to typescript are things we're interested in, however getting the streaming server's code to a point where it makes sense to enable takes priority. basically we need to detangle a lot of mess in the streaming server to improve performance, testability, and a whole lot more. I wouldn't expect constant rebases here, perhaps this is better summed up in an issue? |
This pull request has merge conflicts that must be resolved before it can be merged. |
9b2fdb7
to
88e3295
Compare
Perhaps one path forwards here would be to opt everything new in streaming into prettier, but exclude streaming/index.js for now? That way it wouldn't conflict with ongoing work. Essentially I'm trying to refactor how subscriptions happen in streaming to be sort of map/set based, instead of a hash of nested callbacks. We should eventually be able to inject a payload or request into streaming and assert things about it's behaviour. The current complete lack of tests make behavior very uncertain and we can accidentally introduce bugs: the only type of tests we can write today are end-to-end system tests for the bulk of streaming. |
This pull request has resolved merge conflicts and is ready for review. |
@ThisIsMissEm I'm happy if you want to just roll this into one of your own PRs too, it might be more likely to land and not conflict with the real changes you're working on 😆 . After is in the Husky hooks should autofix the files as you commit them, so it shouldn't conflict.
Or you could do most of that but add an extra ignore for the |
This pull request has merge conflicts that must be resolved before it can be merged. |
Another similar one - not sure if this could close for rationale here - #26715 (comment) - (forks/PRs churn), or if there's something more viable to pull out. Also not sure on conclusion of above discussion re: doing this first vs letting it roll into future refactor PRs. |
In general I'm trying to get the streaming server code into better shape first before having the code churn that reformatting this code would incur. Anything that's not Probably the first next step is going to be moving the database queries out of the hot path for sending messages, which should simplify |
Alternate attempt to start #29429
As, the ESLint rules are still conflicting, adding a file level ignore that would eventually get flagged/removed with the
--report-unused-disable-directives --fix
once the rules are properly removed in the other PR